:root {
  color-scheme: light;
  --canvas: #ffffff;
  --page: #f8fafc;
  --muted: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --border: #e2e8f0;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-dark: #1e293b;
  font-family: Inter, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 1rem; line-height: 1.6; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, .brand { font-family: "Plus Jakarta Sans", sans-serif; }
h1, h2, h3, p { margin-top: 0; }

.site-header { height: 64px; background: var(--canvas); border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { width: min(1280px, calc(100% - 4rem)); margin-inline: auto; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { color: var(--text); font-size: 1.125rem; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand-dot { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 0.45rem; }
.page-main { min-height: calc(100vh - 180px); }
.page-hero { padding: 4rem 2rem 2rem; text-align: center; }
.eyebrow { margin-bottom: 0.75rem; color: var(--brand); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.page-hero h1 { margin-bottom: 0.75rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -0.03em; }
.page-hero p { max-width: 65ch; margin: 0 auto; color: var(--text-secondary); }
.legal-layout { width: min(1280px, calc(100% - 4rem)); margin: 1rem auto 5rem; display: grid; grid-template-columns: minmax(190px, 3fr) minmax(0, 9fr); gap: 3rem; align-items: start; }
.section-rail { position: sticky; top: 1.5rem; padding: 1.25rem; background: var(--canvas); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 1px 3px rgb(15 23 42 / 4%); }
.section-rail h2 { margin: 0 0 0.75rem; font-family: Inter, sans-serif; color: var(--text-tertiary); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.section-rail nav { display: grid; gap: 0.25rem; }
.section-rail a { padding: 0.4rem 0.5rem; color: var(--text-secondary); font-size: 0.875rem; text-decoration: none; border-radius: 0.375rem; }
.section-rail a:hover { background: var(--muted); color: var(--text); }
.document, .content-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--canvas); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 1px 3px rgb(15 23 42 / 4%), 0 1px 2px -1px rgb(15 23 42 / 2%); }
.document { max-width: 880px; }
.document section + section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.document h2, .content-card h2 { margin-bottom: 0.75rem; font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.015em; }
.document h3 { margin: 1.5rem 0 0.5rem; font-size: 1.125rem; line-height: 1.4; }
.document p, .document li, .content-card p { max-width: 65ch; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; }
.document p:last-child, .content-card p:last-child { margin-bottom: 0; }
.document li + li { margin-top: 0.35rem; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; max-width: 65ch; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.document .provider-grid li { min-width: 0; margin: 0; }
.provider-grid a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.65rem 0.8rem; background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; line-height: 1.4; text-decoration: none; transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease; }
.provider-grid a:hover { background: var(--page); border-color: #cbd5e1; color: var(--brand); }
.provider-arrow { flex: 0 0 auto; color: var(--text-tertiary); font-size: 1rem; }
.provider-grid a:hover .provider-arrow { color: var(--brand); }
.meta { margin-top: 1.25rem; color: var(--text-tertiary); font-size: 0.875rem; }
.content-wrap { width: min(900px, calc(100% - 4rem)); margin: 1rem auto 5rem; }
.about-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.about-copy h2 + p { margin-bottom: 1.5rem; }
.site-footer { background: var(--canvas); border-top: 1px solid var(--border); }
.footer-inner { padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-inner p { margin: 0; color: var(--text-tertiary); font-size: 0.8125rem; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-secondary); font-size: 0.8125rem; text-decoration: none; }
.footer-nav a:hover { color: var(--brand); text-decoration: underline; }

.home-hero { padding: 5rem 2rem 4rem; text-align: center; }
.home-hero h1 { max-width: 900px; margin: 0 auto 1rem; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.home-hero > p:not(.eyebrow) { max-width: 65ch; margin: 0 auto 1.75rem; color: var(--text-secondary); font-size: 1.125rem; line-height: 1.65; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background-color 120ms ease, border-color 120ms ease; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-hover); color: #fff; }
.button-secondary { background: #fff; border: 1px solid var(--border); color: var(--brand-dark); }
.button-secondary:hover { background: var(--page); border-color: #cbd5e1; color: var(--brand-dark); }
.commitment-section { width: min(900px, calc(100% - 4rem)); margin: 0 auto 4rem; }
.commitment-card h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.025em; }
.commitment-card { padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 1px 3px rgb(15 23 42 / 4%); }
.commitment-card h2 { margin-bottom: 1rem; }
.commitment-card > p:not(.eyebrow) { max-width: 70ch; color: var(--text-secondary); line-height: 1.75; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.75rem 0; border: 1px solid var(--border); border-radius: 0.75rem; }
.metrics div { padding: 1rem; text-align: center; }
.metrics div + div { border-left: 1px solid var(--border); }
.metrics strong, .metrics span { display: block; }
.metrics strong { color: var(--brand); font: 700 1.5rem/1.3 "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums; }
.metrics span { color: var(--text-tertiary); font-size: 0.8125rem; }
.text-link { font-size: 0.875rem; font-weight: 600; }
.footer-brand-block { max-width: 30ch; }
.footer-brand-block p { margin: 0.5rem 0 0; color: var(--text-tertiary); font-size: 0.8125rem; }
.copyright { flex-basis: 100%; padding-top: 1rem; border-top: 1px solid var(--border); }

@media (max-width: 700px) {
  .header-inner, .footer-inner { width: calc(100% - 2rem); }
  .site-header { height: auto; min-height: 64px; }
  .header-inner { padding: 0.75rem 0; align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .main-nav { width: 100%; gap: 1rem; overflow-x: auto; padding: 0.25rem 0 0.35rem; }
  .main-nav a { flex: 0 0 auto; font-size: 0.8125rem; }
  .page-hero { padding: 2.5rem 1rem 1.5rem; }
  .legal-layout { width: calc(100% - 2rem); margin: 0 auto 3rem; grid-template-columns: 1fr; gap: 1rem; }
  .section-rail { position: static; }
  .section-rail nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .provider-grid { grid-template-columns: 1fr; }
  .content-wrap { width: calc(100% - 2rem); margin-bottom: 3rem; }
  .home-hero { padding: 3rem 1rem 2.5rem; }
  .commitment-section { width: calc(100% - 2rem); margin-bottom: 2.5rem; }
  .metrics div { padding: 0.75rem 0.35rem; }
  .metrics strong { font-size: 1.25rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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