/* Pagine legali statiche (/privacy, /termini).
 * Niente Angular, niente Firebase, niente font esterni: devono aprirsi da un
 * link dello store o di un sito vetrina senza creare sessioni né contattare
 * terzi. Colori allineati a styles.css, tema scuro di default come l'app. */
:root {
  --accent: #d4ff3a;
  --bg: #06030c;
  --text: #f1efe7;
  --text-muted: #8a8694;
  --text-hint: #6f6b7c;
  --text-strong: #ffffff;
  --border: rgba(255,255,255,.1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --accent: #4f6800;
  --bg: #f7f7f4;
  --text: #0d0d12;
  --text-muted: #5a5666;
  --text-hint: #6a6676;
  --text-strong: #000000;
  --border: rgba(0,0,0,.1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.back { display: inline-block; color: var(--text-muted); text-decoration: none; font-size: .9rem; margin-bottom: 1rem; }
.back:hover { color: var(--accent); }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; line-height: 1.2; color: var(--text-strong); margin: 0 0 .25rem; }
.updated { color: var(--text-hint); font-size: .85rem; margin: 0 0 1.75rem; }
section { margin-bottom: 1.75rem; }
h2 { font-size: 1.08rem; color: var(--accent); margin: 0 0 .5rem; }
h3 { font-size: .98rem; color: var(--text-strong); margin: 1rem 0 .35rem; }
p, li { font-size: .95rem; }
ul { padding-left: 1.2rem; margin: .4rem 0; }
li { margin-bottom: .4rem; }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .5rem 0; }
th, td { text-align: left; vertical-align: top; padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--border); }
th { color: var(--text-strong); font-weight: 600; }
.table-wrap { overflow-x: auto; }
code { font-size: .85em; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--border); padding-top: 1rem; color: var(--text-hint); font-size: .85rem; }
/* Dentro l'app le pagine sono mostrate in un iframe con la sua barra: il link
 * "torna" caricherebbe l'app dentro sé stessa. */
.framed .back, .framed footer .standalone-only { display: none; }
