/* ============================================================================
   legal.css — Typography and layout for privacy.html + cookie.html.

   These pages live OUTSIDE the immersive scroll-video experience: no fixed
   canvas, no overlays, no Lenis. They are static documents read top-to-
   bottom. Styling reuses the playa color tokens + font families defined
   in base.css to keep the brand consistent, but adopts a quiet editorial
   layout (warm dark background, generous line-height, narrow column).
   ============================================================================ */

body.legal-page {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(245, 166, 35, 0.18), transparent 60%),
    linear-gradient(180deg, #1A0A15 0%, #2A0E1A 100%);
  background-attachment: fixed;
  color: var(--sand-cream, #FFF3E0);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  /* Override the immersive index.html setup: legal pages do NOT use
     overflow:hidden on body (set in base.css) — they must scroll natively. */
  overflow-y: auto;
}

/* Nav strip — minimal: brand on left, "Back to site" on right. */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(26, 10, 21, 0.7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 209, 102, 0.18);
}

.legal-nav__brand {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--sand-cream, #FFF3E0);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-nav__brand span {
  color: var(--gold-glow, #FFD166);
}

.legal-nav__back {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-cream, #FFF3E0);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.35);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.legal-nav__back:hover,
.legal-nav__back:focus-visible {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.65);
  transform: translateY(-1px);
  outline: 2px solid var(--gold-glow, #FFD166);
  outline-offset: 3px;
}

/* Main column — narrow text width for readability. */
.legal-main {
  display: block;
  padding: clamp(40px, 8vh, 80px) clamp(20px, 4vw, 48px) clamp(60px, 10vh, 120px);
}

.legal-article {
  max-width: 760px;
  margin-inline: auto;
}

.legal-head {
  margin-bottom: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid rgba(255, 209, 102, 0.22);
}

.legal-head h1 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--sand-cream, #FFF3E0);
  text-wrap: balance;
}

.legal-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: rgba(255, 243, 224, 0.78);
  margin: 0 0 8px;
  line-height: 1.55;
  text-wrap: pretty;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--gold-glow, #FFD166);
  letter-spacing: 0.04em;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}

.legal-article section {
  margin-bottom: clamp(28px, 4vh, 44px);
}

.legal-article h2 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--sand-cream, #FFF3E0);
}

.legal-article h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin: 22px 0 8px;
  color: var(--gold-glow, #FFD166);
  letter-spacing: 0.01em;
}

.legal-article p,
.legal-article li {
  font-size: clamp(0.95rem, 1.6vw, 1rem);
  color: rgba(255, 243, 224, 0.92);
  line-height: 1.65;
  margin: 0 0 12px;
}

.legal-article ul {
  padding-left: 22px;
  margin: 12px 0 16px;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-article li::marker {
  color: var(--gold-glow, #FFD166);
}

.legal-article strong {
  color: var(--sand-cream, #FFF3E0);
  font-weight: 600;
}

.legal-article a {
  color: var(--gold-glow, #FFD166);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.legal-article a:hover,
.legal-article a:focus-visible {
  color: #FFE4A0;
  text-decoration-thickness: 2px;
  outline: none;
}

.legal-article a:focus-visible {
  outline: 2px solid var(--gold-glow, #FFD166);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Highlighted business-contact card — first section "Titolare" gets a soft
   bordered block so the key contact info is scannable. */
.legal-card {
  margin: 14px 0 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 6px;
}

/* Footer */
.legal-footer {
  padding: clamp(28px, 5vh, 48px) clamp(20px, 4vw, 48px) clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255, 209, 102, 0.18);
  text-align: center;
  color: rgba(255, 243, 224, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.legal-footer__links a {
  color: var(--gold-glow, #FFD166);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.legal-footer__links a:hover,
.legal-footer__links a:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  outline: none;
}

.legal-footer__bottom {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
