/**
 * Dulce Lujuria - Módulo de Cumplimiento Legal y UX Humano (Estándar 2026)
 * Incluye: Estilos para páginas legales, cajas TL;DR, modales de mayoría de edad (+18)
 * y banner de consentimiento de cookies con paridad visual estricta (Cero Dark Patterns).
 *
 * @package Dulce_Lujuria
 */

/* =========================================================================
   1. Componentes de Páginas Legales (UX Humano y Escaneabilidad)
   ========================================================================= */

.dl-legal-tldr {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dl-legal-tldr h3 {
  font-family: var(--dl-font-display);
  font-size: 1.25rem;
  color: var(--dl-text);
  margin: 0 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dl-legal-tldr h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dl-primary);
  box-shadow: 0 0 10px var(--dl-primary-glow);
}

.dl-legal-tldr ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--dl-text-muted);
  line-height: 1.6;
}

.dl-legal-tldr li strong {
  color: var(--dl-text);
}

/* Cajas de Alerta y Notificación Legal */
.dl-legal-callout {
  border-radius: 0.85rem;
  padding: 1.35rem 1.6rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.dl-legal-callout-warning {
  background: rgba(225, 29, 72, 0.08);
  border-left: 4px solid var(--dl-accent);
  color: var(--dl-text);
}

.dl-legal-callout-warning strong {
  color: #ff859d;
}

.dl-legal-callout-trust {
  background: rgba(225, 29, 116, 0.08);
  border-left: 4px solid var(--dl-primary);
  color: var(--dl-text);
}

.dl-legal-callout-trust strong {
  color: #ff89be;
}

/* =========================================================================
   2. Modal de Verificación de Mayoría de Edad (+18 Age Gate)
   ========================================================================= */

.dl-age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 8, 11, 0.94);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dl-age-gate-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.dl-age-gate-box {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: 1.5rem;
  max-width: 480px;
  width: 100%;
  padding: 2.75rem 2.25rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px var(--dl-primary-glow);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-age-gate-modal.is-active .dl-age-gate-box {
  transform: translateY(0);
}

.dl-age-gate-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: rgba(225, 29, 116, 0.12);
  border: 1px solid var(--dl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dl-primary);
  box-shadow: 0 0 25px var(--dl-primary-glow);
}

.dl-age-gate-title {
  font-family: var(--dl-font-display);
  font-size: 1.85rem;
  color: #fff;
  margin: 0 0 0.85rem 0;
  line-height: 1.2;
}

.dl-age-gate-desc {
  font-size: 0.95rem;
  color: var(--dl-text-muted);
  line-height: 1.65;
  margin: 0 0 2rem 0;
}

.dl-age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .dl-age-gate-actions {
    flex-direction: row;
    gap: 0.85rem;
  }
  .dl-age-gate-actions > * {
    flex: 1;
  }
}

.dl-age-gate-subtext {
  font-size: 0.75rem;
  color: var(--dl-text-muted);
  margin-top: 1.25rem;
  display: block;
}

/* =========================================================================
   3. Banner de Consentimiento de Cookies (CMP 2026 - Paridad Visual)
   ========================================================================= */

.dl-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9990;
  max-width: 440px;
  width: calc(100% - 3rem);
  background: rgba(26, 17, 24, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--dl-border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--dl-primary-glow);
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.dl-cookie-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.dl-cookie-icon {
  color: var(--dl-primary);
  flex-shrink: 0;
}

.dl-cookie-title {
  font-family: var(--dl-font-display);
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}

.dl-cookie-desc {
  font-size: 0.85rem;
  color: var(--dl-text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.dl-cookie-desc a {
  color: var(--dl-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.dl-cookie-desc a:hover {
  color: #fff;
}

.dl-cookie-actions {
  display: flex;
  gap: 0.65rem;
}

.dl-cookie-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  min-height: 44px; /* WCAG 2.2 Target Size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-cookie-btn-accept {
  background: var(--dl-primary);
  color: #fff;
  border-color: var(--dl-primary);
  box-shadow: 0 0 20px var(--dl-primary-glow);
}

.dl-cookie-btn-accept:hover {
  background: var(--dl-primary-hover);
  transform: translateY(-1px);
}

.dl-cookie-btn-reject {
  background: rgba(255, 255, 255, 0.05);
  color: var(--dl-text);
  border-color: var(--dl-border);
}

.dl-cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dl-text-muted);
}

/* Enlace de Re-Apertura de Cookies en Footer */
.dl-cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--dl-text-muted);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.dl-cookie-settings-link:hover {
  color: var(--dl-primary);
}

/* Botón de Escape Rápido (Discreción Física) */
.dl-quick-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dl-border-subtle);
  color: var(--dl-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}

.dl-quick-exit-btn:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--dl-accent);
  color: #ff859d;
}

/* =========================================================================
   4. Layout Editorial y Tabla de Contenidos (Páginas Legales 2026)
   ========================================================================= */

.dl-legal-container {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  min-height: 70vh;
}

.dl-legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--dl-text-muted);
  margin-bottom: 2rem;
}

.dl-legal-breadcrumbs a {
  color: var(--dl-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.dl-legal-breadcrumbs a:hover {
  color: var(--dl-primary);
}

.dl-legal-header {
  margin-bottom: 3rem;
  text-align: left;
}

.dl-legal-header h1 {
  font-family: var(--dl-font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #fff;
  margin: 0 0 1rem 0;
  line-height: 1.15;
}

.dl-legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--dl-text-muted);
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dl-legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .dl-legal-grid {
    grid-template-columns: 280px 1fr;
  }
}

/* Sidebar e Índice Sticky */
.dl-legal-sidebar {
  position: sticky;
  top: 6rem;
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dl-legal-sidebar-title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dl-primary);
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.dl-legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.dl-legal-toc-list a {
  color: var(--dl-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  line-height: 1.4;
}

.dl-legal-toc-list a:hover {
  color: #fff;
  background: rgba(225, 29, 116, 0.12);
  transform: translateX(4px);
}

/* Cuerpo Editorial Legal */
.dl-legal-body {
  color: var(--dl-text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.dl-legal-body h2 {
  font-family: var(--dl-font-display);
  font-size: 1.75rem;
  color: #fff;
  margin: 2.75rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 6.5rem;
}

.dl-legal-body h3 {
  font-family: var(--dl-font-display);
  font-size: 1.35rem;
  color: var(--dl-text);
  margin: 2rem 0 0.85rem 0;
  scroll-margin-top: 6.5rem;
}

.dl-legal-body p {
  margin-bottom: 1.35rem;
  color: #e2d7df;
}

.dl-legal-body ul,
.dl-legal-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--dl-text-muted);
  line-height: 1.8;
}

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

.dl-legal-body strong {
  color: #fff;
}

.dl-legal-content-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Tarjeta de Contacto Legal */
.dl-legal-contact-card {
  background: linear-gradient(135deg, rgba(77, 20, 45, 0.45) 0%, rgba(20, 15, 19, 0.85) 100%);
  border: 1px solid var(--dl-border);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
}

.dl-legal-contact-card h4 {
  font-family: var(--dl-font-display);
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.dl-legal-contact-card p {
  color: var(--dl-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.dl-legal-contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.dl-legal-contact-actions .dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
