:root {
  color-scheme: light dark;
  --paper: #f2ede4;
  --paper-deep: #e7dfd2;
  --ink: #201f1d;
  --ink-soft: #625d56;
  --card: rgba(255, 252, 246, 0.76);
  --line: rgba(32, 31, 29, 0.14);
  --orange: #f2762e;
  --teal: #3b9fa4;
  --blue: #3268cf;
  --radius: 30px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(242, 118, 46, 0.12), transparent 27rem),
    radial-gradient(circle at 5% 40%, rgba(59, 159, 164, 0.08), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--orange);
}

button,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #201f1d;
  background: #fffaf1;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(32, 31, 29, 0.12);
}

.brand span {
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.language-wrap {
  position: relative;
}

.language-wrap::after {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ink-soft);
  content: "⌄";
  pointer-events: none;
  transform: translateY(-58%);
}

#language-select {
  min-width: 136px;
  padding: 9px 36px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--card);
  appearance: none;
  cursor: pointer;
}

.hero {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) 0 clamp(80px, 11vw, 135px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid;
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: 12%;
  right: -12%;
  width: min(62vw, 760px);
  aspect-ratio: 1.8;
  border-color: rgba(242, 118, 46, 0.38);
  transform: rotate(-12deg);
}

.hero::after {
  right: 7%;
  bottom: 10%;
  width: min(44vw, 550px);
  aspect-ratio: 2.2;
  border-color: rgba(59, 159, 164, 0.42);
  transform: rotate(19deg);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(64px, 10.3vw, 142px);
  font-weight: 840;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero-intro {
  max-width: 720px;
  margin: 44px 0 0;
  color: var(--ink-soft);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.meta-pill {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
  font-size: 13px;
  font-weight: 680;
}

.summary-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 88px;
  gap: 16px;
}

.summary-card,
.hub-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.summary-card::after,
.hub-card::after {
  position: absolute;
  right: -18%;
  bottom: -40%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 118, 46, 0.27);
  border-radius: 50%;
  content: "";
}

.summary-mark {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 54px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 19px 0 0 var(--teal), 38px 0 0 var(--blue);
}

.summary-card h2,
.hub-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.summary-card p,
.hub-card p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.hub-card .doc-number {
  margin-bottom: 80px;
}

.hub-card a {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
}

.document-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 0 0 120px;
  gap: clamp(48px, 8vw, 110px);
}

.toc {
  position: sticky;
  top: 112px;
  align-self: start;
}

.toc-title {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.toc a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--ink);
}

.legal-document {
  min-width: 0;
}

.document-notice {
  margin-bottom: 26px;
  padding: 22px 24px;
  border-left: 3px solid var(--teal);
  border-radius: 0 18px 18px 0;
  color: var(--ink-soft);
  background: rgba(59, 159, 164, 0.09);
  font-size: 14px;
}

.legal-section {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 62px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.section-number,
.doc-number {
  color: var(--orange);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.section-content h2 {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.section-content p,
.section-content li {
  color: var(--ink-soft);
}

.section-content p {
  margin: 0 0 18px;
}

.section-content ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.section-content li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line);
}

.section-content li::before {
  position: absolute;
  top: 24px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.section-content strong {
  color: var(--ink);
}

.provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.provider-links a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-cta {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 90px;
  padding: clamp(34px, 7vw, 80px);
  border-radius: var(--radius);
  color: #fffaf1;
  background:
    radial-gradient(circle at 85% 0%, rgba(242, 118, 46, 0.24), transparent 24rem),
    #163c3d;
}

.legal-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.legal-cta p {
  max-width: 650px;
  margin: 22px 0 30px;
  color: #d3e5e1;
}

.button {
  display: inline-flex;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fffaf1;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.button:hover {
  color: #201f1d;
  background: #fffaf1;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0 54px;
  border-top: 1px solid var(--line);
  gap: 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

  .summary-card {
    min-height: 190px;
  }

  .document-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc a {
    padding-right: 14px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .hero,
  .summary-grid,
  .hub-grid,
  .document-shell,
  .legal-cta,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .brand span {
    display: none;
  }

  #language-select {
    min-width: 120px;
  }

  .hero {
    padding: 74px 0 82px;
  }

  .hero h1 {
    font-size: clamp(58px, 19vw, 88px);
  }

  .hero-intro {
    margin-top: 30px;
  }

  .summary-grid,
  .hub-grid {
    margin-bottom: 68px;
  }

  .summary-card,
  .hub-card {
    padding: 26px;
    border-radius: 24px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-section {
    grid-template-columns: 1fr;
    padding: 50px 0;
    gap: 14px;
  }

  .section-content h2 {
    font-size: 34px;
  }

  .legal-cta {
    margin-bottom: 70px;
    border-radius: 24px;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --line: rgba(32, 31, 29, 0.42);
    --ink-soft: #45413c;
  }

  .summary-card,
  .hub-card,
  #language-select {
    border-width: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1d1b;
    --paper-deep: #272522;
    --ink: #f5f0e7;
    --ink-soft: #c7c0b6;
    --card: rgba(43, 40, 36, 0.78);
    --line: rgba(255, 255, 255, 0.17);
  }

  .site-header {
    background: rgba(30, 29, 27, 0.88);
  }

  #language-select {
    background: #2b2926;
  }

  .document-notice {
    background: rgba(59, 159, 164, 0.12);
  }
}
