/* Estilos específicos para páginas legales
   Fuente: telcoconsultores.sysoncrm.com/assets/css/legal.css
   Nota: corregido max-width: 4xl -> 56rem y mejoras menores de accesibilidad (focus-visible).
*/

.legal-content {
  padding: 5rem 0;
  background: #1e293b;
}

.legal-container {
  max-width: 56rem; /* antes: 4xl (Tailwind). 56rem ~= max-w-4xl */
  margin: 0 auto;
  color: #cbd5e1;
}

.legal-update-info {
  background: #475569;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-update-info p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0ea5e9;
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 1.5rem 0 1rem 0;
}

.legal-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.legal-section strong {
  color: white;
  font-weight: 600;
}

.legal-section a {
  color: #0ea5e9;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: #0284c7;
}

/* Enfoque accesible para teclado */
.legal-section a:focus-visible,
.cookie-table a:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 2px;
  text-decoration: none;
}

/* Cookie Tables */
.cookie-table {
  margin: 1.5rem 0;
  overflow-x: auto;
  background: #334155;
  border-radius: 0.5rem;
  padding: 1rem;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cookie-table th {
  background: #475569;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #64748b;
}

.cookie-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #475569;
  color: #cbd5e1;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 767px) {
  .legal-content {
    padding: 3rem 0;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section h3 {
    font-size: 1.125rem;
  }

  .cookie-table {
    font-size: 0.75rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.5rem;
  }
}

/* Print-friendly (sin fondos oscuros) */
@media print {
  .legal-content {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .legal-update-info {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }
  .legal-section,
  .cookie-table {
    color: #0f172a !important;
    background: #ffffff !important;
  }
  .legal-section a {
    color: #0f172a !important;
    text-decoration: none;
  }
}
