/* legal.css — shared shell for /docs, /terms, /privacy, /2257, /dmca,
   /contact. Pink-neon-on-near-black, on-brand with the corp home, but
   typeset for READING: IBM Plex Mono throughout, no Press Start 2P /
   VT323. The 2026-05-12 revision retires the pixel-art font on legal
   surfaces — it looked the part but was illegible at paragraph length.
   Headers and labels keep a slight letter-spacing + uppercase treatment
   so the brand voice carries; body copy is comfortable line-height. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:         #050507;
  --bg-2:       #0a0a0d;
  --line:       #1c1827;
  --line-dash:  rgba(255, 59, 154, 0.18);
  --pink:       #ff3b9a;
  --pink-soft:  #ff7fc8;
  --pink-dim:   #b32a6e;
  --pink-faint: rgba(255, 59, 154, 0.10);
  --fg:         #ffe0f2;
  --fg-dim:     #c8c0d0;
  --fg-mid:     #ddd0e0;
  --fg-faint:   #6a4d5c;
  --scan:       rgba(255, 59, 154, 0.030);
  /* Single font family. The old --cabinet / --vt / --body trio is
     collapsed to a single IBM Plex Mono stack so the cascade simplifies
     and existing rules don't have to be rewritten. */
  --cabinet:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --vt:         'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body:       'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 59, 154, 0.35);
  transition: color 200ms, border-color 200ms;
}
a:hover { color: var(--pink-soft); border-bottom-color: var(--pink); }

/* CRT atmospherics — kept lighter than on the home page so they
   don't compete with paragraph reading. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,0.55) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 2px,
    var(--scan) 2px, var(--scan) 3px
  );
  opacity: 0.4;
}

/* ── Top bar (uniform across docs/terms/privacy/2257/dmca/contact) ── */
.legal-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: rgba(5, 5, 7, 0.82);
  border-bottom: 1px solid var(--line);
}
.legal-bar .row {
  max-width: 880px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  gap: 24px;
}
.legal-bar > .row > a {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  border: none;
  display: flex; align-items: center; gap: 10px;
}
.legal-bar > .row > a:hover { color: var(--pink-soft); }

/* Brand glyph — crescent moon INSIDE a pink ring, mirroring the post-auth
   canvas brand exactly. The legal-bar previously rendered a bare crescent;
   the missing outer ring was the "not accurate" delta vs the app header.
   Switched from mask-image (single shape, color via background-color) to a
   background-image SVG so the crescent + ring can both render in one glyph.
   --pink (#ff3b9a) is hard-coded inside the data URI because CSS variables
   don't resolve inside url(...) data; the value matches --pink everywhere else. */
.legal-bar .glyph {
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><defs><mask id='lb-m'><rect width='22' height='22' fill='white'/><circle cx='14' cy='11' r='8' fill='black'/></mask></defs><circle cx='11' cy='11' r='9' fill='%23ff3b9a' mask='url(%23lb-m)' opacity='0.95'/><circle cx='11' cy='11' r='10' fill='none' stroke='%23ff3b9a' stroke-width='1.2'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0;
  filter: drop-shadow(0 0 4px var(--pink));
}
.legal-bar nav {
  display: flex; gap: 22px; flex-wrap: wrap;
}
.legal-bar nav a {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: none;
}
.legal-bar nav a:hover { color: var(--pink); }
.legal-bar nav a.active { color: var(--pink); }

/* ── Page body ────────────────────────────────────────── */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 28px 96px;
  position: relative;
  z-index: 1;
}
.legal-page .kicker {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.legal-page h1 {
  font-family: var(--body);
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pink);
  margin: 0 0 16px 0;
}
.legal-page .updated {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-page h2 {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 48px 0 14px 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-page h3, .legal-page h3.legal-h3 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--pink-soft);
  margin: 26px 0 8px 0;
}
.legal-page .placeholder {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--pink);
  background: rgba(255, 59, 154, 0.08);
  border: 1px dashed rgba(255, 59, 154, 0.4);
  padding: 2px 8px;
  text-transform: uppercase;
}
.legal-page p {
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.78;
  font-weight: 400;
  margin: 0 0 16px;
}
.legal-page p strong { color: var(--fg); font-weight: 600; }
.legal-page p em { color: var(--fg-mid); font-style: italic; }
.legal-page ul, .legal-page ol {
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.78;
  padding-left: 24px;
  margin: 0 0 18px;
}
.legal-page ul { list-style: none; padding-left: 22px; }
.legal-page ul li {
  position: relative;
  margin-bottom: 8px;
}
.legal-page ul li::before {
  content: "▸";
  position: absolute;
  left: -18px;
  top: 0;
  color: var(--pink);
  font-weight: 600;
}
.legal-page ol li { margin-bottom: 8px; }
.legal-page code {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pink-soft);
  background: rgba(255, 59, 154, 0.08);
  border: 1px solid rgba(255, 59, 154, 0.18);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ── Customization table (terms / privacy use this) ──── */
.legal-page .customization {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-page .customization .label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.legal-page .customization table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
}
.legal-page .customization td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-page .customization td.k {
  width: 220px;
  color: var(--fg-dim);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-page .customization td.v { color: var(--fg); }
.legal-page .customization td.v a {
  color: var(--pink);
  border-bottom: 1px dashed rgba(255, 59, 154, 0.35);
}

/* ── Foot nav ─────────────────────────────────────────── */
.legal-page .footnav {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--fg-faint);
  text-transform: uppercase;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.legal-page .footnav a {
  color: var(--fg-faint);
  border: none;
}
.legal-page .footnav a:hover { color: var(--pink); }
