:root {
  color-scheme: light;
  --lg-bg: #f6f7f9; --lg-surface: #fff; --lg-border: #e6e8ee;
  --lg-text: #1a2233; --lg-muted: #667; --lg-h4: #556; --lg-link: #2b6cb0;
}
/* Dark theme — applied when the app is set to Dark, or to System while the OS prefers dark. `data-theme`
   is written from localStorage['cpTheme'] by the inline <head> script on each legal page — the SAME key
   the dashboard uses — so these pages follow whatever light/dark/system the user picked in the app (not
   just the OS). No saved preference (or no JS) → falls back to following the OS via the media query. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --lg-bg: #12151b; --lg-surface: #1a1f28; --lg-border: #2a303c;
  --lg-text: #e6e8ee; --lg-muted: #9aa4b2; --lg-h4: #9aa4b2; --lg-link: #7ab0e6;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"], :root:not([data-theme]) {
    color-scheme: dark;
    --lg-bg: #12151b; --lg-surface: #1a1f28; --lg-border: #2a303c;
    --lg-text: #e6e8ee; --lg-muted: #9aa4b2; --lg-h4: #9aa4b2; --lg-link: #7ab0e6;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 40px 20px; line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--lg-text); background: var(--lg-bg);
}
.wrap { max-width: 760px; margin: 0 auto; background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: 16px; padding: 32px 36px; }
h1 { font-size: 26px; margin: 0 0 4px; }
.sub { color: var(--lg-muted); margin: 0 0 24px; font-size: 14px; }
.legal-body h2 { font-size: 20px; margin: 30px 0 8px; }
.legal-body h3 { font-size: 16px; margin: 22px 0 6px; }
.legal-body h4 { font-size: 14px; margin: 18px 0 4px; text-transform: uppercase; letter-spacing: .03em; color: var(--lg-h4); }
.legal-body p, .legal-body li { font-size: 15px; }
.legal-body ul { padding-left: 20px; margin: 8px 0; }
.legal-body li { margin: 4px 0; }
.legal-body hr { border: 0; border-top: 1px solid var(--lg-border); margin: 26px 0; }
a { color: var(--lg-link); }
.legal-foot { margin-top: 30px; border-top: 1px solid var(--lg-border); padding-top: 16px; font-size: 13px; }
.legal-foot a { color: var(--lg-muted); text-decoration: none; margin: 0 6px; }
.legal-foot a:hover { text-decoration: underline; }
