/* The legal pages (terms.html, privacy.html, trademark.html and their en/ twins): plain documents in the site's colours
   (web/src/site/site.css.ts), dark by default as the site is, light when the site's theme switch chose it. */
:root {
  --bg: #09090B; --fg: #F4F4F5; --muted: #A1A1AA; --line: rgba(255, 255, 255, .09); --accent: #E5704A;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FAFAF9; --fg: #18181B; --muted: #52525B; --line: rgba(0, 0, 0, .09);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] { --bg: #FAFAF9; --fg: #18181B; --muted: #52525B; --line: rgba(0, 0, 0, .09); color-scheme: light; }
}
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }
nav { display: flex; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
nav .home { margin-right: auto; font-weight: 600; color: var(--fg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 32px; line-height: 1.25; margin: 40px 0 8px; }
h2 { font-size: 20px; margin: 40px 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }
li { margin: 4px 0; }
code { font-size: .9em; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { table { display: block; overflow-x: auto; } }
