/* Shared skin for the standalone legal pages (/privacy, /terms), 2026-07-15.
   Deliberately NOT part of the React gate: Stripe needs plain, always-reachable
   URLs for the Terms of Service link, and a policy page should render even if the
   app's JS is broken. Tokens are copied from login-gate/index.html so the pages
   read as the same product; the border methodology (Nik 2026-07-09) applies here
   too: ONE radius, inner blocks are borderless fills, no boxes around icons. */

:root {
  --cr-bg: #161618;
  --cr-radius: 4px;
  --cr-panel-bg: rgba(34, 34, 38, 0.62);
  --cr-surface: rgba(38, 38, 42, 0.8);
  --cr-surface-2: rgba(50, 50, 55, 0.92);
  --cr-rim: #38383d;
  --cr-rim-lit: #4c4c52;
  /* Box outlines and separator lines are off (Nik 2026-08-09). The link
     underline below is NOT a separator and keeps its green rule. */
  --cr-edge: transparent;
  --cr-rule: transparent;
  --cr-text: #d7d7d7;
  --cr-bright: #ececec;
  --cr-ink: #cfcfcf;
  --cr-muted: #9b9b9b;
  --cr-faint: #808080;
  --cr-green: #34d399;
  --cr-green-bg: rgba(52, 211, 153, 0.12);
  --cr-red: #f87171;
  --cr-red-bg: rgba(248, 113, 113, 0.12);
  --cr-gold: #fbbf24;
  --cr-gold-bg: rgba(251, 191, 36, 0.12);
  --cr-display: 'Lilita One', cursive;
  --cr-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cr-bg); color: var(--cr-text);
  font-family: 'Nunito', sans-serif; font-weight: 600;
  font-size: 15px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---- top bar ---- */
.lg-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 22px; background: rgba(22, 22, 24, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cr-rule);
}
.lg-word {
  font-family: var(--cr-display); font-size: 19px; letter-spacing: 1.6px;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(95deg, #54d6a0 5%, #6fe0b4 30%, #a974f5 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* The body `a` rule underlines links in green. On a background-clip:text
     wordmark that lands as a green rule under the gradient, so opt out here. */
  border-bottom: none;
}
.lg-top nav { display: flex; gap: 6px; flex-shrink: 0; }
.lg-top nav a {
  font-family: var(--cr-mono); font-size: 10.5px; letter-spacing: 0.8px;
  text-transform: uppercase; text-decoration: none; color: var(--cr-faint);
  padding: 6px 10px; border-radius: var(--cr-radius); transition: color 0.15s, background 0.15s;
  border-bottom: none; /* opt out of the body `a` green underline; these are chips */
}
.lg-top nav a:hover { color: var(--cr-bright); background: var(--cr-surface); }
.lg-top nav a[aria-current='page'] { color: var(--cr-bright); background: var(--cr-surface); }

/* ---- page ---- */
.lg-wrap { max-width: 780px; margin: 0 auto; padding: 40px 22px 90px; }
.lg-title { font-family: var(--cr-display); font-size: 40px; line-height: 1.1; color: var(--cr-bright); margin: 0 0 8px; }
.lg-sub { color: var(--cr-muted); font-size: 15px; margin: 0 0 6px; }
.lg-stamp {
  font-family: var(--cr-mono); font-size: 11px; letter-spacing: 0.6px;
  color: var(--cr-faint); text-transform: uppercase; margin: 0 0 30px;
}

/* Callout: icon + coloured text, never a bordered box (Nik 2026-07-09 rule 3). */
.lg-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.lg-note svg { flex-shrink: 0; margin-top: 3px; }
.lg-note.green { color: var(--cr-green); }
.lg-note.gold  { color: var(--cr-gold); }
.lg-note.red   { color: var(--cr-red); }
.lg-note p { margin: 0; font-size: 14px; font-weight: 700; }

/* Inner blocks are FILLS, not outlines. */
.lg-card { background: var(--cr-surface); border-radius: var(--cr-radius); padding: 16px 18px; margin: 0 0 14px; }
.lg-card.tight { padding: 13px 15px; }
.lg-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--cr-bright); }
.lg-card p:last-child, .lg-card ul:last-child { margin-bottom: 0; }

h2.lg-h {
  font-family: var(--cr-display); font-size: 24px; color: var(--cr-bright);
  margin: 40px 0 12px; scroll-margin-top: 70px;
}
h2.lg-h .n { color: var(--cr-faint); margin-right: 9px; font-size: 19px; }
h3.lg-h3 { font-size: 16px; font-weight: 800; color: var(--cr-bright); margin: 22px 0 7px; }
p { margin: 0 0 12px; }
a { color: var(--cr-green); text-decoration: none; border-bottom: 1px solid rgba(52, 211, 153, 0.3); }
a:hover { border-bottom-color: var(--cr-green); }
strong { color: var(--cr-bright); font-weight: 800; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--cr-faint); }
code {
  font-family: var(--cr-mono); font-size: 12.5px; background: #121214;
  padding: 1px 5px; border-radius: var(--cr-radius); color: var(--cr-ink);
}

/* ---- data table ---- */
.lg-tablewrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 460px; }
th {
  text-align: left; font-family: var(--cr-mono); font-size: 10px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--cr-faint); font-weight: 600;
  padding: 0 12px 7px 0; border-bottom: 1px solid var(--cr-rule); white-space: nowrap;
}
td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--cr-rule); vertical-align: top; color: var(--cr-muted); }
td:first-child { color: var(--cr-ink); font-weight: 700; }
tr:last-child td { border-bottom: none; }
.yes { color: var(--cr-green); font-family: var(--cr-mono); font-size: 12px; }
.no  { color: var(--cr-faint); font-family: var(--cr-mono); font-size: 12px; }

/* ---- toc ---- */
.lg-toc { background: var(--cr-surface); border-radius: var(--cr-radius); padding: 15px 18px; margin: 0 0 32px; }
.lg-toc div {
  font-family: var(--cr-mono); font-size: 10px; letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--cr-faint); margin-bottom: 9px;
}
.lg-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 26px; }
.lg-toc li { margin-bottom: 4px; font-size: 13.5px; break-inside: avoid; }
.lg-toc a { color: var(--cr-ink); border-bottom: none; }
.lg-toc a:hover { color: var(--cr-green); }
@media (max-width: 620px) { .lg-toc ol { columns: 1; } .lg-title { font-size: 31px; } }

/* ---- footer ---- */
.lg-foot {
  border-top: 1px solid var(--cr-rule); margin-top: 50px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--cr-mono); font-size: 10.5px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--cr-faint);
}
.lg-foot a { color: var(--cr-faint); border-bottom: none; }
.lg-foot a:hover { color: var(--cr-bright); }
