:root {
  --bg: #0e1116;
  --bg-deep: #0b0f14;
  --surface: rgba(18, 24, 33, 0.92);
  --surface-raised: rgba(23, 30, 40, 0.96);
  --ink: #f5f7fb;
  --muted: #a7b1c0;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #3b8ec8;
  --accent-soft: rgba(59, 142, 200, 0.16);
  --accent-cool: #59d2ba;
  --accent-cool-soft: rgba(89, 210, 186, 0.16);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.24);
  --radius: 22px;
  --radius-lg: 30px;
  --content-max: 1180px;
  --sticky-offset: 96px;
  --text-xs: 0.83rem;
  --text-sm: 0.95rem;
  --text-base: 1rem;
  --text-lg: 1.08rem;
  --text-xl: 1.45rem;
  --text-2xl: 2.2rem;
  --text-3xl: 3rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at top left, rgba(89, 210, 186, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 142, 200, 0.14), transparent 24%),
    linear-gradient(180deg, #11161d 0%, var(--bg-deep) 36%, var(--bg) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.7);
  border-bottom: 1px solid transparent;
  pointer-events: none;
  z-index: -1;
  transition: background 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease;
}

.topbar.is-sticky::before {
  background: rgba(11, 15, 20, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 36px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo-picture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.site-logo {
  display: block;
  width: clamp(48px, 5vw, 56px);
  height: clamp(48px, 5vw, 56px);
  max-width: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-inline {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.nav-inline a {
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: 999px;
}

.nav-inline a:hover {
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: min(290px, 90vw);
  display: none;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.nav.open {
  display: grid;
}

.nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta,
.cta-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.cta-primary {
  display: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--text-sm);
}

.page-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 36px) 96px;
}

.hero-card,
.toc-card,
.section-card,
.provider-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(126, 198, 192, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, var(--text-3xl));
}

h2 {
  font-size: clamp(1.7rem, 3vw, var(--text-2xl));
}

h3 {
  font-size: 1.15rem;
}

.lead,
.meta-line,
.section-card p,
.section-card li,
.provider-card p,
.provider-card li,
.toc-card a,
.toc-card p,
.footer-note,
.footer-links,
.footer-meta {
  color: var(--muted);
}

.lead,
.meta-line {
  margin: 0;
  max-width: 66ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  font-weight: 600;
}

.legal-layout {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.toc-card {
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 10px;
  height: fit-content;
}

.toc-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-card a {
  padding: 7px 0;
  font-size: var(--text-sm);
}

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

.legal-content {
  display: grid;
  gap: 18px;
}

.section-card {
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 28px);
  display: grid;
  gap: 14px;
}

.section-card p,
.section-card ul,
.section-card ol,
.provider-card p,
.provider-card ul {
  margin: 0;
}

.section-card ul,
.section-card ol,
.provider-card ul {
  padding-left: 20px;
}

.section-card li + li,
.provider-card li + li {
  margin-top: 8px;
}

.section-grid,
.provider-grid {
  display: grid;
  gap: 14px;
}

.provider-grid {
  margin-top: 4px;
}

.provider-card {
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.callout {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 142, 200, 0.2);
  color: var(--ink);
}

.callout p {
  color: var(--ink);
}

.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.55);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 36px) 42px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.footer-brand {
  grid-area: brand;
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.footer-note {
  grid-area: note;
  max-width: 40ch;
  font-size: var(--text-sm);
  line-height: 1.68;
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: var(--text-sm);
  justify-content: flex-start;
}

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

.footer-meta {
  grid-area: meta;
  margin-top: 2px;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .nav-shell {
    position: static;
  }

  .nav,
  .nav.open {
    display: none;
  }

  .nav-inline {
    display: flex;
  }

  .cta-primary {
    display: inline-flex;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand links"
      "note links"
      "meta links";
    align-items: start;
    column-gap: 32px;
  }

  .footer-links {
    justify-self: end;
    align-self: center;
    justify-content: flex-end;
  }
}

@media (min-width: 920px) {
  .legal-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
  }

  .toc-card {
    position: sticky;
    top: 112px;
  }

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

@media (max-width: 719px) {
  .page-shell {
    padding-bottom: 64px;
  }

  .topbar-inner {
    grid-template-columns: auto auto;
  }
}
