/* Páginas legais (termos.html, privacidade.html, cookies.html) — geradas por tools/gerar-termos.py */
:root {
  color-scheme: light;
  --bg: #f6f7fb; --panel: #ffffff; --border: #e3e6ee; --text: #161a22; --muted: #5d6678;
  --accent: #ff6a13; --link: #d4560c; --zebra: #f9fafc;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1016; --panel: #151a23; --border: #252c39; --text: #e8ecf4; --muted: #949db0;
  --accent: #ff7a2e; --link: #ff9550; --zebra: #181e28;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15.5px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
.lg-top { max-width: 820px; margin: 0 auto; padding: 18px 16px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-logo img { display: block; height: 32px; width: auto; }
.lg-logo .lg-escuro, html[data-theme="dark"] .lg-logo .lg-claro { display: none; }
html[data-theme="dark"] .lg-logo .lg-escuro { display: block; }
.lg-voltar { font-size: 14px; font-weight: 600; text-decoration: none; }
.lg-abas { max-width: 820px; margin: 0 auto; padding: 8px 16px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.lg-abas a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--panel); }
.lg-abas a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lg-doc { max-width: 820px; margin: 16px auto 0; padding: 24px 20px 32px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.lg-doc h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; }
.lg-doc h2 { font-size: 18px; line-height: 1.3; margin: 30px 0 8px; scroll-margin-top: 16px; }
.lg-doc p, .lg-doc ul { margin: 0 0 12px; }
.lg-doc ul { padding-left: 22px; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc code { font-size: 13px; background: var(--zebra); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; }
.tabela { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--zebra); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.lg-rod { max-width: 820px; margin: 0 auto; padding: 20px 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 640px) {
  .lg-doc { padding: 18px 16px 24px; border-radius: 0; border-left: 0; border-right: 0; }
  .lg-doc h1 { font-size: 22px; }
  /* tabelas viram cartões no celular */
  .tabela { border: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 4px 0; background: var(--zebra); }
  td { border: 0; padding: 6px 12px; }
  td::before { content: attr(data-r); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
}
