/* Shared styling for the standalone legal documents under /legal/.
   These pages are plain static HTML rather than SPA routes, so that a legal
   document stays readable even if the application bundle fails to load — which
   matters more here than elsewhere: a customer's data-protection officer may
   be reading the DPA from a locked-down browser with scripting disabled.
   The accent matches the landing's kv-* palette so the pages sit in the same
   visual system, without pulling in the app's stylesheet. */
:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.975 0.003 255);
  --ink: oklch(0.205 0.012 255);
  --muted: oklch(0.45 0.015 255);
  --border: oklch(0.9 0.006 255);
  --ember: oklch(0.62 0.16 160);
  --ember-tint: oklch(0.62 0.16 160 / 0.1);
  --warn: oklch(0.62 0.15 75);
  --warn-tint: oklch(0.62 0.15 75 / 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.145 0.008 255);
    --surface: oklch(0.18 0.01 255);
    --ink: oklch(0.93 0.006 255);
    --muted: oklch(0.68 0.015 255);
    --border: oklch(0.28 0.012 255);
    --ember: oklch(0.83 0.17 160);
    --ember-tint: oklch(0.83 0.17 160 / 0.14);
    --warn: oklch(0.75 0.14 75);
    --warn-tint: oklch(0.75 0.14 75 / 0.14);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 740;
  font-size: 1.063rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand img { width: 29px; height: 29px; object-fit: contain; }
.back { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
main { padding: clamp(32px, 6vh, 64px) 0 clamp(48px, 8vh, 88px); }
article { max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ember-tint);
  color: var(--ember);
  font-size: 0.781rem;
  font-weight: 640;
}
h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
h2 { font-size: 1.15rem; margin: 34px 0 10px; }
h3 { font-size: 1rem; margin: 22px 0 8px; }
p, li { color: var(--ink); }
p.lead { color: var(--muted); margin: 0 0 28px; }
ol { padding-left: 1.3em; }
ol > li { margin: 0 0 10px; padding-left: 4px; }
ol ol { margin-top: 10px; }
ul { padding-left: 1.2em; }
ul > li { margin: 0 0 8px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
  margin: 0 0 20px;
}
.meta { color: var(--muted); font-size: 0.9em; }
/* Table of contents at the head of each document. */
.toc { margin: 0 0 32px; }
.toc ol { margin: 0; display: grid; gap: 6px; }
.toc a { font-size: 0.938rem; }
/* Wide tables (sub-processors, retention) scroll inside their own box rather
   than making the page scroll sideways on a phone. */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.938rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 640; color: var(--muted); font-size: 0.875rem; }
tr:last-child td { border-bottom: 0; }
.note {
  border: 1px solid var(--warn);
  border-left-width: 3px;
  border-radius: 10px;
  background: var(--warn-tint);
  padding: 14px 18px;
  margin: 0 0 24px;
}
.note p { margin: 0; font-size: 0.938rem; }
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.844rem;
}
footer .container { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
footer a { color: var(--muted); }
