/* =============================================================================
   LEGAL PAGES STYLES — Privacy, Cookie, Credits
   =============================================================================
   Stili minimali, sobri, focalizzati sulla leggibilità.
   Coerenti con il design system del sito principale.
   ============================================================================= */

/* Reset e base */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A1A;
  background: #F5F5F3;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a {
  color: #1A1A1A;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 26, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover {
  color: #E8610A;
  text-decoration-color: #E8610A;
}

/* Container condiviso */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ----------------------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------------------- */
.legal-header {
  border-bottom: 1px solid #D4D4D0;
  padding: 20px 0;
  background: #F5F5F3;
}
.legal-header .legal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
}
.legal-header__logo img {
  height: 32px;
  width: auto;
}
.legal-header__nav {
  display: flex;
  gap: 32px;
}
.legal-header__link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-header__link:hover {
  color: #E8610A;
}


/* ----------------------------------------------------------------------------
   PAGE HEAD
   ---------------------------------------------------------------------------- */
.legal-main {
  padding: 80px 0 120px;
  min-height: calc(100vh - 200px);
}

.legal-page-head {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid #D4D4D0;
}
.legal-page-head__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6B68;
  margin: 0 0 16px;
}
.legal-page-head__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #1A1A1A;
  margin: 0 0 24px;
}
.legal-page-head__sub {
  font-size: 18px;
  line-height: 1.5;
  color: #6B6B68;
  margin: 0 0 16px;
  max-width: 60ch;
}
.legal-page-head__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #6B6B68;
  margin: 0;
}
.legal-page-head__date strong {
  color: #1A1A1A;
  font-weight: 500;
}


/* ----------------------------------------------------------------------------
   CONTENUTO ARTICOLO
   ---------------------------------------------------------------------------- */
.legal-content section {
  margin-bottom: 48px;
}
.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  margin: 0 0 20px;
}

.legal-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 32px 0 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #1A1A1A;
  margin: 0 0 16px;
}
.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}
.legal-content ul li {
  font-size: 15px;
  line-height: 1.7;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.legal-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: #EDEDEA;
  padding: 2px 6px;
  border-radius: 2px;
  color: #1A1A1A;
}


/* ----------------------------------------------------------------------------
   TABELLA COOKIE
   ---------------------------------------------------------------------------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 13px;
  line-height: 1.5;
}

.legal-table thead {
  border-bottom: 2px solid #1A1A1A;
}

.legal-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px 12px 0;
  color: #1A1A1A;
}

.legal-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid #EDEDEA;
  vertical-align: top;
  color: #1A1A1A;
}

.legal-table td:last-child,
.legal-table th:last-child {
  padding-right: 0;
}

.legal-table code {
  font-size: 12px;
  white-space: nowrap;
}


/* ----------------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------------- */
.legal-footer {
  border-top: 1px solid #D4D4D0;
  padding: 32px 0;
  background: #F5F5F3;
}
.legal-footer .legal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1280px;
}
.legal-footer p {
  font-size: 13px;
  color: #6B6B68;
  margin: 0;
}
.legal-footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-footer__nav a {
  font-size: 13px;
  color: #6B6B68;
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-footer__nav a:hover {
  color: #1A1A1A;
}


/* ----------------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .legal-header__nav {
    gap: 20px;
  }
  .legal-header__link {
    font-size: 13px;
  }
  .legal-main {
    padding: 48px 0 80px;
  }
  .legal-page-head {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }
  .legal-page-head__title {
    font-size: clamp(32px, 9vw, 40px);
  }
  .legal-page-head__sub {
    font-size: 16px;
  }
  .legal-content section {
    margin-bottom: 32px;
  }
  .legal-content h2 {
    font-size: 20px;
  }
  .legal-content p,
  .legal-content ul li {
    font-size: 14px;
  }
  .legal-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }
  .legal-footer .legal-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
