/* Protezione overflow orizzontale */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Tipografia documento legale */
.legal-document {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.legal-document h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 1rem;
}

.legal-document h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-document h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-document p {
  margin-bottom: 1rem;
}

.legal-document ul,
.legal-document ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document strong {
  font-weight: 600;
  color: var(--primary);
}

.update-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  padding: 0.75rem;
  background: rgba(var(--primary-rgb, 0, 0, 0), 0.05);
  border-left: 3px solid var(--primary);
}

.section-number {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

.table-responsive {
  margin-bottom: 1.5rem;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color, rgba(0,0,0,0.1));
}

.table thead {
  background: var(--dark-card, #f8f9fa);
  border-bottom: 2px solid var(--border-color, rgba(0,0,0,0.1));
}

.table th {
  font-weight: 600;
  color: var(--text-primary);
}

.table td {
  color: white !important;
}

.table th {
  color: white !important;
}

/* Adattamento tema scuro */
@media (prefers-color-scheme: dark) {
  .update-date {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .table thead {
    background: rgba(255, 255, 255, 0.05);
  }
}