/* Stile condiviso delle pagine statiche (privacy, cookie, il progetto, contatti): colori del marchio, senza dipendere dai file con l'hash dell'app.
   AR-195: segue il tema del sistema con gli stessi neutri del calcolatore (frontend/src/index.css) e lo stesso font Geist. */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
}
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #121929;
  --muted: #5b6172;
  --accent: #b8501e; /* = --brand in frontend/src/index.css */
  --line: #d9dbe2;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.145 0 0);
    --fg: oklch(0.985 0 0);
    --muted: oklch(0.708 0 0);
    --accent: #d97a3f;
    --line: oklch(1 0 0 / 10%);
    /* White on #d97a3f is about 3:1: the button text goes dark in this theme. */
    --on-accent: oklch(0.145 0 0);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}
.legal {
  max-width: 44rem;
  margin: 0 auto;
}
.legal h1 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.9rem;
  text-wrap: balance;
}
.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  text-wrap: balance;
}
.legal p,
.legal li {
  margin: 0 0 0.75rem;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal .updated,
.legal footer {
  color: var(--muted);
  font-size: 0.9rem;
}
.legal a {
  color: var(--accent);
  text-underline-offset: 2px;
}
.legal a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.legal .table-scroll {
  overflow-x: auto;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.legal th,
.legal td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* AR-191: menu e footer comuni a tutte le pagine statiche (il-progetto, contatti, privacy, cookie). */
.legal .site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.legal .site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.95rem;
}
.legal .site-nav a {
  padding: 0.4rem 0;
  color: var(--fg);
  text-decoration: none;
}
.legal .site-nav a:hover,
.legal .site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal .site-footer p {
  margin: 0.5rem 0 0;
}
/* Same brand block as the calculator's BrandMark: emblem, wordmark and tagline. */
.legal .site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.legal .site-brand > img {
  width: 50px;
  height: 50px;
}
.legal .site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.25;
}
.legal .site-brand-text picture {
  display: flex;
}
.legal .site-brand-text img {
  width: auto;
  height: 28px;
}
.legal .site-tagline {
  color: var(--accent);
  font-size: 0.875rem;
}
.legal .button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.legal .button:hover {
  filter: brightness(0.92);
}
