:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-strong: #ffffff;
  --ink: #21201d;
  --muted: #68645e;
  --line: #d8d2c8;
  --accent: #d94f35;
  --accent-dark: #a52f20;
  --teal: #1f6b66;
  --teal-soft: #dcece8;
  --yellow: #f4c95d;
  --shadow: 0 14px 40px rgba(52, 42, 30, 0.09);
  --content: 960px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(33, 32, 29, 0.035) calc(100% - 1px)) 0 0 / 24px 24px,
    var(--paper);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 700;
}

h1 {
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.22;
}

h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  line-height: 1.35;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.app-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(33, 32, 29, 0.12);
  border-radius: 8px;
}

.app-icon-large {
  width: 88px;
  height: 88px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.content-shell,
.site-footer {
  width: min(calc(100% - 40px), var(--content));
  margin-right: auto;
  margin-left: auto;
}

.page-heading {
  padding: clamp(72px, 11vw, 128px) 0 clamp(54px, 8vw, 88px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.35rem;
  line-height: 1.58;
}

.effective-date {
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 46px);
  color: #fdfcf9;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-band h2 {
  overflow-wrap: anywhere;
}

.contact-band > div {
  min-width: 0;
}

.contact-band p {
  max-width: 620px;
  margin-bottom: 0;
  color: #e2f1ee;
}

.contact-band .section-kicker {
  color: #a9d5ce;
}

.primary-link {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-link:hover {
  color: var(--ink);
  background: #f9d878;
}

.document-section {
  padding: clamp(54px, 8vw, 84px) 0;
  border-bottom: 1px solid var(--line);
}

.document-section > h2,
.prose > p {
  max-width: 740px;
}

.document-section p:last-child {
  margin-bottom: 0;
}

.step-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.step-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step-list article:last-child {
  border-bottom: 0;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--paper-strong);
  background: var(--accent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.step-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 8vw, 96px);
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.privacy-summary div {
  display: flex;
  min-width: 0;
  padding: 28px;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.privacy-summary div:last-child {
  border-right: 0;
}

.privacy-summary strong {
  margin-bottom: 6px;
  color: var(--teal);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.2rem;
}

.privacy-summary span {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose p {
  color: #48453f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin-bottom: 0;
}

.compact-footer {
  padding-top: 0;
}

.language-shell {
  display: grid;
  width: min(calc(100% - 40px), 1080px);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) 0 48px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(52px, 10vw, 130px);
  align-items: center;
}

.language-intro h1 {
  max-width: 12ch;
}

.language-options {
  display: grid;
  border-top: 1px solid var(--line);
}

.language-link {
  display: flex;
  min-height: 112px;
  padding: 26px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.language-link::after {
  color: var(--accent);
  font-size: 1.5rem;
  content: "→";
}

.language-link:hover {
  padding-left: 12px;
  color: var(--accent-dark);
}

.language-name,
.language-action {
  display: block;
}

.language-name {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.language-action {
  margin-left: auto;
  margin-right: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 160ms ease, background-color 160ms ease, padding 160ms ease;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .site-header {
    align-items: flex-start;
    padding: 18px 0;
    flex-direction: column;
    gap: 16px;
  }

  nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  nav a {
    white-space: nowrap;
  }

  nav a[aria-current="page"]::after {
    bottom: -6px;
  }

  .contact-band,
  .split-section,
  .language-shell {
    grid-template-columns: 1fr;
  }

  .contact-band {
    align-items: stretch;
    padding: 28px;
  }

  .contact-band h2 {
    font-family: "Avenir Next", Avenir, "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 1.2rem;
  }

  .primary-link {
    width: 100%;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
  }

  .privacy-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-summary div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }

  .language-shell {
    min-height: auto;
  }

  .language-action {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
