/* BASE */
.legal-body {
    background: var(--g50);
}

/* HERO LÉGAL */
.legal-hero {
    background: var(--g900);
    padding: 56px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 16px;
}

.legal-breadcrumb a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .15s;
}

.legal-breadcrumb a:hover {
    color: var(--white);
}

.legal-h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
}

/* LAYOUT */
.legal-content {
    padding: 64px 0 96px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}

/* SOMMAIRE */
.legal-toc {
    position: sticky;
    top: 88px;
    background: var(--white);
    border: 1px solid var(--g200);
    border-radius: var(--r-xl);
    padding: 24px;
}

.legal-toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--g400);
    margin-bottom: 12px;
}

.legal-toc-list {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-list li {
    counter-increment: toc;
}

.legal-toc-list a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--g600);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: var(--r-md);
    transition: background .15s, color .15s;
    line-height: 1.4;
}

.legal-toc-list a::before {
    content: counter(toc);
    font-size: 10px;
    font-weight: 700;
    color: var(--g300);
    flex-shrink: 0;
    min-width: 14px;
}

.legal-toc-list a:hover {
    background: var(--g100);
    color: var(--g900);
}

.legal-toc-list a.active {
    background: var(--g900);
    color: var(--white);
}

.legal-toc-list a.active::before {
    color: rgba(255, 255, 255, .5);
}

/* ARTICLE */
.legal-article {
    min-width: 0;
}

.legal-section {
    background: var(--white);
    border: 1px solid var(--g200);
    border-radius: var(--r-xl);
    padding: 36px 40px;
    margin-bottom: 20px;
    scroll-margin-top: 96px;
}

.legal-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--g900);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--g200);
}

.legal-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--g700);
    margin-bottom: 14px;
}

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

.legal-section ul,
.legal-section ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-section li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--g700);
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--g700);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s;
}

.legal-section a:hover {
    color: var(--g900);
}

.legal-section strong {
    font-weight: 600;
    color: var(--g900);
}

.legal-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--g800);
    margin: 20px 0 10px;
}

/* Bloc contact en bas d'article */
.legal-contact-block {
    background: var(--g50);
    border: 1px solid var(--g200);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    font-size: 14px;
    color: var(--g600);
    margin-top: 8px;
}

.legal-contact-block a {
    color: var(--g700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== PAGE SUPPORT ===== */

.support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.support-card {
    background: var(--white);
    border: 1px solid var(--g200);
    border-radius: var(--r-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-icon-blue  { background: #EFF6FF; color: #2563EB; }
.support-icon-green { background: #F0FDF4; color: #16A34A; }
.support-icon-orange{ background: #FFF7ED; color: #EA580C; }

.support-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--g900);
    margin: 0;
}

.support-card-desc {
    font-size: 13px;
    color: var(--g500);
    margin: 0;
}

.support-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}

.support-card-link:hover { color: #1D4ED8; }

.support-link-orange       { color: #EA580C; }
.support-link-orange:hover { color: #C2410C; }

.support-card-hours {
    font-size: 13px;
    font-weight: 600;
    color: #16A34A;
    margin-top: 4px;
}

/* FAQ */
.support-faq {
    margin-bottom: 48px;
}

.support-faq-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--g900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-faq-list {
    background: var(--white);
    border: 1px solid var(--g200);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.support-faq-item {
    padding: 20px 28px;
    border-bottom: 1px solid var(--g100);
}

.support-faq-item:last-child {
    border-bottom: none;
}

.support-faq-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--g900);
    margin: 0 0 6px;
}

.support-faq-a {
    font-size: 14px;
    line-height: 1.7;
    color: var(--g600);
    margin: 0;
}

/* CTA */
.support-cta {
    background: var(--g900);
    border-radius: var(--r-xl);
    padding: 48px 32px;
    text-align: center;
}

.support-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
}

.support-cta-desc {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    margin: 0 0 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.support-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7C3AED;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: background .15s;
}

.support-cta-btn:hover { background: #6D28D9; }

@media (max-width: 900px) {
    .support-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .support-faq-item {
        padding: 16px 20px;
    }

    .support-cta {
        padding: 32px 20px;
    }
}

/* ===== FIN PAGE SUPPORT ===== */

/* FOOTER LÉGAL */
.legal-footer {
    background: var(--black);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.legal-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer-inner p {
    font-size: 13px;
    color: var(--g700);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-toc {
        position: static;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 40px 0 32px;
    }

    .legal-section {
        padding: 24px 20px;
    }

    .legal-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}