/* Contenu court → footer en bas de fenêtre ; contenu long → footer en bas de page (scroll) */
body:has(.legal-footer) {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.legal-footer {
    background: var(--primarybrush, #fff);
    border-top: 1px solid var(--tertiarybrush, #ddd);
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0.4rem 0.75rem;
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
    margin-top: auto;
    flex-shrink: 0;
}

.legal-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-footer__copy {
    white-space: nowrap;
    opacity: 0.85;
}

.legal-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
}

.legal-footer__nav a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-footer__nav a:hover {
    opacity: 0.8;
}

@media (max-width: 576px) {
    .legal-footer {
        font-size: 0.7rem;
    }
}
