/* Shared look of the document pages (privacy, terms, rules, consent). Same values as app/src/theme.ts. */
:root {
  --bg: #0A0A0A; --card: #1A1A1A; --text: #FFFFFF; --muted: #A6A6A6; --line: #2B2B2B;
  --accent: #F5B700; --accent-text: #F5B700; --on-accent: #0A0A0A; --accent-soft: rgba(245, 183, 0, 0.16);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F2F2F7; --card: #FFFFFF; --text: #0A0A0A; --muted: rgba(60, 60, 67, 0.76); --line: rgba(60, 60, 67, 0.18);
  --accent-text: #7A5A00; --accent-soft: #FFF1C2;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 Onest, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px max(64px, env(safe-area-inset-bottom)); }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
nav { display: flex; gap: 8px; margin: 8px -16px 28px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 40px 0 8px; text-wrap: balance; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; margin: 16px 0 8px; }
.card { background: var(--card); border-radius: 14px; padding: 16px; margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }

.wrap { overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 14px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; }
