/* STILI COMUNI PER PAGINE LEGALI - CASSANDRA AI */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #f9fafb;       /* Sfondo neutro, pulitissimo e rilassante per testi lunghi */
  --text-dark: #111827;      /* Grigio quasi nero ad altissimo contrasto per massima leggibilità */
  --text-muted: #4b5563;     /* Grigio intermedio per sottotitoli e dettagli */
  --accent-blue: #2563eb;    /* Blu istituzionale per link e contatti */
  --border-color: #e5e7eb;   /* Grigio chiaro per linee divisorie pulite */
  --card-bg: #ffffff;        /* Bianco puro per staccare le sezioni se necessario */
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 800px; /* Colonna di lettura centrata ottimale, evita l'affaticamento degli occhi */
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
.legal-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0 32px 0;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

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

.title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ─── MAIN CONTENT ─── */
.legal-content {
  padding: 40px 0 80px 0;
}

.intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  margin-top: 24px;
  border-left: 4px solid var(--text-dark); /* Accent elegante a sinistra del titolo */
  padding-left: 12px;
}

.legal-section p {
  margin-bottom: 16px;
  text-align: justify;
}

.legal-section ul {
  list-style-type: none; /* Rimuoviamo i pallini standard per una struttura più moderna */
  margin-bottom: 20px;
  padding-left: 4px;
}

.legal-section li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Elenco puntato custom elegante con trattino */
.legal-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: bold;
}

.legal-section a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: #1d4ed8;
}

/* ─── FOOTER ─── */
.legal-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--card-bg);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

  *, *::before, *::after { 
      box-sizing: border-box; 
      margin: 0; 
      padding: 0; 
    }
    
    body {
      font-family: 'DM Sans', sans-serif;
      background-color: #f9fafb;
      color: #111827;
      padding: 60px 20px;
    }
    
    .settings-container {
      max-width: 600px;
      margin: 0 auto;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 40px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    
    h1 {
      font-family: 'Sora', sans-serif;
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
    }
    
    p.subtitle {
      color: #4b5563;
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 32px;
    }
    
    .form-section {
      border-top: 1px solid #e5e7eb;
      padding-top: 28px;
      margin-top: 28px;
    }
    
    .form-section h2 {
      font-family: 'Sora', sans-serif;
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 16px;
    }
    
    .field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 20px;
    }
    
    .field label {
      font-size: 0.9rem;
      font-weight: 500;
      color: #374151;
    }
    
    .field select, .field textarea {
      width: 100%;
      background: #ffffff;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      padding: 12px;
      font-size: 0.92rem;
      font-family: 'DM Sans', sans-serif;
      color: #111827;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    
    .field select:focus, .field textarea:focus {
      border-color: #111827;
      box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
    }
    
    .field textarea {
      resize: vertical;
      min-height: 100px;
    }
    
    .info-note {
      font-size: 0.85rem;
      color: #6b7280;
      line-height: 1.5;
      margin-bottom: 24px;
    }
    
    .btn-danger {
      width: 100%;
      background-color: #dc2626;
      color: #ffffff;
      border: none;
      border-radius: 6px;
      padding: 14px;
      font-size: 0.95rem;
      font-weight: 600;
      font-family: 'Sora', sans-serif;
      cursor: pointer;
      transition: background-color 0.15s ease, transform 0.1s ease;
    }
    
    .btn-danger:hover {
      background-color: #b91c1c;
    }
    
    .btn-danger:active {
      transform: scale(0.99);
    }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .title {
    font-size: 1.8rem;
  }
  
  .legal-header {
    padding: 32px 0 24px 0;
  }
  
  .legal-content {
    padding: 24px 0 60px 0;
  }
  
  body {
    font-size: 15px;
  }
}

/* ─── PRIVACY REQUEST PAGE ─── */
.privacy-request-page {
  background: #eaf5fb;
  color: #111827;
  min-height: 100vh;
  padding: 0;
}

.privacy-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  padding: 22px 36px;
}

.privacy-brand {
  color: #111827;
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.privacy-back-link {
  background: #e1f4fc;
  border-radius: 8px;
  color: #0369a1;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.privacy-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: 32px 24px 56px;
}

.privacy-hero,
.privacy-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.privacy-hero {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 32px;
}

.privacy-eyebrow {
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.privacy-hero h1 {
  color: #111827;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.privacy-hero p {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  max-width: 650px;
}

.privacy-badge {
  align-items: center;
  background: #e1f4fc;
  border-radius: 50%;
  color: #0369a1;
  display: flex;
  flex: 0 0 auto;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  height: 88px;
  justify-content: center;
  width: 88px;
}

.privacy-card {
  padding: 32px;
}

.privacy-card-header {
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 22px;
}

.privacy-card h2 {
  color: #111827;
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  margin: 0;
}

.privacy-status {
  background: #fff7ed;
  border-radius: 99px;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.privacy-request-page .field {
  gap: 10px;
  margin-bottom: 22px;
}

.privacy-request-page .field label {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 800;
}

.privacy-request-page .field select,
.privacy-request-page .field textarea {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 13px 14px;
}

.privacy-request-page .field select:focus,
.privacy-request-page .field textarea:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.privacy-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 24px;
  padding: 14px 16px;
}

.privacy-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #334155;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 18px;
  text-decoration: none;
}

.privacy-request-page .btn-danger {
  border-radius: 8px;
  flex: 0 0 auto;
  font-family: 'DM Sans', sans-serif;
  padding: 14px 18px;
  width: auto;
}

@media (max-width: 720px) {
  .privacy-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .privacy-shell {
    padding: 20px 14px 40px;
  }

  .privacy-hero,
  .privacy-card {
    padding: 22px;
  }

  .privacy-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-badge {
    height: 68px;
    width: 68px;
  }

  .privacy-card-header,
  .privacy-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-request-page .btn-danger,
  .btn-secondary {
    text-align: center;
    width: 100%;
  }
}
