/* ========== LEGAL PAGES ULTRA MODERNES ========== */
.legal-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, #0a0a0a 100%);
    margin-top: 76px;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    animation: float 18s ease-in-out infinite;
}

.legal-hero .main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out forwards;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
}

.legal-content {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ========== LEGAL CARD MODERNE ========== */
.legal-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 28px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    border-radius: 28px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.legal-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 26px;
    z-index: -1;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

.legal-card:hover::before {
    opacity: 1;
}

/* ========== CARD SHINE EFFECT ========== */
.legal-card .card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold) 0%, #FFA500 50%, var(--gold) 100%);
    z-index: 2;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.5);
}

/* ========== TYPOGRAPHY MODERNE ========== */
.legal-card h2 {
    color: var(--gold);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.legal-card h2:hover {
    transform: translateX(5px);
}

.legal-card p,
.legal-card ul {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
}

.legal-card p {
    text-align: justify;
}

.legal-card ul {
    padding-left: 0;
    list-style: none;
}

.legal-card ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: 8px;
}

.legal-card ul li:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.legal-card ul li::before {
    content: '▸';
    color: var(--gold);
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-card strong {
    color: var(--gold);
    font-weight: 700;
    position: relative;
    padding: 0 2px;
}

/* ========== LAST UPDATE BADGE ========== */
.last-update {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-top: 4rem;
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.last-update:hover {
    background: rgba(255, 215, 0, 0.08);
    transform: translateX(-5px);
}

/* ========== SCROLLBAR STYLE ========== */
.legal-card::-webkit-scrollbar {
    width: 8px;
}

.legal-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.legal-card::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.legal-card::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .legal-content {
        padding: 5rem 0;
    }

    .legal-card {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 40vh;
    }

    .legal-hero .main-title {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 4rem 0;
    }

    .legal-card {
        padding: 2rem;
    }

    .legal-card h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .legal-card p,
    .legal-card ul {
        font-size: 1rem;
        text-align: left;
    }

    .last-update {
        text-align: center;
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .legal-hero .main-title {
        font-size: 2rem;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .legal-card h2 {
        font-size: 1.3rem;
        padding-left: 1rem;
    }

    .legal-card h2::before {
        width: 4px;
    }

    .legal-card ul li {
        padding-left: 2rem;
    }

    .legal-card ul li::before {
        left: 0.5rem;
    }
}

/* ========== ANIMATION POUR APPARITION PROGRESSIVE ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}
