/* Foglio di stile condiviso dalle pagine legali di Popsie.
   Volutamente minimale e senza dipendenze esterne: queste pagine devono
   restare leggibili anche fra anni, anche se la web app cambia o sparisce. */

:root {
  --bg: #ffffff;
  --surface: #f6f6f7;
  --ink: #18181b;
  --ink-muted: #52525b;
  --line: #e4e4e7;
  --accent: #b58900;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #161618;
    --ink: #fafafa;
    --ink-muted: #a1a1aa;
    --line: #27272a;
    --accent: #f7c948;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header.doc-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }

.updated { color: var(--ink-muted); font-size: 0.9rem; margin: 0; }

p, li { color: var(--ink); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

strong { font-weight: 650; }

.muted { color: var(--ink-muted); font-size: 0.925rem; }

/* Riquadro per i richiami importanti (età minima, dati fuori dall'UE, ecc.). */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Le tabelle dei dati e dei fornitori: su schermo stretto scorrono da sole
   invece di far scorrere l'intera pagina in orizzontale. */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.925rem; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; color: var(--ink-muted); font-size: 0.825rem; text-transform: uppercase; letter-spacing: 0.04em; }

footer.doc-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
footer.doc-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1rem; }
