/* Styles for the static public pages (legal texts, prices). Self-contained, no network. */
:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #1b1f27;
  --muted: #5d6573;
  --border: #d5d9e0;
  --primary: #2f5bd3;
  --mark: #fff1b8;
  color-scheme: light dark;
}
/* Dark colours (SPEC §44): chosen on this device, or by the system when nothing is chosen.
   Both blocks must stay equal – tests/unit/theme.test.ts checks it. */
:root[data-theme='dark'] {
  --bg: #121418;
  --surface: #1b1e24;
  --text: #e8eaee;
  --muted: #a0a7b4;
  --border: #353a44;
  --primary: #7c9cf0;
  --mark: #5a4a12;
  color-scheme: dark;
}

:root[data-theme='light'] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121418;
    --surface: #1b1e24;
    --text: #e8eaee;
    --muted: #a0a7b4;
    --border: #353a44;
    --primary: #7c9cf0;
    --mark: #5a4a12;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
header, main, footer { max-width: 760px; margin: 0 auto; padding: 16px; }
header { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
header a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
main { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.15rem; margin-top: 1.6em; }
a { color: var(--primary); }
.draft { padding: 10px 14px; border: 2px dashed #c0352b; border-radius: 8px; color: #c0352b; font-weight: 600; }
.ph { background: var(--mark); padding: 0 4px; border-radius: 3px; }
.price { font-size: 1.5rem; font-weight: 700; }
.muted { color: var(--muted); }
footer { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.9rem; }
footer a { color: var(--muted); }
