/* Pagine legali (privacy, cookie, note legali, 404) — stessi colori e stessa
   banda di chiusura della pagina principale; il testo lungo sta su carta
   chiara per leggersi bene. Font servito da questo dominio. */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paint: #F47431;
  --ink: #141110;
  --ink-soft: #3A2A20;
  --paper: #FBF7F3;
  --rule: rgba(20, 17, 16, 0.14);
  --night: #0C0B0A;
  --night-ink: #E8E4E0;
  --night-soft: #9B948E;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-underline-offset: 0.18em; }

.top {
  background: var(--paint);
  padding: 1rem var(--gutter);
}
.top .home {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-block: 0.5rem;
  display: inline-block;
}
.top .home::before { content: "← "; font-weight: 500; }

.doc {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(70ch + 2 * var(--gutter));
  padding: clamp(1.75rem, 5vh, 3.5rem) var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
  overflow-wrap: anywhere;
}
.doc h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.doc .intro { font-size: 1.125rem; color: var(--ink-soft); margin: 1rem 0 2rem; }
.doc h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.doc p, .doc ul { margin: 0 0 0.9rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.3rem; }
.doc .dati { list-style: none; padding: 0; }
.doc .rev { margin-top: 2.5rem; color: var(--ink-soft); font-size: 0.875rem; }

/* Banda di chiusura: identica alla pagina principale. */
.band {
  flex: none;
  background: var(--night);
  color: var(--night-soft);
  padding: clamp(1rem, 2.4vh, 1.6rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.by {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.7rem;
  margin-block: -0.7rem;
  color: var(--night-ink);
  text-decoration: none;
}
.by svg { width: 1.5rem; height: auto; flex: none; }
.by b { font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; }
@media (hover: hover) and (pointer: fine) { .by:hover { opacity: 0.72; } }
.legal { font-variant-numeric: tabular-nums; }
.legal .nw { white-space: nowrap; }
.legal-block { display: flex; flex-direction: column; gap: 0.35rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.legal-links a {
  color: var(--night-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  padding-block: 0.35rem;
}
@media (min-width: 48rem) {
  .legal-block { align-items: flex-end; text-align: right; }
}

.doc .nw { white-space: nowrap; }
