/* ============================================
   PAGES LÉGALES - Design 2025 Premium
   ============================================ */

.legal-page {
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8fafc 100%);
}

/* Shimmer gradient top */
.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #8b5cf6 10%,
        #6366f1 30%,
        #8b5cf6 50%,
        #6366f1 70%,
        #8b5cf6 90%,
        transparent 100%
    );
    background-size: 300% auto;
    background-position: 0% center;
    animation: shimmerGradient 10s ease-in-out infinite alternate;
    filter: blur(3px) brightness(1.25);
    mix-blend-mode: screen;
    opacity: 0.7;
    z-index: 5;
    pointer-events: none;
}

@keyframes shimmerGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.legal-container {
    max-width: min(900px, 90vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* === HEADER === */
.legal-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
    max-width: 680px;
    margin-inline: auto;
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 600;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: 1rem;
}

/* === SECTIONS === */
.legal-section {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-section:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.legal-section:hover::before {
    opacity: 1;
}

.legal-section h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.legal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.975rem;
}

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

/* === LISTES === */
.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.legal-section li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* === LIENS === */
.legal-section a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.legal-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.legal-section a:hover {
    color: #8b5cf6;
}

.legal-section a:hover::after {
    width: 100%;
}

/* === STRONG === */
.legal-section strong {
    color: #0f172a;
    font-weight: 600;
}

/* === BOX INFO === */
.legal-info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 4px solid #6366f1;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.legal-info-box p {
    margin: 0;
    color: #334155;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section li {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .legal-page::before {
        animation: none;
    }
    
    .legal-section:hover {
        transform: none;
    }
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
    .legal-page {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .legal-section {
        background: #1e293b;
        border-color: #334155;
    }
    
    .legal-header h1 {
        background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .legal-section h2 {
        color: #f8fafc;
        border-color: #334155;
    }
    
    .legal-section p,
    .legal-section li {
        color: #cbd5e1;
    }
    
    .legal-section strong {
        color: #f8fafc;
    }
}