/* Shared styling for the legal / policy pages. Theme-aware, mobile-first,
 * fully self-contained (no external fonts or assets). */
:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --border: #2a2f3a;
  --accent: #6ea8fe;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #1a1d24;
    --muted: #5a6472;
    --border: #e2e5ea;
    --accent: #2563eb;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 24px 20px 64px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
header.site .brand { font-weight: 700; font-size: 18px; letter-spacing: .2px; }
header.site a.back {
  color: var(--accent); text-decoration: none; font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px;
}
header.site a.back:hover { border-color: var(--accent); }
h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
p, li { color: var(--text); }
.muted, .updated { color: var(--muted); font-size: 14px; }
.updated { margin-top: 0; }
a { color: var(--accent); }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 22px 18px;
}
ul { padding-left: 20px; }
li { margin: 4px 0; }
.notice {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 10px; padding: 12px 16px; margin: 18px 0; font-size: 15px;
}
footer.site {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
footer.site nav a { text-decoration: none; }
footer.site nav a:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
