:root {
  --blue: #5B8DEF;
  --blue-dark: #4373D6;
  --mint: #A8E6CF;
  --cream: #FFF8F0;
  --cream-2: #FAF1E4;
  --navy: #1B2A4E;
  --navy-soft: #4A5778;
  --coral: #FF8A80;
  --line: #ECE4D6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,240,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo-wrap svg { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--navy); font-weight: 500; font-size: 15px;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--coral); color: white !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { background: #F26B62; }

.legal-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}
.legal-hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 12px;
}
.legal-hero .lede {
  font-size: 17px;
  color: var(--navy-soft);
  max-width: 640px;
}
.legal-hero .meta {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  background: rgba(91,141,239,.12);
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

article.legal {
  padding: 56px 0 80px;
  font-size: 16px;
}
article.legal h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 48px 0 16px;
  scroll-margin-top: 88px;
}
article.legal h2:first-of-type { margin-top: 0; }
article.legal h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
article.legal p { margin: 0 0 14px; color: var(--navy); }
article.legal p.muted { color: var(--navy-soft); font-size: 14px; }
article.legal ul, article.legal ol {
  margin: 4px 0 18px 24px;
  padding: 0;
}
article.legal li { margin-bottom: 8px; }
article.legal li::marker { color: var(--blue); }
article.legal strong { font-weight: 700; color: var(--navy); }
article.legal code {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 14px;
  background: var(--cream-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
article.legal .callout {
  background: var(--cream-2);
  border-left: 3px solid var(--mint);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 20px 0 24px;
  font-size: 15px;
}
article.legal .callout strong { color: var(--navy); }
article.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
article.legal th, article.legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
article.legal th {
  font-weight: 700;
  background: var(--cream-2);
  color: var(--navy);
}
article.legal .toc {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
article.legal .toc h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
  margin-bottom: 10px;
}
article.legal .toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}
article.legal .toc li { margin-bottom: 4px; }
article.legal .toc a { color: var(--navy); }
article.legal .toc a:hover { color: var(--blue); }

footer.legal-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 28px;
  font-size: 14px;
}
footer.legal-footer a { color: rgba(255,255,255,0.85); }
footer.legal-footer a:hover { color: white; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-row .links { display: flex; gap: 22px; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 12px; }
  .legal-hero { padding: 40px 0 24px; }
  article.legal { padding: 36px 0 60px; }
}
