/* =========================================
   LEGALES - PÁGINAS LEGALES (RUBIQ STUDIO)
   ========================================= */

/* =========================================
   HERO - BANNER PRINCIPAL
   ========================================= */

.legal-hero {
  padding: 180px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(45, 212, 191, 0.12) 0%, rgba(10, 25, 47, 0) 70%);
}

/* Destello decorativo de fondo con blur */
.legal-hero::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 280px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(2, 132, 199, 0.15) 50%, transparent 80%);
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.legal-hero-contenedor {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Título principal con degradado metálico */
.legal-hero-titulo {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  color: var(--paleta-de-colores-neutral-bg);
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, #94A3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Línea decorativa turquesa bajo el título */
.legal-hero-titulo::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--paleta-de-colores-accent) 0%, #0284C7 100%);
  border-radius: 4px;
  margin: var(--spacing-md) auto 0;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.5);
}

/* =========================================
   CONTENEDOR PRINCIPAL GLASSMORPHIC ÚNICO
   ========================================= */

.legal-contenido {
  padding: 48px 44px;
  max-width: 920px;
  margin: 0 auto 96px;
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Destello sutil en el borde superior del contenedor principal */
.legal-contenido::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
}

/* =========================================
   SECCIONES DENTRO DEL CONTENEDOR ÚNICO
   ========================================= */

.legal-seccion {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 40px;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
}

.legal-seccion:last-child {
  margin-bottom: 0;
}

/* Separador elegante entre secciones internas */
.legal-seccion:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin-top: 40px;
}

/* =========================================
   TÍTULOS DE SECCIÓN (H2)
   ========================================= */

.legal-seccion-titulo {
  font-family: 'Anton', sans-serif;
  font-size: var(--text-sizes-h2);
  color: #F8FAFC;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
  position: relative;
  padding-left: 18px;
  display: flex;
  align-items: center;
}

/* Barra lateral neón en los títulos */
.legal-seccion-titulo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 5px;
  height: calc(100% - 4px);
  background: linear-gradient(180deg, var(--paleta-de-colores-accent) 0%, #0284C7 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.4);
}

/* =========================================
   SUBTÍTULOS (H3)
   ========================================= */

.legal-seccion-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #F1F5F9;
  text-transform: none;
  line-height: 1.3;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.3px;
  position: relative;
  display: inline-block;
}

.legal-seccion-subtitulo::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--paleta-de-colores-accent);
  border-radius: 2px;
  margin-top: 6px;
  box-shadow: 0 0 6px rgba(45, 212, 191, 0.4);
}

/* =========================================
   PÁRRAFOS Y TEXTO
   ========================================= */

.legal-seccion p,
.legal-seccion-texto {
  font-size: 15px;
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: var(--spacing-sm);
}

.legal-seccion p:last-child {
  margin-bottom: 0;
}

.legal-seccion strong,
.legal-seccion-texto strong {
  color: #F8FAFC;
  font-weight: 600;
}

/* =========================================
   LISTAS - TARJETAS INTERACTIVAS
   ========================================= */

.legal-seccion-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  padding-left: 0;
}

/* Cada ítem como tarjeta interactiva */
.legal-seccion-lista li {
  font-size: 14px;
  line-height: 1.65;
  color: #CBD5E1;
  padding: 12px 16px 12px 42px;
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-seccion-lista li:hover {
  background: rgba(45, 212, 191, 0.06);
  border-color: rgba(45, 212, 191, 0.25);
  transform: translateX(6px);
  color: #F8FAFC;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Icono de check interactivo */
.legal-seccion-lista li::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f00c";
  color: var(--paleta-de-colores-accent);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
  transition: background 0.3s ease, color 0.3s ease;
}

.legal-seccion-lista li:hover::before {
  background: var(--paleta-de-colores-accent);
  color: #0A192F;
}

/* =========================================
   GRID DE DERECHOS (POLÍTICA DE PRIVACIDAD)
   ========================================= */

.legal-derechos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: var(--spacing-lg);
}

/* Tarjeta individual de derecho */
.legal-derecho-item {
  font-size: 14px;
  line-height: 1.5;
  color: #E2E8F0;
  padding: 16px 18px 16px 46px;
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.legal-derecho-item:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(45, 212, 191, 0.15);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  color: #F8FAFC;
}

/* Badge con icono de protección */
.legal-derecho-item::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f058";
  color: var(--paleta-de-colores-accent);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

/* =========================================
   ENLACES DENTRO DEL CONTENIDO
   ========================================= */

.legal-contenido a {
  color: var(--paleta-de-colores-accent);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.3s ease, background 0.3s ease;
  border-bottom: 1px dotted rgba(45, 212, 191, 0.4);
}

.legal-contenido a:hover {
  background: rgba(45, 212, 191, 0.12);
  color: #5EEAD4;
  border-bottom-color: #5EEAD4;
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.3);
}

/* Enlaces externos (target _blank) */
.legal-contenido a[target="_blank"]::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f35d";
  font-size: 0.75rem;
  margin-right: 5px;
  vertical-align: middle;
}

/* =========================================
   RESPONSIVE - TABLET (768px)
   ========================================= */

@media (max-width: 768px) {

  .legal-hero {
    padding: 150px 24px 60px;
  }

  .legal-hero-titulo::after {
    width: 60px;
    height: 3px;
  }

  .legal-contenido {
    padding: 32px 24px;
    border-radius: 20px;
    margin-bottom: 64px;
  }

  .legal-seccion {
    margin-bottom: 32px;
  }

  .legal-seccion:not(:last-child)::after {
    margin-top: 32px;
  }

  .legal-seccion-titulo {
    font-size: calc(var(--text-sizes-h2) * 0.9);
    padding-left: 14px;
  }

  .legal-derechos-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   RESPONSIVE - MÓVIL (480px)
   ========================================= */

@media (max-width: 480px) {

  .legal-hero {
    padding: 130px 16px 40px;
  }

  .legal-contenido {
    padding: 24px 18px;
    border-radius: 16px;
    margin-bottom: 48px;
  }

  .legal-seccion {
    margin-bottom: 24px;
  }

  .legal-seccion:not(:last-child)::after {
    margin-top: 24px;
  }

  .legal-seccion p,
  .legal-seccion-texto {
    font-size: 14px;
    line-height: 1.7;
  }

  .legal-seccion-lista li {
    font-size: 13px;
    padding: 10px 14px 10px 38px;
  }

  .legal-derecho-item {
    font-size: 13px;
    padding: 14px 16px 14px 40px;
  }
}