/* 1. VARIABLES (S'adaptent au mode de l'appareil) */
:root {
    --legal-title: #1a1a1a;
    --legal-subtitle: #888888;
    --legal-text: #444444;
    --legal-border: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --legal-title: #f5f5f5;
        --legal-subtitle: #aaaaaa;
        --legal-text: #cccccc;
        --legal-border: #f5f5f5;
    }
}

/* 2. STRUCTURE PRINCIPALE */
.imp-legal-wrapper {
    max-width: 900px !important;
    margin: 160px auto 80px auto !important;
    padding: 0 30px !important;
    font-family: sans-serif;
    box-sizing: border-box !important;
}

/* Titre principal */
.imp-legal-main-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin: 0 0 10px 0;
    color: var(--legal-title) !important;
    line-height: 1;
}

/* Petit sous-titre */
.imp-legal-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--legal-subtitle);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Liste des sections */
.imp-legal-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Une section (sans les numéros, on passe en affichage simple) */
.imp-legal-section {
    padding-top: 30px;
    border-top: 3px solid var(--legal-border);
    position: relative;
}

/* Titre de la section */
.imp-legal-heading {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: var(--legal-title);
    letter-spacing: -1px;
}

/* Texte de loi */
.imp-legal-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--legal-text);
    margin: 0;
}

.imp-legal-text p { margin-bottom: 10px; }
.imp-legal-text p:last-child { margin-bottom: 0; }
.imp-legal-text strong { color: var(--legal-title); font-weight: 800; }

/* Liens */
.imp-legal-text a { 
    color: var(--legal-title); 
    text-decoration: underline; 
    text-decoration-thickness: 2px; 
    text-underline-offset: 4px; 
    font-weight: 700; 
    transition: opacity 0.3s; 
}
.imp-legal-text a:hover { opacity: 0.6; }

/* Responsive */
@media (max-width: 600px) {
    .imp-legal-section {
        padding-top: 20px;
    }
}
