/* ============================================================
   orusmedia.es — legales.css
   Estilos para páginas legales (privacidad, cookies)
   ============================================================ */

/* Header legal */
.header--legal {
  height: auto;
  min-height: var(--header-height);
  position: relative;
}

.header--legal .header__container {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.header__back {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.header__back:hover {
  color: var(--color-accent);
}

.header__name--legal {
  font-size: var(--text-2xl);
}

/* Contenido legal */
.legal {
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg);
  min-height: 60vh;
}

.legal__container {
  max-width: 720px;
  margin: 0 auto;
}

.legal__section {
  margin-bottom: var(--space-8);
}

.legal__section:last-child {
  margin-bottom: 0;
}

.legal__heading {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
}

.legal__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.legal__text:last-child {
  margin-bottom: 0;
}

.legal__list {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal__list-item {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  position: relative;
  padding-left: var(--space-4);
}

.legal__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--weight-bold);
}

.legal__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__link:hover {
  color: var(--color-accent-hover);
}

/* Protección anti-spam */
.email-protected {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Ocultar email hasta que JS lo procese */
.email-protected[data-e]::before {
  content: '[email protected]';
  font-size: 0;
}

/* Footer legal */
.footer--legal {
  padding: var(--space-8) var(--space-6);
}

.footer--legal .footer__container {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer--legal .footer__nav {
  justify-content: center;
}

/* Responsive legal */
@media (min-width: 768px) {
  .header--legal .header__container {
    flex-direction: row;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .header__name--legal {
    font-size: var(--text-2xl);
  }

  .legal {
    padding: var(--space-12) var(--space-8);
  }

  .legal__heading {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  .legal {
    padding: var(--space-16) var(--space-8);
  }
}
