/**
 * Informations légales communes à toutes les pages :
 *  - .legal-links  : pied de page (mentions légales, CGU, confidentialité), partial partial/legal-links
 *  - .rgpd-notice  : mention d'information RGPD sous un formulaire qui collecte des données, partial partial/rgpd-notice
 * Feuille chargée par les partials eux-mêmes (les layouts publics ne chargent pas new-layout.css).
 */

.legal-links {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0;
    padding: 14px 16px;
    font: 12.5px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #6c757d; text-align: center;
}
.legal-links > * + *::before { content: "·"; margin: 0 9px; color: #adb5bd; }
.legal-links a, .legal-links a:visited { color: #29235C; text-decoration: none; }
.legal-links a:hover, .legal-links a:focus { color: #29235C; text-decoration: underline; }

/* pages publiques (accueil, connexion, demandes de licence…) : bandeau blanc pleine largeur en bas de page */
.legal-links-bar { position: relative; z-index: 5; clear: both; background: #fff; border-top: 1px solid #e5e5e5; }

/* layout license-request-full (Licence Expérience…) : corps en flex qui centre le panneau sur un dégradé bleu ;
   le pied de page passe sous le panneau, en clair sur le dégradé */
body.license-request-full { flex-direction: column; }
body.license-request-full > .legal-links-bar { background: transparent; border-top: 0; color: rgba(255, 255, 255, .75); }
body.license-request-full > .legal-links-bar > * + *::before { color: rgba(255, 255, 255, .5); }
body.license-request-full > .legal-links-bar a,
body.license-request-full > .legal-links-bar a:visited,
body.license-request-full > .legal-links-bar a:hover,
body.license-request-full > .legal-links-bar a:focus { color: #fff; }

/* page d'accueil : en bas de la box blanche du formulaire de contact (application/index/index.phtml) */
.legal-links-box { margin-top: 24px; padding: 14px 0 0; border-top: 1px solid #e5e5e5; }

/* pages connectées (nouveau design) : sous le contenu */
.legal-links-app { margin-top: 30px; border-top: 1px solid #CFE2FF; }

/* ancien layout : dans le pied de page sombre existant */
.legal-links-dark { padding: 4px 0 0; justify-content: flex-start; color: #ccc; }
.legal-links-dark > * + *::before { color: #888; }
.legal-links-dark a, .legal-links-dark a:visited, .legal-links-dark a:hover, .legal-links-dark a:focus { color: #fff; }

/* téléphone : une ligne par lien, sans séparateur en début de ligne */
@media (max-width: 600px) {
    .legal-links { flex-direction: column; gap: 2px; }
    .legal-links > * + *::before { content: none; }
}

/* ── Mention RGPD sous un formulaire (partial partial/rgpd-notice) ──
   Une ligne en petit gris, « En savoir plus » déplie le détail sur place */
.rgpd-notice {
    margin: 12px auto 0; max-width: 640px; text-align: center;
    color: #6c757d; font-size: 12px; line-height: 1.5;
}
.rgpd-notice summary { display: block; list-style: none; cursor: pointer; }
.rgpd-notice summary::-webkit-details-marker { display: none; }
.rgpd-notice summary:focus-visible { outline: 2px solid #9EC5FE; outline-offset: 2px; border-radius: 3px; }
.rgpd-notice-more { color: #0075BF; white-space: nowrap; }
.rgpd-notice summary:hover .rgpd-notice-more { text-decoration: underline; }
.rgpd-notice-more .bi { display: inline-block; margin-left: 4px; font-size: 10px; transition: transform .2s; }
.rgpd-notice[open] .rgpd-notice-more .bi { transform: rotate(180deg); }
.rgpd-notice-body { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e5e5; text-align: left; }
.rgpd-notice-body p { margin: 0 0 4px; font-size: inherit; line-height: inherit; color: inherit; }
.rgpd-notice-body p:last-child { margin-bottom: 0; }
.rgpd-notice-body a { color: #0075BF; }
