:root {
  color-scheme: light;
  --blue: #1857ed;
  --blue-deep: #123e9d;
  --blue-soft: #dfe8ff;
  --ink: #111318;
  --navy: #0c192c;
  --muted: #5f6878;
  --line: #d9dfeb;
  --paper: #ffffff;
  --wash: #f6f8fc;
  --max: 1180px;
  --copy: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 87, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 87, 237, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 223, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero-inner,
.page-grid,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--navy);
  font-family: "Avenir Next", Avenir, Geist, Inter, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark sup {
  color: var(--blue);
  font-size: 0.55em;
  left: 0.1em;
  position: relative;
  top: -0.45em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  top: -240px;
  border-radius: 50%;
  border: 72px solid rgba(24, 87, 237, 0.55);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 74px 0 64px;
}

.eyebrow,
.toc-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: #9db9ff;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 670px;
  margin: 26px 0 0;
  color: #d5deee;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
  color: #aebbd1;
  font-size: 0.86rem;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, var(--copy));
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
  padding: 70px 0 100px;
}

.page-grid.single-column {
  grid-template-columns: minmax(0, var(--copy));
}

.toc {
  position: sticky;
  top: 102px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(12, 25, 44, 0.07);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
}

.toc ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 7px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

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

.legal-section {
  scroll-margin-top: 104px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.82rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-number {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

p,
li {
  color: #303746;
}

.legal-section p,
.legal-section ul {
  margin-top: 0;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 8px;
}

.site-footer {
  color: #c4cede;
  background: var(--navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 128px;
}

.site-footer p {
  margin: 0;
  color: inherit;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 840px) {
  .site-header {
    position: static;
  }

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

  .top-nav {
    justify-content: flex-start;
  }

  .page-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .toc {
    position: static;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .hero-inner,
  .page-grid,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-inner {
    padding: 54px 0 46px;
  }

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

}

@media print {
  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero {
    color: #000;
    background: #fff;
  }

  .hero-summary,
  .hero-meta,
  .eyebrow {
    color: #333;
  }

  .page-grid {
    display: block;
    width: auto;
    padding: 20px 0;
  }
}
