/* ═══════════════════════════════════════════════════
   legal.css — Styles des pages légales
   (mentions-legales, cgv, confidentialite)
   SolidApps SAS
═══════════════════════════════════════════════════ */

/* ── LIENS (override shared) ── */
a {
    color: var(--accent);
    transition: color 0.2s;
}

a:hover {
    color: #C4D14A;
}

/* ── PAGE HEADER ── */
.page-header {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 700px;
        height: 400px;
        background: radial-gradient(ellipse, rgba(166,183,39,0.05) 0%, transparent 65%);
        pointer-events: none;
    }

.page-header-inner {
    position: relative;
    z-index: 1;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(166,183,39,0.08);
    border: 1px solid rgba(166,183,39,0.25);
    margin-bottom: 1.5rem;
}

    .page-eyebrow::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent-glow);
        flex-shrink: 0;
    }

.page-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-3);
    max-width: 560px;
}

.page-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* ── LEGAL SECTION ── */
.legal-section {
    padding: 5rem 0 6rem;
}

/* ── TABLE DES MATIÈRES ── */
.legal-toc {
    background: linear-gradient(150deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.legal-toc-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1rem;
}

.legal-toc-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

    .legal-toc-list li a {
        font-size: 13px;
        color: var(--text-2);
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .legal-toc-list li a::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent);
            flex-shrink: 0;
        }

        .legal-toc-list li a:hover {
            color: var(--text);
        }

/* ── BLOCS LÉGAUX ── */
.legal-block {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.legal-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.legal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(166,183,39,0.1);
    border: 1px solid rgba(166,183,39,0.3);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── CORPS DU TEXTE ── */
.legal-body {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.85;
}

    .legal-body p {
        margin-bottom: 0.9rem;
    }

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

    .legal-body strong {
        color: var(--text);
        font-weight: 600;
    }

    .legal-body ul {
        list-style: none;
        margin: 0.75rem 0 0.9rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

        .legal-body ul li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding-left: 4px;
        }

            .legal-body ul li::before {
                content: '';
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background: var(--accent);
                flex-shrink: 0;
                margin-top: 9px;
            }

/* ── TABLEAU INFO ── */
.legal-info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin: 1.25rem 0;
}

.legal-info-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 11px 16px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
}

.legal-info-value {
    font-size: 14px;
    color: var(--text-2);
    padding: 11px 16px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}

.legal-info-label:last-of-type,
.legal-info-value:last-of-type {
    border-bottom: none;
}

/* ── HIGHLIGHT ── */
.legal-highlight {
    background: rgba(166,183,39,0.05);
    border: 1px solid rgba(166,183,39,0.2);
    border-left: 3px solid var(--accent);
    border-radius: var(--r);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.7;
}

    .legal-highlight strong {
        color: var(--text);
    }

/* ── CGV : GRILLE PRIX ── */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.price-card {
    background: linear-gradient(150deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

    .price-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

.price-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.5rem;
}

.price-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.price-card-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ── CONFIDENTIALITÉ : TABLEAU TRAITEMENTS ── */
.treatment-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin: 1.25rem 0;
    font-size: 13px;
}

    .treatment-table thead tr {
        background: var(--bg3);
        border-bottom: 1px solid var(--border2);
    }

    .treatment-table th {
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-3);
        padding: 10px 14px;
    }

    .treatment-table td {
        padding: 10px 14px;
        color: var(--text-2);
        border-bottom: 1px solid var(--border);
        vertical-align: top;
        line-height: 1.6;
    }

    .treatment-table tbody tr:last-child td {
        border-bottom: none;
    }

    .treatment-table tbody tr {
        background: var(--bg2);
    }

    .treatment-table tbody tr:nth-child(odd) {
        background: var(--bg3);
    }

/* ── CONFIDENTIALITÉ : GRILLE DROITS ── */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.right-card {
    background: linear-gradient(150deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.25rem;
}

.right-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .right-card-title::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 6px var(--accent-glow);
        flex-shrink: 0;
    }

.right-card-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.55;
}

/* ── NOTE DE MISE À JOUR ── */
.update-notice {
    font-size: 12px;
    color: var(--text-3);
    font-style: italic;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .legal-info-card {
        grid-template-columns: 1fr;
    }

    .legal-info-label {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .legal-info-value {
        padding-top: 4px;
        border-bottom: 1px solid var(--border);
    }

    .treatment-table {
        font-size: 12px;
    }

    .treatment-table th,
    .treatment-table td {
        padding: 8px 10px;
    }
}
