/* ==========================================================
   ZANDOS — DOCUMENT LÉGAL NUMÉROTÉ
   Version Premium éditoriale et responsive

   Utilisation recommandée :

   - Conditions générales
   - Conditions d’utilisation
   - Politique de confidentialité
   - Règlement de la plateforme
   - Politique de retour et remboursement

   Chaque élément .legal-box reçoit automatiquement
   un numéro : 01, 02, 03, etc.

   Aucune classe existante n’est modifiée.
========================================================== */


/* ==========================================================
   1. VARIABLES
========================================================== */

:root {
    --legal-black: #ffffff;
    --legal-text: #c4c4c4;
    --legal-gray: #a8a8a8;
    --legal-light: #8d8d8d;
    --legal-number: #8d8d8d;

    --legal-border: #383838;
    --legal-soft: #242424;
    --legal-white: #191919;

    --legal-orange: #f76902;

    --legal-content-width: 820px;
}


/* ==========================================================
   2. BASE
========================================================== */

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    color: var(--legal-black);
    background: #191919;

    font-family: "Inter", sans-serif;
    font-size: 16px;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* ==========================================================
   3. CONTENU PRINCIPAL

   counter-reset démarre la numérotation automatique
   des différentes sections du document.
========================================================== */

.legal-page {
    width: 100%;
    max-width: var(--legal-content-width);

    margin: 110px auto 140px;
    padding: 0 30px;

    counter-reset: legal-section;
}


/* ==========================================================
   4. EN-TÊTE
========================================================== */

.legal-header {
    margin-bottom: 78px;
}


/* ==========================================================
   5. PETIT TITRE
========================================================== */

.legal-badge {
    display: inline-flex;
    align-items: center;

    margin-bottom: 27px;
    padding: 0;

    color: var(--legal-light);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-badge::before {
    content: "";

    display: inline-block;
    flex: 0 0 auto;

    width: 28px;
    height: 1px;

    margin-right: 12px;

    background: var(--legal-light);
}


/* ==========================================================
   6. TITRE PRINCIPAL
========================================================== */

.legal-header h1 {
    max-width: 740px;

    margin: 0 0 26px;

    color: var(--legal-black);

    font-family: "Inter", sans-serif;
    font-size: clamp(42px, 5vw, 56px);
    font-weight: 550;
    line-height: 1.07;

    letter-spacing: -2.3px;
}


/* ==========================================================
   7. INTRODUCTION
========================================================== */

.legal-header p {
    max-width: 640px;

    margin: 0;

    color: var(--legal-gray);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
}


/* ==========================================================
   8. SECTIONS LÉGALES

   Chaque élément .legal-box augmente automatiquement
   le numéro du compteur.
========================================================== */

.legal-box {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    color: var(--legal-text);
    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    counter-increment: legal-section;
}


/*
   Une ligne fine sépare chaque section.

   La première section ne reçoit aucun séparateur supérieur.
*/

.legal-box + .legal-box {
    margin-top: 58px;
    padding-top: 58px;

    border-top: 1px solid var(--legal-border);
}


/* ==========================================================
   9. NUMÉROTATION AUTOMATIQUE
========================================================== */

.legal-box::before {
    content: counter(legal-section, decimal-leading-zero);

    display: block;

    margin-bottom: 17px;

    color: var(--legal-number);

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;

    letter-spacing: 0.09em;
}

.legal-box:hover {
    box-shadow: none;
    transform: none;
}


/* ==========================================================
   10. TITRES DES SECTIONS
========================================================== */

.legal-box h2 {
    margin: 0 0 21px;

    color: var(--legal-black);

    font-family: "Inter", sans-serif;
    font-size: 25px;
    font-weight: 650;
    line-height: 1.3;

    letter-spacing: -0.7px;
}


/* ==========================================================
   11. SOUS-TITRES
========================================================== */

.legal-box h3 {
    margin: 31px 0 14px;

    color: var(--legal-black);

    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: -0.25px;
}

.legal-box h4 {
    margin: 25px 0 12px;

    color: var(--legal-black);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}


/* ==========================================================
   12. PARAGRAPHES
========================================================== */

.legal-box p {
    margin: 0 0 17px;

    color: var(--legal-text);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
}

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


/* ==========================================================
   13. LISTES
========================================================== */

.legal-box ul,
.legal-box ol {
    margin: 19px 0;
    padding: 0;

    list-style: none;
}


/*
   Les éléments utilisent un tiret discret à la place
   des puces classiques du navigateur.
*/

.legal-box li {
    position: relative;

    margin-bottom: 13px;
    padding-left: 26px;

    color: var(--legal-text);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.legal-box li:last-child {
    margin-bottom: 0;
}

.legal-box li::before {
    content: "—";

    position: absolute;

    top: 0;
    left: 0;

    color: var(--legal-light);
}


/* ==========================================================
   14. LISTES NUMÉROTÉES

   Les listes ordonnées conservent leur numérotation.
========================================================== */

.legal-box ol {
    padding-left: 24px;

    list-style: decimal;
}

.legal-box ol li {
    padding-left: 5px;
}

.legal-box ol li::before {
    content: none;
}


/* ==========================================================
   15. TEXTES IMPORTANTS
========================================================== */

.legal-box strong {
    color: var(--legal-black);

    font-weight: 700;
}

.legal-box em {
    color: var(--legal-text);
}


/* ==========================================================
   16. LIENS
========================================================== */

.legal-box a {
    color: var(--legal-black);

    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    transition: color 0.2s ease;
}

.legal-box a:hover {
    color: var(--legal-orange);
}


/* ==========================================================
   17. CITATIONS ET INFORMATIONS IMPORTANTES
========================================================== */

.legal-box blockquote {
    margin: 27px 0;
    padding: 18px 20px;

    color: var(--legal-text);
    background: var(--legal-soft);

    border: 0;
    border-left: 3px solid var(--legal-black);
    border-radius: 0 8px 8px 0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.legal-box blockquote p {
    font-size: inherit;
    line-height: inherit;
}


/* ==========================================================
   18. TABLEAUX
========================================================== */

.legal-box table {
    display: table;

    width: 100%;
    min-width: 600px;

    margin-top: 25px;

    overflow: hidden;

    border-collapse: collapse;
    border-spacing: 0;

    background: var(--legal-white);
}

.legal-box th,
.legal-box td {
    padding: 14px 15px;

    border: 1px solid var(--legal-border);

    text-align: left;
    vertical-align: top;

    font-size: 14px;
    line-height: 1.65;
}

.legal-box th {
    color: var(--legal-black);
    background: var(--legal-soft);

    font-weight: 700;
}

.legal-box td {
    color: var(--legal-text);
}


/* ==========================================================
   19. LIGNE HORIZONTALE ÉVENTUELLE
========================================================== */

.legal-box hr {
    height: 1px;

    margin: 32px 0;

    background: var(--legal-border);

    border: 0;
}


/* ==========================================================
   20. TABLETTE
========================================================== */

@media (max-width: 900px) {

    .legal-page {
        margin-top: 85px;
        margin-bottom: 110px;

        padding-right: 27px;
        padding-left: 27px;
    }

    .legal-header {
        margin-bottom: 65px;
    }

    .legal-header h1 {
        font-size: 44px;
    }

}


/* ==========================================================
   21. MOBILE
========================================================== */

@media (max-width: 700px) {

    .legal-page {
        margin: 65px auto 90px;
        padding: 0 20px;
    }

    .legal-header {
        margin-bottom: 50px;
    }

    .legal-badge {
        margin-bottom: 21px;

        font-size: 11px;
        letter-spacing: 0.11em;
    }

    .legal-badge::before {
        width: 21px;

        margin-right: 10px;
    }

    .legal-header h1 {
        margin-bottom: 20px;

        font-size: 35px;
        line-height: 1.1;

        letter-spacing: -1.6px;
    }

    .legal-header p {
        max-width: 100%;

        font-size: 16px;
        line-height: 1.75;
    }

    .legal-box + .legal-box {
        margin-top: 43px;
        padding-top: 43px;
    }

    .legal-box::before {
        margin-bottom: 14px;

        font-size: 12px;
    }

    .legal-box h2 {
        margin-bottom: 17px;

        font-size: 22px;
        line-height: 1.35;

        letter-spacing: -0.5px;
    }

    .legal-box h3 {
        margin-top: 26px;
        margin-bottom: 12px;

        font-size: 17px;
    }

    .legal-box h4 {
        font-size: 16px;
    }

    .legal-box p,
    .legal-box li {
        font-size: 15px;
        line-height: 1.8;
    }

    .legal-box li {
        margin-bottom: 12px;
        padding-left: 23px;
    }

    .legal-box blockquote {
        margin: 23px 0;
        padding: 16px 17px;

        font-size: 14.5px;
        line-height: 1.75;
    }

    /*
       Les tableaux larges défilent horizontalement
       sans élargir toute la page.
    */

    .legal-box {
        overflow-x: auto;

        scrollbar-width: thin;
    }

    .legal-box table {
        min-width: 570px;
    }

    .legal-box th,
    .legal-box td {
        padding: 12px;

        font-size: 13px;
    }

}


/* ==========================================================
   22. TRÈS PETITS ÉCRANS
========================================================== */

@media (max-width: 380px) {

    .legal-page {
        margin-top: 55px;

        padding-right: 16px;
        padding-left: 16px;
    }

    .legal-header h1 {
        font-size: 32px;
        letter-spacing: -1.3px;
    }

    .legal-header p {
        font-size: 15px;
    }

    .legal-box h2 {
        font-size: 21px;
    }

    .legal-box p,
    .legal-box li {
        font-size: 15px;
    }

}


/* ==========================================================
   23. ACCESSIBILITÉ
========================================================== */

.legal-page a:focus-visible {
    outline: 3px solid rgba(247, 105, 2, 0.3);
    outline-offset: 3px;
}


/* ==========================================================
   24. RÉDUCTION DES ANIMATIONS
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .legal-page *,
    .legal-page *::before,
    .legal-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}

/* ZANDOS — LEGAL CLEAN FINAL 2026 */

html,
body {
    background: #191919 !important;
}

/* ----------------------------------------------------------
   PAGE — même rythme éditorial que À propos
---------------------------------------------------------- */

.legal-page {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 54px !important;
    padding-bottom: 64px !important;

    background: #191919 !important;
    color: #f4f4f4 !important;

    counter-reset: none !important;
}


/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.legal-header {
    margin-top: 0 !important;
    margin-bottom: 42px !important;
    padding-top: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.legal-badge,
.legal-badge::before,
.legal-badge::after,
.legal-header::before,
.legal-header::after,
.legal-header > *::before,
.legal-header > *::after {
    display: none !important;
    content: none !important;
}

.legal-header h1 {
    margin-top: 0 !important;

    color: #ffffff !important;
    font-size: clamp(34px, 4vw, 44px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -1.1px !important;

    text-decoration: none !important;
}

.legal-header p {
    color: #b8b8b8 !important;
}


/* ----------------------------------------------------------
   CONTENU
---------------------------------------------------------- */

.legal-box {
    counter-increment: none !important;
    position: relative;

    background: transparent !important;
    color: #f4f4f4 !important;

    border-color: #383838 !important;
    box-shadow: none !important;
}

.legal-box::before,
.legal-box::after,
.legal-box > h2::before,
.legal-box > h3::before {
    display: none !important;
    content: none !important;
}

.legal-page h2,
.legal-page h3 {
    color: #ffffff !important;
    text-decoration: none !important;
}

.legal-intro,
.legal-page p,
.legal-page li {
    color: #b8b8b8 !important;
}


/* ----------------------------------------------------------
   LIENS — UN SEUL SOULIGNEMENT
---------------------------------------------------------- */

.legal-page a,
.legal-link,
.legal-pdf {
    color: #ffffff !important;

    border-bottom: 0 !important;
    box-shadow: none !important;

    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: currentColor !important;
    text-underline-offset: 3px !important;
}


/* ----------------------------------------------------------
   CONTACT / SÉPARATEURS
---------------------------------------------------------- */

.legal-contact {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.legal-page hr {
    border: 0 !important;
    border-top: 1px solid #383838 !important;
}


/* ----------------------------------------------------------
   FIN DE PAGE
   Évite le grand vide avant le footer
---------------------------------------------------------- */

.legal-page > *:last-child {
    margin-bottom: 0 !important;
}

.legal-note:last-child,
.legal-contact:last-child,
.legal-box:last-child {
    margin-bottom: 0 !important;
}


/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */

@media (max-width: 700px) {

    .legal-page {
        min-height: 0 !important;
        padding-top: 38px !important;
        padding-bottom: 52px !important;
    }

    .legal-header {
        margin-bottom: 36px !important;
    }

    .legal-header h1 {
        font-size: 32px !important;
        line-height: 1.12 !important;
        letter-spacing: -.7px !important;
    }

    .legal-header p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}
