/* =========================================================
   PÁGINA LEGAL: EFECTO CRISTAL (GLASSMORPHISM)
   ========================================================= */

/* Hacemos que la página legal no tenga fondos propios */
main {
    background: transparent !important;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* La tarjeta principal de cristal */
.legal-card {
    max-width: 800px;
    width: 100%;

    /* Efecto cristal */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Bordes y sombras modernas */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;

    /* Espaciado interno */
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* =========================================
   TEXTOS Y TIPOGRAFÍAS
   ========================================= */

/* Textos generales: Blanco tiza con sombra suave */
.legal-card p,
.legal-card li,
.legal-card h1,
.legal-card h2,
.legal-card h3,
.legal-card h4 {
    color: #f1f5f9 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    /* Vital para que se lea sobre fondos claros */
    line-height: 1.6;
}

.legal-card h1 {
    margin-top: 0;
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 5px;
}

/* Títulos de sección */
.legal-card h3 {
    color: #93c5fd !important;
    /* Un azul clarito para diferenciar secciones */
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-card h4 {
    color: #cbd5e1 !important;
    /* Gris claro para subsecciones */
    margin-top: 20px;
}

/* Subtítulo de "Última actualización" */
.legal-subtitle {
    /* Azul más vivo */
    font-weight: bold;
    margin-bottom: 30px;
}

/* Enlaces dentro del texto */
.legal-card a {
    color: #93c5fd !important;

    text-decoration: none;
    font-weight: bold;
}

.legal-card a:hover {
    text-decoration: underline;
}

/* Ajuste de listas */
.legal-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-card li {
    margin-bottom: 10px;
}

/* =========================================
   BOTÓN VOLVER
   ========================================= */
.btn-volver {
    display: inline-block;
    background: #93c5fd !important;
    /* Azul translúcido */
    color: #000000 !important;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: bold;
    text-shadow: none;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none !important;
    color: #cbd5e1 !important;
}


.btn-volver:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 135, 179, 0.4);
}

/* =========================================================
   PÁGINA LEGAL: EFECTO CRISTAL (GLASSMORPHISM)
   ========================================================= */

/* Hacemos que la página legal sea un bloque normal para no romper el scroll */
main {
    background: transparent !important;
    display: block !important;
    /* Quitamos el flex problemático */
    padding: 20px;
    min-height: calc(100vh - 150px);
    /* Para que el footer se quede abajo */
}

/* La tarjeta principal de cristal */
.legal-card {
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    /* Esto la centra perfectamente sin cortar el contenido */

    /* Efecto cristal */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Bordes y sombras modernas */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;

    /* Espaciado interno */
    padding: 40px;
}
/* =========================================================
   SCROLLBAR MODERNO (GLASSMORPHISM)
   ========================================================= */

/* 1. Para Firefox (Usa propiedades más nuevas y simples) */
* {
    scrollbar-width: thin; /* Hace la barra más fina */
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(15, 23, 42, 0.2); /* Color del pulgar y color del fondo */
}

/* 2. Para navegadores WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 10px;  /* Ancho de la barra vertical */
    height: 10px; /* Alto de la barra horizontal (por si la hay en el móvil) */
}

/* El "carril" de la barra (fondo) */
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2) !important; /* Azul muy oscuro y casi transparente */
    border-radius: 10px;
}

/* El "pulgar" (la barrita que arrastras) */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important; /* Blanco cristalino */
    border-radius: 10px; /* Bordes totalmente redondeados */
    
    /* Este borde transparente hace de "margen" para que la barra no toque los bordes de la pantalla */
    border: 2px solid transparent; 
    background-clip: padding-box;
}

/* Cuando pasas el ratón por encima del scroll */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4) !important; /* Brilla más al tocarlo */
    border: 2px solid transparent; 
    background-clip: padding-box;
}