/* nannicini.it — pagine legali (.legal: privacy, termini) e pagina 404 (.nf).
   Si appoggia alle variabili di style.css; registro tipografico della pagina Aziende. */

/* ---------- pagine legali ---------- */
.legal {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 112px);
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: break-word;
}
.legal .wrap { max-width: calc(820px + 2 * var(--gut)); }

.legal h1 {
  font-size: clamp(32px, 3vw, 46px); font-weight: 700; font-stretch: 100%;
  letter-spacing: -0.015em; line-height: 1.1;
  padding-bottom: 18px; border-bottom: 1px solid var(--ink);
}
.legal .legal-upd { margin: 12px 0 36px; font-size: 1rem; color: var(--muted); }

.legal h2 {
  font-size: 1.375rem; font-weight: 700; font-stretch: 100%;
  letter-spacing: -0.005em; line-height: 1.25;
  margin: 2.6em 0 .7em; max-width: 70ch;
}
.legal h3 {
  font-size: 1.125rem; font-weight: 700; font-stretch: 100%; line-height: 1.3;
  margin: 1.8em 0 .5em; max-width: 70ch;
}
.legal p, .legal ul, .legal ol { max-width: 70ch; }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.25em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--muted); }
.legal strong { font-weight: 700; }

.legal a { color: var(--az-ink); text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal a:focus-visible { outline: 3px solid var(--az-ink); outline-offset: 2px; border-radius: 2px; }

/* tabelle eventuali: sempre dentro un contenitore che scorre da solo */
.legal .tbl { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
.legal table { border-collapse: collapse; min-width: 100%; font-size: 1rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; border-bottom-color: var(--ink); }

/* ---------- 404 ---------- */
.nf { padding: clamp(48px, 8vw, 120px) 0 clamp(64px, 9vw, 128px); }
.nf .wrap { max-width: calc(820px + 2 * var(--gut)); }
.nf h1 {
  font-size: clamp(32px, 3vw, 46px); font-weight: 700; font-stretch: 100%;
  letter-spacing: -0.015em; line-height: 1.1;
  padding-bottom: 18px; border-bottom: 1px solid var(--ink);
}
.nf .nf-lead { margin: 16px 0 32px; max-width: 60ch; color: var(--muted); }
.nf-links { list-style: none; margin: 0 0 32px; padding: 0; max-width: 560px; border-top: 1px solid var(--line); }
.nf-links li { border-bottom: 1px solid var(--line); }
.nf-links a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.375rem; font-weight: 700; font-stretch: 100%;
  color: var(--az-ink); text-decoration: none;
}
.nf-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nf-links a:focus-visible { outline: 3px solid var(--az-ink); outline-offset: 2px; }
.nf .nf-ct { margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.nf .nf-ct a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--az-ink); font-weight: 700; text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .legal h1, .nf h1 { font-size: 30px; }
  .legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
  .nf-links a { font-size: 1.25rem; }
}
