/* Shared stylesheet for the static /privacy and /terms pages.
   Mirrors the design tokens in src/index.css so the static pages match the SPA. */
:root {
  color-scheme: dark;
  --bg: hsl(222 47% 6%);
  --fg: hsl(210 40% 92%);
  --card: hsl(222 41% 9%);
  --secondary: hsl(222 30% 14%);
  --muted-fg: hsl(215 20% 55%);
  --border: hsl(222 30% 16%);
  --primary: hsl(210 100% 56%);
  --radius: 0.75rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

header.site {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: hsl(222 47% 6% / 0.85);
  backdrop-filter: blur(16px);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 1.75rem; display: block; }
.brand .divider { width: 1px; height: 1rem; background: var(--border); }
.brand .label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-fg);
}
.cross-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border: 1px solid var(--border); border-radius: 9999px;
  background: hsl(222 30% 14% / 0.5); color: var(--fg);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 500;
  text-decoration: none; transition: border-color 0.15s;
}
.cross-link:hover { border-color: hsl(210 100% 56% / 0.4); }

.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, hsl(222 30% 14% / 0.4), var(--bg) 70%);
  padding: 3.5rem 0 3rem;
}
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 1.5rem; }
.breadcrumb .current { color: var(--fg); font-weight: 500; }
.doc-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border: 1px solid hsl(210 100% 56% / 0.3); border-radius: 9999px;
  background: hsl(210 100% 56% / 0.1); color: var(--primary);
  padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 { margin: 1.25rem 0 0; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.hero .intro { max-width: 48rem; margin: 1.25rem 0 0; color: var(--muted-fg); font-size: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; font-size: 0.875rem; color: var(--muted-fg); }
.meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.meta svg { color: var(--primary); flex: none; }

.eyebrow {
  margin: 0; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-fg);
}
.glance { padding-top: 3rem; }
.glance-grid { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.glance-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: hsl(222 41% 9% / 0.6); padding: 1.25rem;
}
.glance-card .icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: hsl(210 100% 56% / 0.1); color: var(--primary);
}
.glance-card h3 { margin: 1rem 0 0; font-size: 0.875rem; font-weight: 600; }
.glance-card p { margin: 0.375rem 0 0; font-size: 0.75rem; line-height: 1.6; color: var(--muted-fg); }

.layout { display: grid; gap: 3rem; padding: 3rem 0 6rem; }
@media (min-width: 1024px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } }
nav.toc { display: none; }
@media (min-width: 1024px) { nav.toc { display: block; } }
nav.toc .inner { position: sticky; top: 6rem; }
nav.toc ol { list-style: none; margin: 1rem 0 0; padding: 0; border-left: 1px solid var(--border); }
nav.toc a {
  display: block; padding: 0.375rem 0.5rem 0.375rem 1rem; margin-left: -1px;
  border-left: 2px solid transparent; font-size: 0.8125rem; line-height: 1.4;
  color: var(--muted-fg); text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
nav.toc a:hover { color: var(--fg); border-left-color: var(--border); }
nav.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 500; }
nav.toc .num { color: hsl(215 20% 55% / 0.6); font-variant-numeric: tabular-nums; margin-right: 0.375rem; }

main.doc { min-width: 0; }
main.doc section { padding-top: 0; }
main.doc section + section { margin-top: 3rem; border-top: 1px solid hsl(222 30% 16% / 0.5); padding-top: 3rem; }
main.doc h2 {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
}
main.doc h2 .num { font-size: 0.875rem; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.section-body { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted-fg); }
.section-body > * + * { margin-top: 1rem; }
.section-body p { margin: 0; }
.section-body strong, .section-body .hl { color: var(--fg); font-weight: 500; }
.section-body ul { margin: 0; padding-left: 1.25rem; }
.section-body li + li { margin-top: 0.375rem; }
.section-body a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.section-body a:hover { color: hsl(210 100% 70%); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
table.data th {
  padding: 0.75rem 1rem; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
  background: hsl(222 30% 14% / 0.5); border-bottom: 1px solid var(--border);
}
table.data td { padding: 0.75rem 1rem; vertical-align: top; border-bottom: 1px solid hsl(222 30% 16% / 0.5); }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--fg); font-weight: 500; }

.legal-caps {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: hsl(222 30% 14% / 0.3); padding: 1.25rem;
  font-size: 0.8125rem; line-height: 1.7; letter-spacing: 0.02em; text-transform: uppercase;
}
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: hsl(222 41% 9% / 0.6); padding: 1.25rem; font-size: 0.875rem;
}
.contact-card p { margin: 0; }
.contact-card p + p { margin-top: 0.25rem; }
.contact-card .name { font-weight: 600; color: var(--fg); }

footer.site { border-top: 1px solid var(--border); background: hsl(222 41% 9% / 0.4); }
footer.site .container {
  display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem;
  font-size: 0.75rem; color: var(--muted-fg);
}
@media (min-width: 640px) {
  footer.site .container { flex-direction: row; align-items: center; justify-content: space-between; }
}
footer.site .left { display: flex; align-items: center; gap: 0.75rem; }
footer.site .left img { height: 1.5rem; display: block; }
footer.site .links { display: flex; gap: 1.25rem; }
footer.site .links a { text-decoration: none; transition: color 0.15s; }
footer.site .links a:hover { color: var(--fg); }
