/* Pagina statica dell'informativa privacy (/privacy): niente JavaScript dell'app, così la leggono
   anche i controlli di Meta. Stessi token di web/src/styles.css; il tema arriva da /theme.js
   (data-theme su <html>), con prefers-color-scheme come ripiego se lo script non gira. */

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --bg: #fafaf9;
  --surface: #ffffff;
  --line: #e7e5e4;
  --fg: #1c1917;
  --fg-muted: #57534e;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-fg: #ffffff;
  --ring: #0d9488;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0c0a09;
    --surface: #1c1917;
    --line: #2f2b28;
    --fg: #fafaf9;
    --fg-muted: #a8a29e;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-fg: #042f2e;
    --ring: #2dd4bf;
  }
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0a09;
  --surface: #1c1917;
  --line: #2f2b28;
  --fg: #fafaf9;
  --fg-muted: #a8a29e;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-fg: #042f2e;
  --ring: #2dd4bf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans Variable', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

a:hover {
  color: var(--accent-hover);
}

.salta {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
}

.salta:focus {
  top: 16px;
}

.testata {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.testata-interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 48rem;
  margin: 0 auto;
  padding: 8px 16px;
}

.marchio,
.accedi {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.marchio {
  gap: 10px;
  color: var(--fg);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.marchio:hover {
  color: var(--fg);
}

.marchio img {
  width: 32px;
  height: 32px;
}

.accedi {
  padding: 0 4px;
  font-size: 0.9375rem;
}

.pagina {
  max-width: 48rem;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
}

h2 {
  margin: 48px 0 12px;
  font-size: 1.25rem;
}

.aggiornata {
  margin: 8px 0 0;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

p,
ul {
  max-width: 68ch;
  margin: 12px 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 8px;
}

.tabella {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.tabella caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tabella th,
.tabella td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tabella th {
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tabella td:first-child {
  font-weight: 600;
}

/* Sotto i 640 px ogni riga diventa una scheda con le etichette: niente scroll orizzontale. */
@media (max-width: 40rem) {
  .tabella thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .tabella tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .tabella td {
    display: block;
    padding: 4px 0;
    border: 0;
  }

  .tabella td::before {
    content: attr(data-etichetta);
    display: block;
    color: var(--fg-muted);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
