/* ==========================================================================
   CSS - PAGES LÉGALES (Mentions, CGV, RGPD, Cookies) - DALLE WEB & APP
   ========================================================================== */

.legal-page { 
    background-color: var(--bg-dark); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-hero { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 45vh; /* Hauteur ajustée pour plus d'immersion */
    padding-top: 150px; 
}

/* Le conteneur "Document" de type Glassmorphism */
.legal-document-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5rem 6vw; /* Remplissage dynamique proportionnel à l'écran */
    width: 100%;
    max-width: 1100px; /* Largeur maximale pour un confort de lecture parfait */
    margin: 0 auto 6rem auto;
    backdrop-filter: blur(30px);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 40px rgba(0, 180, 216, 0.05);
    position: relative;
    z-index: 10;
}

/* Les sections à l'intérieur du document */
.legal-section {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

/* Bordure lumineuse façon Cyber à gauche de chaque section */
.legal-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 5px;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary-cyan), var(--primary-blue));
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.6);
}

/* Typographie spécifique */
.legal-h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.legal-p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.legal-p strong {
    color: var(--text-main);
    font-weight: 600;
}

.legal-p em {
    color: var(--secondary-cyan);
    font-style: normal;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
}

.legal-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--secondary-cyan);
    font-size: 0.9rem;
    top: 3px;
    text-shadow: 0 0 10px var(--secondary-cyan);
}

.legal-list strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE (Mode Smartphone & Tablette)
   ========================================== */
@media (max-width: 1024px) {
    .legal-document-glass {
        padding: 4rem 5vw;
        border-radius: 24px;
    }
    .legal-h2 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .legal-hero { min-height: 35vh; padding-top: 120px; }
    
    /* Sur mobile : Le panneau vient toucher les bords de l'écran (Full Edge-to-Edge) */
    .legal-document-glass {
        padding: 3rem 2rem;
        border-radius: 20px;
        margin-bottom: 4rem;
        border-left: none;
        border-right: none;
        width: 100vw;
        margin-left: -8vw; /* Compense le padding .edge-container du global.css */
        max-width: 100vw;
    }
    
    .legal-section {
        padding-left: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .legal-section::before {
        width: 3px;
        top: 5px;
    }
    
    .legal-h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .legal-p, .legal-list li {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .legal-list li {
        padding-left: 1.5rem;
    }
}