/* ══════════════════════════════════════════════════════════
   legal.css — privacy / subprocessors / security-overview
   Sober document typography. Inter throughout, monochrome,
   hairline rules. No display serif, no accent colour.
   ══════════════════════════════════════════════════════════ */

:root {
  --ink:    #101114;
  --body:   #454a52;
  --muted:  #82878f;
  --faint:  #9aa0a8;
  --rule:   #e4e6ea;
  --rule-2: #c9ccd2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: #f2f1ec;
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
a { color: inherit; }

/* ─── nav: the site's own bar ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.5px;
  color: rgba(20, 25, 60, 0.9);
  text-decoration: none;
}
.nav-logo img { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; filter: brightness(0); }
.nav-back { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.nav-back:hover { color: var(--ink); }
.nav-cta2 {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.nav-cta2:hover { border-color: var(--ink); }

/* ─── frame ─── */
.hero, .docnav, .doc, .onward, .close, footer {
  max-width: 1040px; margin: 0 auto; padding-left: 40px; padding-right: 40px;
}

/* ─── eyebrow ─── */
.sec-label, .sec-n, .onward-lbl, .hero-stamp {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ─── masthead ─── */
.hero { padding-top: 122px; }
.sec-label { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.021em;
  color: var(--ink);
  max-width: 22ch;
}
.hero h1 em { font-style: normal; color: inherit; }
.hero-sub {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--body);
}
.hero-stamp { margin-top: 28px; }

/* ─── document switcher ─── */
.docnav { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 34px; }
.docnav a {
  font-size: 14px; font-weight: 450;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
}
.docnav a:hover { color: var(--ink); }
.docnav a[aria-current="page"] {
  color: var(--ink); font-weight: 500;
  box-shadow: inset 0 -1px 0 var(--ink);
}

/* ─── body ─── */
.doc-inner { padding-top: 34px; }
.doc-inner > p { margin-bottom: 16px; max-width: 70ch; }
.sec > p, .sec > ul, .sec > h2, .sec > h3, .sec > .note, .sec > .honest,
.doc-inner > .note, .doc-inner > ul { max-width: 70ch; }

.doc-inner a:not(.btn), .sec a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.doc-inner a:not(.btn):hover, .sec a:not(.btn):hover { text-decoration-color: var(--ink); }

.sec { padding-top: 50px; }
.sec + .sec { margin-top: 50px; border-top: 1px solid var(--rule); }
.sec-n { margin-bottom: 16px; }
.sec h2 {
  font-size: 21px; font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
}
.sec h2 em { font-style: normal; color: inherit; }
.sec h3 {
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  margin: 30px 0 8px;
}
.sec p { margin-bottom: 16px; }
.sec p b, .sec p strong, .doc-inner > p b, .doc-inner > p strong,
.sec li b, .sec li strong { color: var(--ink); font-weight: 600; }
.sec code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
}

/* lists */
.sec ul { list-style: none; margin: 0 0 16px; }
.sec ul li { position: relative; padding-left: 18px; margin-bottom: 9px; }
.sec ul li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 1px;
  background: var(--rule-2);
}

/* ─── tables ─── */
.tbl { overflow-x: auto; margin: 6px 0 18px; -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; min-width: 520px; border-collapse: collapse; }
.tbl thead th {
  text-align: left;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 28px 11px 0;
  border-bottom: 1px solid var(--rule-2);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 14px 28px 14px 0;
  vertical-align: top;
  font-size: 14.5px; line-height: 1.6;
  border-bottom: 1px solid var(--rule);
}
.tbl tbody td:last-child, .tbl thead th:last-child { padding-right: 0; }
.tbl tbody td:first-child { color: var(--ink); font-weight: 600; }
.tbl td .pending { color: var(--faint); }
.tbl-wide table { min-width: 640px; }
.tbl:last-child tbody tr:last-child td { border-bottom: none; }

/* ─── emphasis: a rule, not a box ─── */
.note { border-left: 2px solid var(--rule-2); padding-left: 20px; margin: 24px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 11px; }

.honest { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* ─── continue reading ─── */
.onward { padding-top: 62px; }
.onward-lbl { margin-bottom: 20px; }
.onward-grid { max-width: 70ch; }
.onward-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.onward-card:last-child { border-bottom: 1px solid var(--rule); }
.onward-card b {
  font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.onward-card i {
  font-style: normal;
  font-size: 14px;
  color: var(--faint);
  transition: color 0.15s ease, transform 0.15s ease;
}
.onward-card:hover b { text-decoration: underline; text-underline-offset: 3px; }
.onward-card:hover i { color: var(--ink); }

/* ─── close ─── */
.close { padding-top: 64px; text-align: left; }
.close p {
  font-size: 18px; font-weight: 600;
  line-height: 1.42; letter-spacing: -0.014em;
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 22px;
}
.close p em { font-style: normal; color: var(--muted); }
.close a.btn {
  display: inline-block;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  margin: 0 6px 8px 0;
  transition: border-color 0.15s ease;
}
.close a.btn:hover { border-color: var(--ink); }
.close a.ghost { color: var(--muted); }
.close .mailline {
  display: block; margin-top: 24px;
  font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--faint);
}
.close .mailline a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.close .mailline a:hover { color: var(--ink); }

/* ─── footer ─── */
footer {
  margin-top: 78px;
  border-top: 1px solid var(--rule);
  padding-top: 24px; padding-bottom: 60px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav { padding: 0 20px; }
  .nav-back { display: none; }
  .hero, .docnav, .doc, .onward, .close, footer { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 92px; }
}

/* ─── the halftone masthead — the landing's living dot field, carried
   into the documents as a quiet plate behind the title ─── */
.hero-stage {
  position: relative;
  border: 1px solid #e9ebf2;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f4ee;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px) clamp(36px, 5vw, 60px);
}
.hero-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-stage > *:not(canvas) { position: relative; z-index: 2; }
.hero-stage .sec-label {
  display: inline-block;
  color: #1f40ed;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 64, 237, 0.2);
  border-radius: 6px;
  padding: 5px 11px;
}
.hero-stage h1,
.hero-stage .hero-sub,
.hero-stage .hero-stamp {
  width: fit-content;
  background: rgba(246, 244, 238, 0.88);
  border-radius: 8px;
  box-shadow: 0 0 14px 8px rgba(246, 244, 238, 0.88);
}
