/* Pagine legali (privacy / cookie) — stile coerente con il portfolio */

/* font locali, gli stessi del sito */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./_next/static/media/e4af272ccee01ff0-s.p.woff2) format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308,
    u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./_next/static/media/8e9860b6e62d6359-s.woff2) format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308,
    u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113,
    u+2c60-2c7f, u+a720-a7ff;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./_next/static/media/7b0b24f36b1a6d0b-s.p.woff2) format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308,
    u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./_next/static/media/98848575513c9742-s.woff2) format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308,
    u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113,
    u+2c60-2c7f, u+a720-a7ff;
}

:root {
  --font-inter: "Inter", Arial, sans-serif;
  --font-outfit: "Outfit", "Inter", sans-serif;
  --bg: #101010;
  --panel: #151217;
  --text: #f8f8f8;
  --muted: #aaa5ae;
  --line: rgba(255, 255, 255, 0.11);
  --violet: #b100ff;
  --purple: #7d3cff;
  --indigo: #4d5cff;
  --page-x: clamp(1.25rem, 4vw, 4.75rem);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-inter), Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 40vw at 12% -10%, rgba(177, 0, 255, 0.16), transparent 60%),
    radial-gradient(55vw 40vw at 90% 0%, rgba(77, 92, 255, 0.14), transparent 62%);
}

a {
  color: inherit;
}

/* ---------- header ---------- */

.legal-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--page-x);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.78);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s ease;
}

.legal-back:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--violet), var(--indigo));
  color: #fff;
}

/* ---------- layout ---------- */

.legal-wrap {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--page-x) clamp(4rem, 8vw, 7rem);
}

.legal-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-outfit), Outfit, sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  background: linear-gradient(100deg, #fff 20%, #d8c7ff 60%, #9fb0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-updated::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}

.legal-intro {
  font-size: 1.05rem;
  color: #ded9e4;
  border-left: 2px solid var(--purple);
  padding-left: 1.2rem;
  margin: 0 0 3rem;
}

section.legal-block {
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  margin-top: 2.4rem;
}

section.legal-block:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

h2 {
  font-family: var(--font-outfit), Outfit, sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

h2 .num {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--violet);
  font-family: var(--font-inter), Inter, sans-serif;
}

h3 {
  font-family: var(--font-outfit), Outfit, sans-serif;
  font-size: 1rem;
  margin: 1.8rem 0 0.6rem;
  color: #efeaf4;
}

p,
li {
  color: #cfc9d6;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--purple);
}

strong {
  color: var(--text);
  font-weight: 600;
}

.legal-wrap a:not(.legal-back):not(.legal-cta) {
  color: #cbb8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(203, 184, 255, 0.4);
}

.legal-wrap a:not(.legal-back):not(.legal-cta):hover {
  text-decoration-color: currentColor;
}

/* ---------- card titolare ---------- */

.owner-card {
  background: linear-gradient(160deg, rgba(177, 0, 255, 0.1), rgba(77, 92, 255, 0.06));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.5rem 0;
}

.owner-card dl {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
}

.owner-card dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}

.owner-card dd {
  margin: 0;
  color: var(--text);
}

/* ---------- tabella ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin: 1.25rem 0 1.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #cfc9d6;
}

th {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  color: #e6dcff;
  background: rgba(177, 0, 255, 0.12);
  border-radius: 0.35rem;
  padding: 0.1rem 0.4rem;
}

/* ---------- note e placeholder ---------- */

.callout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 2px solid var(--indigo);
  border-radius: 0 1rem 1rem 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.todo {
  background: rgba(255, 212, 0, 0.16);
  border: 1px dashed rgba(255, 212, 0, 0.55);
  border-radius: 0.4rem;
  padding: 0.05rem 0.4rem;
  color: #ffe98a;
  font-size: 0.92em;
}

/* ---------- footer ---------- */

.legal-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2rem var(--page-x) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.legal-foot a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s ease;
}

.legal-foot a:hover {
  color: var(--text);
}

/* ---------- multilingua ---------- */

[data-lang] {
  display: none;
}

[data-lang].is-active {
  display: block;
}

@media (max-width: 640px) {
  .owner-card dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .owner-card dd {
    margin-bottom: 0.75rem;
  }
}

/* Titolo di pagina alla stessa misura dei titoli del sito:
   riferimento "Hi there, welcome!" in home, stessi due breakpoint. */
h1 {
  font-size: clamp(2.2rem, 5.1vw, 4.81rem);
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2rem, 10.2vw, 3.2rem);
  }
}

/* Margini laterali su telefono: gli stessi della home (circa 38px per lato) */
@media (max-width: 640px) {
  :root {
    --page-x: 2.375rem;
  }
}

/* ===== Revisione del 18/09/2026 ===== */
/* pagina scura dichiarata come tale: il browser non la scurisce da solo */
:root { color-scheme: dark; }
/* numeri di sezione: stesso viola, un filo piu' chiaro (contrasto 4,9 invece di 3,9) */
h2 .num { color: #c040ff; }
/* pie' di pagina: contrasto AA (era 4,1) */
.legal-foot { color: rgba(255, 255, 255, 0.6); }
