/* Styling for the standalone legal pages (privacy.html, terms.html).

   These are deliberately plain static HTML rather than routes in the app: a
   privacy policy has to render for a crawler, for a regulator, and on a browser
   where the bundle failed to parse — the same reasoning as the boot guard in
   index.html. So the brand tokens are repeated here rather than imported from
   the Tailwind theme; there is no build step in this file's path. */

:root {
  --ink-950: #0c0b24;
  --ink-900: #131140;
  --ink-800: #211f63;
  --brand-400: #6e6bd0;
  --mint: #6afcc1;
  --cream: #f4f3ff;
  --haze: #c9c6ee;
  --muted: #9a96cf;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--ink-950);
  background-image: radial-gradient(44rem 30rem at 50% -6rem, rgba(106, 252, 193, 0.13), transparent 68%);
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 0 1.5rem 6rem;
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 3rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 0.7rem; }
.brand .dot { color: var(--mint); }
.back {
  font-size: 0.9rem;
  color: var(--haze);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 198, 238, 0.3);
  padding-bottom: 1px;
}
.back:hover { color: var(--cream); border-bottom-color: currentColor; }

/* ---------- type ---------- */
h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}
.dates {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.lede {
  font-size: 1.1rem;
  color: var(--haze);
  margin: 0 0 2.5rem;
}

h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 3rem 0 0.9rem;
  scroll-margin-top: 1.5rem;
}
h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
}
p, li { color: var(--haze); }
p { margin: 0 0 1rem; }
strong { color: var(--cream); font-weight: 600; }

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--mint); }

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #8dffd6; }
a:focus-visible, .back:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(110, 107, 208, 0.16);
  padding: 0.1em 0.36em;
  border-radius: 4px;
  color: var(--cream);
}

/* ---------- table of contents ---------- */
.toc {
  border: 1px solid rgba(110, 107, 208, 0.22);
  background: rgba(33, 31, 99, 0.4);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.toc p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--haze); text-decoration: none; }
.toc a:hover { color: var(--mint); }

/* ---------- callout ---------- */
.note {
  border-left: 3px solid var(--mint);
  background: rgba(106, 252, 193, 0.07);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--mint); }

/* ---------- subprocessor table ---------- */
.tablewrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}
caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.6rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid rgba(110, 107, 208, 0.18);
  color: var(--haze);
}
th {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-color: rgba(110, 107, 208, 0.35);
}
td:first-child { color: var(--cream); font-weight: 500; white-space: nowrap; padding-right: 1.5rem; }

/* ---------- footer ---------- */
.pagefoot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.pagefoot a { color: var(--haze); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
