/* Pages légales & institutionnelles WiseBled */
.page-legal .legal-mesh,
.page-about .about-mesh {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #f1f5f9 100%);
}

.legal-hero,
.about-hero {
    padding: 5rem 0 2.5rem;
}

.legal-eyebrow,
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.legal-prose h2 {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}

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

.legal-prose p,
.legal-prose li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #475569;
}

.legal-prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.legal-prose a {
    color: #4f46e5;
    font-weight: 600;
}

.legal-prose a:hover {
    text-decoration: underline;
}

.legal-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .legal-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.legal-trust-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(238, 242, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.legal-trust-card strong {
    font-size: 0.875rem;
    color: #0f172a;
}

.legal-trust-card span {
    font-size: 0.75rem;
    color: #64748b;
}

.legal-prose-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.about-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.2);
}

.case-study-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -20px rgba(79, 70, 229, 0.22);
}

.case-metric-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: Outfit, system-ui, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 0.75rem;
    padding: 0.5rem 0.65rem;
    line-height: 1.1;
}

.case-metric-badge small {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
}

.page-legal .btn-glow {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.5);
}
.page-legal .btn-ghost {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

/* À propos & légal — mobile */
.page-about .about-mesh,
.page-legal .legal-mesh {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

@media (max-width: 639px) {
    .legal-hero,
    .about-hero {
        padding: 3.5rem 0 1.75rem;
    }
    .about-hero h1,
    .legal-hero h1 {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
        line-height: 1.15;
        overflow-wrap: break-word;
    }
    .about-hero .flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .about-hero .btn-glow,
    .about-hero .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .case-metric-badge {
        align-self: flex-start;
    }
    .legal-prose {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}
