﻿/* Styles pour les pages légales - Version améliorée */

:root {
    --legal-gradient: linear-gradient(135deg, #10b981, #06b6d4);
    --legal-primary: #10b981;
    --legal-secondary: #06b6d4;
    --legal-text: #e0e0e0;
    --legal-text-light: #b0b0b0;
    --legal-bg: #121212;
    --legal-bg-card: #1e1e1e;
    --legal-border: #333;
    --legal-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --legal-radius: 16px;
    --legal-spacing: 2rem;
}

[data-theme="light"] {
    --legal-text: #333;
    --legal-text-light: #666;
    --legal-bg: #121212;
    --legal-bg-card: #222;
    --legal-border: #333;
}

.legal-page {
    max-width: 1000px;
    margin: 3rem auto 5rem;
    padding: 3.5rem;
    background-color: var(--legal-bg-card);
    border-radius: var(--legal-radius);
    box-shadow: var(--legal-shadow);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--legal-text);
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--legal-gradient);
}

/* En-tête de la page */
.legal-page .page-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-page .page-header h1 {
    font-size: 2.8rem;
    background: var(--legal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.legal-page .page-header .subtitle {
    font-size: 1.3rem;
    color: var(--legal-text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.5;
}

.legal-page .page-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--legal-gradient);
    margin: 2rem auto 0;
    border-radius: 2px;
}

/* Sections */
.legal-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--legal-border);
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }
.legal-section:nth-child(6) { animation-delay: 0.6s; }
.legal-section:nth-child(7) { animation-delay: 0.7s; }
.legal-section:nth-child(8) { animation-delay: 0.8s; }
.legal-section:nth-child(9) { animation-delay: 0.9s; }

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--legal-secondary);
    font-size: 1.75rem;
    margin-bottom: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--legal-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.legal-section:hover h2::after {
    width: 100px;
}

.legal-section h2 i {
    margin-right: 15px;
    color: var(--legal-primary);
    font-size: 1.5rem;
}

.legal-section p {
    color: var(--legal-text);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 95%;
}

.legal-section a {
    color: var(--legal-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.legal-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--legal-gradient);
    transition: width 0.3s ease;
}

.legal-section a:hover {
    color: var(--legal-secondary);
}

.legal-section a:hover::after {
    width: 100%;
}

/* Listes */
.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 2rem;
}

.legal-section ul li {
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
    background-color: rgba(6, 182, 212, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--legal-primary);
}

.legal-section ul li:hover {
    transform: translateX(5px);
    background-color: rgba(6, 182, 212, 0.1);
}

/* Droits RGPD - Style spécial pour les listes numérotées */
.droits-rgpd {
    counter-reset: rgpd-counter;
}

.droits-rgpd li {
    counter-increment: rgpd-counter;
    margin-bottom: 1.2rem !important;
    background-color: rgba(6, 182, 212, 0.05);
    padding: 1rem 1rem 1rem 3rem !important;
    border-radius: 8px;
    border-left: 3px solid var(--legal-primary);
    position: relative;
    transition: all 0.3s ease;
}

.droits-rgpd li:hover {
    background-color: rgba(6, 182, 212, 0.1);
    transform: translateX(5px);
}

.droits-rgpd li::before {
    content: counter(rgpd-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 24px;
    height: 24px;
    background: var(--legal-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Définitions */
.definition-box {
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--legal-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.definition-box h3 {
    color: var(--legal-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Méta-informations */
.meta-info {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--legal-border);
    color: var(--legal-text-light);
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

/* Bouton de retour */
.back-link {
    text-align: center;
    margin-top: 3.5rem;
    animation: fadeIn 1s ease-out 1.4s forwards;
    opacity: 0;
}

.back-link .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    background: var(--legal-gradient);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.back-link .btn i {
    margin-right: 10px;
    font-size: 1rem;
}

.back-link .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

/* Styles réactifs */
@media (max-width: 992px) {
    .legal-page {
        margin: 2rem auto 4rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 2.5rem 2rem;
        margin: 1.5rem auto 3rem;
    }
    
    .legal-page .page-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-page .page-header .subtitle {
        font-size: 1.1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .legal-page {
        padding: 2rem 1.5rem;
        margin: 1rem 1rem 2rem;
        border-radius: 8px;
    }
    
    .legal-page .page-header {
        margin-bottom: 2.5rem;
    }
    
    .legal-page .page-header h1 {
        font-size: 1.9rem;
    }
    
    .legal-section {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.3rem;
    }
    
    .legal-section p, 
    .legal-section li {
        font-size: 0.95rem;
    }
    
    .back-link .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
} 