/* Shared by index.html, support.html, terms.html and privacy.html. Tokens follow lib/demo/demo_theme.dart. */
:root {
  --bg: #F4F3F7; --fg: #1C1726; --muted: #6B6478; --accent: #6D28D9; --on-accent: #FFFFFF;
  --card: #FFFFFF; --line: #E7E4EE; --glow: rgba(109, 40, 217, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #130F1A; --fg: #F4F3F7; --muted: #A49DB2; --accent: #A78BFA; --on-accent: #130F1A;
    --card: #1E1828; --line: #2C2538; --glow: rgba(167, 139, 250, 0.14);
  }
}

/* lang.js sets data-lang on <html>; only the matching language shows. */
[data-lang="en"] [lang="vi"], [data-lang="vi"] [lang="en"] { display: none; }

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 16px/1.55 "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, var(--glow), transparent 70%);
}
main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 24px 16px 72px; }

.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; font-size: 14px; }
.top a { color: var(--muted); text-decoration: none; }
.top .home { color: var(--fg); font-weight: 600; }
.langs a[aria-current="true"] { color: var(--fg); font-weight: 600; }

.kit { display: block; width: 112px; height: 112px; margin-bottom: 16px; }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 32px 0 12px;
}
.lead { color: var(--muted); margin: 0 0 24px; }

.card { background: var(--card); border-radius: 16px; padding: 4px 20px; margin: 0 0 12px; }
.card p { margin: 14px 0; }
.points { list-style: none; }
.points li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.points li:last-child { border-bottom: 0; }

a.row {
  display: flex; justify-content: space-between; align-items: center; background: var(--card);
  color: var(--fg); text-decoration: none; padding: 16px 20px; border-radius: 12px; margin-bottom: 8px;
  font-weight: 600;
}
a.row::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; }

.primary {
  display: block; text-align: center; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 600; padding: 16px 20px; border-radius: 12px; margin: 14px 0 8px;
}
.muted { color: var(--muted); font-size: 14px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary {
  display: flex; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { margin-top: 40px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }

/* Legal pages (terms.html, privacy.html): long text, numbered sections. */
main.legal { max-width: 720px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.legal .toc { padding: 12px 20px; }
.legal .toc ol { margin: 8px 0; padding-left: 20px; }
.legal .toc li { padding: 3px 0; }
.legal .toc a { color: var(--fg); text-decoration: none; }
.legal section { margin: 0 0 8px; }
.legal h2 {
  font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--fg);
  margin: 36px 0 8px; scroll-margin-top: 16px;
}
.legal h3 { font-size: 16px; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--fg); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent); }
.legal .note { background: var(--card); border-radius: 12px; padding: 12px 16px; color: var(--muted); }
