.legal-page-title {
    text-align: center;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(30px, 6vw, 46px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0;
    padding: 72px 20px 0;
}

.legal-updated {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 14px 0 0 0;
}

.legal-lead {
    font-size: 17px ;
    line-height: 1.75;
    color: var(--text-secondary);
}

.legal-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-list li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5e39c2;
}

.legal-list strong {
    font-weight: 600;
}

/* ---- Sous-titres de section ---- */

.apropos-section h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    margin: 32px 0 14px 0;
}

.apropos-section h3:first-of-type {
    margin-top: 0;
}

.legal-info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 24px 0;
}

.legal-info-box p {
    font-size: 15px !important;
    line-height: 1.7;
    margin: 0 0 4px 0 !important;
}

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

.legal-wip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f6f3ff;
    border: 1px solid #e0d8f7;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
}

.legal-wip-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.5;
}

.legal-wip p {
    font-size: 15px !important;
    line-height: 1.7;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

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

/* ---- Cartes de certification ---- */

.legal-certs {
    list-style: none;
    margin: 28px 0 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legal-cert {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.legal-cert:hover {
    border-color: #cbbcee;
    transform: translateY(-2px);
}

.legal-cert-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.legal-cert-emoji {
    font-size: 20px;
    line-height: 1;
}

.legal-cert-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.legal-cert-origin {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

.legal-cert ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-cert li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-cert li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
}

.legal-cert-warn::before {
    background: var(--primary) !important;
}

.legal-disclaimer {
    font-size: 15px !important;
    line-height: 1.7;
    color: var(--text-secondary) !important;
    border-left: 2px solid var(--border);
    padding-left: 18px;
    margin-top: 28px !important;
}

.legal-contact-list {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-contact-list li {
    font-size: 16px;
    line-height: 1.7;
}

.apropos-content a {
    color: #5e39c2;
    text-decoration: none;
    border-bottom: 1px solid rgba(94, 57, 194, 0.3);
    transition: border-color 0.15s ease;
}

.apropos-content a:hover {
    border-bottom-color: #5e39c2;
}

.legal-outro {
    text-align: center;
    font-size: 15px !important;
    color: var(--text-secondary) !important;
    margin-top: 40px !important;
}

@media (max-width: 900px) {
    .legal-page-title {
        padding: 40px 20px 0;
    }

    .legal-updated {
        margin-top: 10px;
    }

    .legal-lead {
        font-size: 16px !important;
    }

    .legal-list li,
    .legal-contact-list li {
        font-size: 15px;
    }

    .legal-certs {
        grid-template-columns: 1fr;
    }

    .legal-info-box,
    .legal-wip {
        padding: 16px 18px;
    }
}
