/* Styles spécifiques aux pages légales */

/* Contenu principal des pages légales */
.legal-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.legal-container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xl);
    margin: 0 auto;
}

.legal-container h1 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--neutral-02);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--neutral-01);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: var(--spacing-xl);
    font-size: 0.9rem;
}

.legal-text {
    color: var(--neutral-01);
    line-height: 1.7;
}

.legal-text h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(252, 222, 96, 0.3);
    padding-bottom: var(--spacing-xs);
}

.legal-text h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--tertiary-01);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-text p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.legal-text ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.legal-text li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.legal-text a {
    color: var(--tertiary-01);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-text a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Logo cliquable */
.logo-container a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-container a:hover {
    transform: scale(1.05);
}

/* Responsive pour les pages légales */
@media (max-width: 768px) {
    .legal-content {
        padding: var(--spacing-lg) 0;
    }
    
    .legal-container {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .legal-container h1 {
        font-size: 1.8rem;
    }
    
    .legal-text h2 {
        font-size: 1.3rem;
    }
    
    .legal-text h3 {
        font-size: 1.1rem;
    }
    
    .legal-text p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
    }
    
    .legal-container h1 {
        font-size: 1.5rem;
    }
    
    .legal-text h2 {
        font-size: 1.2rem;
    }
    
    .legal-text h3 {
        font-size: 1rem;
    }
    
    .legal-text ul {
        padding-left: var(--spacing-md);
    }
}

/* Animation d'apparition pour le contenu */
.legal-text > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.legal-text > *:nth-child(1) { animation-delay: 0.1s; }
.legal-text > *:nth-child(2) { animation-delay: 0.2s; }
.legal-text > *:nth-child(3) { animation-delay: 0.3s; }
.legal-text > *:nth-child(4) { animation-delay: 0.4s; }
.legal-text > *:nth-child(5) { animation-delay: 0.5s; }
.legal-text > *:nth-child(6) { animation-delay: 0.6s; }
.legal-text > *:nth-child(7) { animation-delay: 0.7s; }
.legal-text > *:nth-child(8) { animation-delay: 0.8s; }
.legal-text > *:nth-child(9) { animation-delay: 0.9s; }
.legal-text > *:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de scroll pour les titres */
.legal-text h2 {
    position: relative;
    overflow: hidden;
}

.legal-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: slideIn 1s ease-out 0.5s forwards;
}

@keyframes slideIn {
    to {
        left: 0;
    }
}

/* Amélioration de la lisibilité */
.legal-text strong {
    color: var(--accent);
    font-weight: 600;
}

.legal-text em {
    color: var(--neutral-01);
    opacity: 0.9;
}

/* Style pour les listes imbriquées */
.legal-text ul ul {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.legal-text ul ul li {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Effet de focus pour les liens */
.legal-text a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

