/* =========================================
   ESTILOS EXCLUSIVOS: AVISO DE PRIVACIDAD
   ========================================= */

/* 1. CONFIGURACIÓN BASE */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evita doble scroll */
    font-family: 'Acumin BdPro', sans-serif; /* Tu fuente corporativa */
}

/* 2. FONDO ANIMADO */
.legal-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2444 0%, #050c18 100%); /* Azul JBC Profundo */
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2; /* Las partículas van sobre el color pero bajo el contenido */
}

/* 3. CONTENEDOR PRINCIPAL (ENCIMA DE LAS PARTÍCULAS) */
.legal-wrapper {
    position: relative;
    z-index: 10; /* Asegura que el texto esté hasta arriba */
    height: 105vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 4. HERO CENTRADO */
.legal-hero {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    animation: fadeInDown 1s ease-out;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(to right, #ffffff, #aab7c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-subtitle {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 5. CAJA DE CRISTAL (CONTENIDO) */
.glass-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    height: 50vh; /* Altura reducida para escritorio */
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* Área con Scroll Interno */
.scrollable-content {
    padding: 50px;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-align: justify;
}

/* Scrollbar Personalizado */
.scrollable-content::-webkit-scrollbar { width: 6px; }
.scrollable-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
.scrollable-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.scrollable-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

/* Estilos de Texto */
.scrollable-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.scrollable-content h3 i { color: #5e81ac; }
.scrollable-content p { margin-bottom: 20px; font-weight: 300; }
.scrollable-content strong { color: #fff; font-weight: 600; }

/* 6. BOTÓN DE REGRESO (OPCIÓN C - AL FINAL) */
.btn-return-wrapper {
    margin-top: 30px; /* Le da un respiro entre la caja y el botón */
    text-align: center;
    /* Eliminamos el borde superior porque ya no está dentro de la caja de texto */
    animation: fadeInUp 1.2s ease-out; /* Animación para que entre justo después de la caja */
}

.btn-return {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-return:hover {
    background: #ffffff;
    color: #0f2444;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Animaciones simples */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
    .legal-title { font-size: 1.8rem; }
    .glass-container { height: 60vh; width: 95%; } /* Altura reducida para celulares */
    .scrollable-content { padding: 25px; }
}