:root {
  color-scheme: light dark;
  --bg: #edf1f7;
  --bg-2: #d6deea;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(243, 247, 252, 0.82);
  --border: rgba(21, 36, 64, 0.14);
  --text: #0f1f37;
  --muted: #5c6d89;
  --accent: #1d57e8;
  --accent-soft: rgba(29, 87, 232, 0.1);
  --accent-faint: rgba(29, 87, 232, 0.06);
  --shadow: 0 24px 60px rgba(23, 38, 66, 0.1);
  --shadow-soft: 0 14px 32px rgba(23, 38, 66, 0.06);
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Georgia, serif;
  --body-font: "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1119;
    --bg-2: #1a2637;
    --surface: rgba(18, 25, 37, 0.76);
    --surface-strong: rgba(20, 29, 43, 0.92);
    --surface-muted: rgba(26, 35, 51, 0.84);
    --border: rgba(191, 211, 255, 0.11);
    --text: #edf3ff;
    --muted: #a8b7cf;
    --accent: #8db1ff;
    --accent-soft: rgba(141, 177, 255, 0.14);
    --accent-faint: rgba(141, 177, 255, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, var(--bg-2), transparent 34%),
    linear-gradient(180deg, var(--bg), #f8fbff 74%);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background:
      radial-gradient(circle at top left, #24344c, transparent 28%),
      linear-gradient(180deg, #0b1017, #111927 72%);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--accent), #3b79ff);
  color: white;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(29, 87, 232, 0.24);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.top-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-links a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.top-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.document-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.hero,
.document-header,
.card,
.document,
.toc-card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero,
.document-header {
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    linear-gradient(120deg, var(--accent-faint), transparent 42%);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.hero-panel {
  padding: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-stat-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.stat-chip {
  display: grid;
  gap: 4px;
  padding: 14px 14px 13px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat-chip strong {
  font-size: 0.95rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.eyebrow,
.card-kicker,
.document-meta,
.footer {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.hero h1,
.document-header h1 {
  margin: 10px 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.primary-btn {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.primary-btn:hover {
  text-decoration: none;
}

.secondary-btn {
  background: var(--surface-muted);
  color: var(--text);
}

.secondary-btn:hover {
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.card h2 {
  margin: 8px 0 12px;
  font-family: var(--heading-font);
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card p,
.support-list,
.document p {
  color: var(--muted);
  line-height: 1.75;
}

.support-list {
  margin: 0;
  padding-left: 18px;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-list li + li {
  margin-top: 8px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 6px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.document {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.toc-card {
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.toc-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.toc-list a {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.document section + section {
  margin-top: 14px;
}

.document section {
  padding: 22px 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 18px;
}

.document section:target {
  border-color: rgba(29, 87, 232, 0.35);
  box-shadow:
    var(--shadow-soft),
    0 0 0 4px rgba(29, 87, 232, 0.08);
}

.document h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.document-meta {
  margin-bottom: 0;
}

.document-header .hero-copy {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1040px);
    padding-top: 18px;
  }

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

  .hero-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .document-header,
  .card,
  .document,
  .toc-card {
    padding: 22px;
    border-radius: 22px;
  }

  .document {
    padding: 12px;
  }

  .document section {
    padding: 18px 18px 20px;
  }
}
