:root {
  color-scheme: light;
  --bg: #fbf9f4;
  --ink: #202124;
  --muted: #6f665c;
  --line: #ded6ca;
  --link: #a63d40;
  --surface: #fffdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.policy {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
}

h2 {
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  line-height: 1.25;
}

p,
ul {
  font-size: 1rem;
}

ul {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 8px;
}

a {
  color: var(--link);
  font-weight: 700;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
}

.updated {
  margin: 14px 0 32px;
  color: var(--muted);
  font-weight: 700;
}

.legal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.language-menu {
  position: relative;
}

.language-button {
  min-width: 144px;
  min-height: 40px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  list-style: none;
}

.language-button::-webkit-details-marker {
  display: none;
}

.language-button::after {
  position: absolute;
  top: 10px;
  right: 14px;
  content: "▾";
  color: var(--muted);
}

.language-options {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 220px;
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgb(32 33 36 / 14%);
}

.language-options a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: var(--bg);
  color: var(--link);
}

.translation-notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.link-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.back-link {
  margin-top: 48px;
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 28px, 760px);
    padding: 36px 0 56px;
  }
}
