/* =============================================================
 * aird-legal-pages.css — Styles des pages légales AIRDancia
 *
 * Cible : pages WP contenant un shortcode [aird_privacy], [aird_cgu],
 *         [aird_mentions_legales], [aird_contact]
 *
 * Scope : .aird-legal-page (posé par aird_legal_section_wrap PHP)
 *         → zéro fuite sur le reste du site
 *
 * Design system (CLAUDE.md §28) :
 *   Plus Jakarta Sans · gradient or 135deg · couleurs sobres pour lisibilité
 * ============================================================= */

.aird-legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    line-height: 1.65;
    font-size: 15.5px;
}

/* ─── Header ─────────────────────────────────────────────────── */

.aird-legal-page__head {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(229, 169, 61, 0.20);
}

.aird-legal-page__title {
    font-family: 'Cinzel', 'Plus Jakarta Sans', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #F5C76E 0%, #E5A93D 50%, #D49942 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 10px;
    line-height: 1.2;
}

.aird-legal-page__meta {
    font-size: 13px;
    color: #6a6478;
    margin: 0;
    font-style: italic;
}

.aird-legal-page__meta strong {
    color: #4a4458;
    font-style: normal;
    font-weight: 600;
}

/* ─── Body ───────────────────────────────────────────────────── */

.aird-legal-page__body {
    color: #2a2438;
}

/* H2 = sections principales (Article X / Section X) */
.aird-legal-page__body h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(229, 169, 61, 0.30);
    letter-spacing: -0.01em;
}

.aird-legal-page__body h2:first-child {
    margin-top: 0;
}

/* H3 = sous-sections */
.aird-legal-page__body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #d49942;
    margin: 28px 0 10px;
    letter-spacing: 0;
}

/* Paragraphes */
.aird-legal-page__body p {
    margin: 0 0 14px;
    line-height: 1.65;
}

/* Listes */
.aird-legal-page__body ul,
.aird-legal-page__body ol {
    margin: 0 0 18px;
    padding-left: 26px;
}

.aird-legal-page__body li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.aird-legal-page__body li::marker {
    color: #d49942;
}

.aird-legal-page__body strong {
    color: #1a1a2e;
    font-weight: 700;
}

/* ─── Liens ──────────────────────────────────────────────────── */

.aird-legal-page__body a {
    color: #c0883b;
    text-decoration: underline;
    text-decoration-color: rgba(212, 153, 66, 0.40);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

html body .aird-legal-page__body a:hover {
    color: #a8731e !important;
    text-decoration-color: #a8731e !important;
}

/* ─── Code inline (pour mentions de variables techniques) ────── */

.aird-legal-page__body code {
    background: rgba(229, 169, 61, 0.10);
    color: #8a5e10;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.92em;
    border: 1px solid rgba(229, 169, 61, 0.20);
}

/* ─── Tables (utilisées dans Privacy pour sous-traitants) ───── */

.aird-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 22px;
    font-size: 14px;
    background: #fffdf7;
    border: 1px solid rgba(229, 169, 61, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.aird-legal-table thead {
    background: linear-gradient(135deg, #fffaee 0%, #fdf3da 100%);
    border-bottom: 2px solid rgba(229, 169, 61, 0.45);
}

.aird-legal-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-right: 1px solid rgba(229, 169, 61, 0.18);
}

.aird-legal-table th:last-child {
    border-right: 0;
}

.aird-legal-table td {
    padding: 12px 14px;
    border-top: 1px solid rgba(229, 169, 61, 0.15);
    border-right: 1px solid rgba(229, 169, 61, 0.10);
    color: #2a2438;
    vertical-align: top;
    line-height: 1.5;
}

.aird-legal-table td:last-child {
    border-right: 0;
}

.aird-legal-table tbody tr:hover {
    background: rgba(229, 169, 61, 0.04);
}

/* ─── Bloc contact spécial ───────────────────────────────────── */

.aird-legal-contact-block {
    background: linear-gradient(180deg, #fffaee 0%, #fdf3da 100%);
    border: 1.5px solid rgba(229, 169, 61, 0.35);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0 28px;
    text-align: center;
}

.aird-legal-contact-block h3 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aird-legal-contact-block p {
    margin-bottom: 8px;
}

.aird-legal-contact-email {
    font-size: 20px;
    font-weight: 700;
    color: #d49942 !important;
    text-decoration: none !important;
    letter-spacing: -0.01em;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s ease;
}

html body .aird-legal-contact-email:hover {
    color: #a8731e !important;
    border-bottom-color: #d49942 !important;
}

/* ─── Mobile ─────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .aird-legal-page {
        padding: 28px 16px 48px;
        font-size: 15px;
    }

    .aird-legal-page__title {
        font-size: 24px;
        letter-spacing: 0.04em;
    }

    .aird-legal-page__body h2 {
        font-size: 19px;
        margin: 32px 0 12px;
    }

    .aird-legal-page__body h3 {
        font-size: 16px;
        margin: 22px 0 8px;
    }

    /* Table responsive : on stack les cellules en colonnes */
    .aird-legal-table {
        font-size: 13.5px;
    }

    .aird-legal-table thead {
        display: none;
    }

    .aird-legal-table tbody tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid rgba(229, 169, 61, 0.25);
        border-radius: 6px;
        background: #fffdf7;
    }

    .aird-legal-table td {
        display: block;
        border: 0;
        border-bottom: 1px solid rgba(229, 169, 61, 0.12);
        padding: 10px 14px;
    }

    .aird-legal-table td:last-child {
        border-bottom: 0;
    }

    .aird-legal-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #d49942;
        display: block;
        margin-bottom: 3px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .aird-legal-contact-email {
        font-size: 17px;
    }
}
