/* =========================================================
   ESTILOS ESPECÍFICOS PARA PÁGINAS LEGALES
   Este archivo complementa styles.css y se usa solo en:
   - privacidad.html
   - terminos.html
========================================================= */

/* Botón del header en páginas legales */
.legal-header-btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
}

/* Hero principal de la página legal */
.legal-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  background: radial-gradient(
      ellipse 70% 50% at 50% 0%,
      rgba(236, 122, 8, 0.10) 0%,
      transparent 70%
    ),
    var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(236,122,8,0.1);
  border: 1px solid rgba(236,122,8,0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.legal-hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.legal-hero__title span {
  color: var(--primary);
}

.legal-hero__subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.75;
}

/* Cuerpo general */
.legal-body {
  background: var(--dark);
  padding: 4rem 0 7rem;
  min-height: 60vh;
}

/* Contenedor de contenido legal */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content--single {
  max-width: 820px;
}

/* Fecha de actualización */
.legal-update {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
}

/* Secciones del documento */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section__num {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.legal-section__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.legal-section p {
  color: rgba(255,255,255,0.64);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--white);
  font-weight: 600;
}

/* Listas legales */
.legal-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-list li::before {
  content: '▸';
  color: var(--primary);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Bloque destacado */
.legal-highlight {
  background: rgba(236,122,8,0.06);
  border: 1px solid rgba(236,122,8,0.2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-highlight p {
  color: rgba(255,255,255,0.76) !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
}

.legal-highlight strong {
  color: var(--primary) !important;
}

/* Tabla legal */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.legal-table th {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-table td {
  padding: 0.85rem 1rem;
  color: rgba(255,255,255,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.6;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Links dentro del contenido legal */
.legal-link {
  color: var(--primary);
  text-decoration: underline;
}

/* Links del footer legal */
.legal-footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.legal-footer-link {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.legal-footer-link--muted {
  color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
  }

  .legal-body {
    padding: 3rem 0 5rem;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }

  .legal-footer-links {
    gap: 1rem;
  }
}