.legal_wrap    {}
.legal_section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border)); }
.legal_section:first-of-type { border-top: none; }
.legal_h2      { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.legal_list    { margin: .5rem 0 .75rem; padding-left: 1.25rem; }
.legal_list li { margin-bottom: .3rem; font-size: .9rem; }
.legal_date    { margin-top: -.25rem; margin-bottom: 1.5rem; }

@media (max-width: 959px) {
    .legal_rgpd_table,
    .legal_data_table { display: block; width: 100%; }
    .legal_rgpd_table thead,
    .legal_data_table thead { display: none; }
    .legal_rgpd_table tbody,
    .legal_data_table tbody { display: flex; flex-direction: column; }
    .legal_rgpd_table tr,
    .legal_data_table tr { display: block; padding: .6rem 0; border-bottom: 1px solid hsl(var(--border)); }
    .legal_rgpd_table tr:last-child,
    .legal_data_table tr:last-child { border-bottom: none; }
    .legal_rgpd_table td,
    .legal_data_table td { display: block; padding: .1rem 0; font-size: .85rem; white-space: normal !important; }
    .legal_rgpd_table td::before,
    .legal_data_table td::before {
        display: block;
        font-size: .65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: hsl(var(--muted-foreground));
        margin-top: .4rem;
    }
    .legal_rgpd_table td:first-child::before,
    .legal_data_table td:first-child::before { margin-top: 0; }

    .legal_rgpd_table td:nth-child(1)::before { content: 'Donnée'; }
    .legal_rgpd_table td:nth-child(2)::before { content: 'Finalité'; }
    .legal_rgpd_table td:nth-child(3)::before { content: 'Base légale'; }
    .legal_rgpd_table td:nth-child(4)::before { content: 'Durée'; }

    .legal_sources_table td:nth-child(1)::before { content: 'Source'; }
    .legal_sources_table td:nth-child(2)::before { content: 'Données'; }
    .legal_sources_table td:nth-child(3)::before { content: 'Couverture'; }
    .legal_sources_table td:nth-child(4)::before { content: 'Licence'; }

    .legal_score_table td:nth-child(1)::before { content: 'Indicateur'; }
    .legal_score_table td:nth-child(2)::before { content: 'Poids'; }
    .legal_score_table td:nth-child(3)::before { content: 'Source'; }
    .legal_score_table td:nth-child(4)::before { content: 'Seuils'; }

    .uk-overflow-auto:has(.legal_data_table) { background: none; }
}
