/* Pages legales (mentions, confidentialite, CGU) : gabarit commun de lecture sur la base des pages annexes. Charge apres annex.css.
   Les textes et la structure des documents ne changent pas ; seule leur presentation : un titre de section et un texte par rubrique, separes par des filets
   (plus de cartes a icones ni d'etiquettes en majuscules). */
.an-body .legal-panel { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; margin: 0; padding: 22px 0 24px; border-top: 1px solid var(--an-line); }
.an-body .legal-panel:first-of-type { border-top: 0; padding-top: 6px; }
.an-body .legal-panel__header { display: block; padding: 0; border: 0; margin: 0 0 12px; }
.an-body .legal-panel__icon, .an-body .legal-panel__badge { display: none; }
.an-body .legal-panel__title { margin: 0; font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; color: var(--an-text); }
.an-body .legal-panel__body { padding: 0; font-size: 1rem; line-height: 1.7; color: var(--an-text); max-width: 64ch; }
.an-body .legal-panel__body p { margin: 0 0 .9em; }
.an-body .legal-panel__body p:last-child { margin-bottom: 0; }
.an-body .legal-panel__body ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: .45em; }
.an-body .legal-panel__body a { color: var(--an-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Coordonnees : etiquette a gauche, valeur a droite ; une rubrique sans valeur n'est pas affichee par le gabarit (pas de ligne vide) */
.an-body .legal-info-grid { display: grid; }
.an-body .legal-info-row { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr; gap: 4px 16px; padding: 8px 0; border: 0; align-items: baseline; }
.an-body .legal-info-row:first-child { padding-top: 0; }
.an-body .legal-info-label { min-width: 0; font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--an-muted); }
.an-body .legal-info-value { font-size: 1rem; font-weight: 500; color: var(--an-text); overflow-wrap: anywhere; }
.an-body .legal-info-value a { color: var(--an-accent); }

/* Droits (confidentialite) */
.an-body .legal-rights-grid { display: grid; gap: 0; }
.an-body .legal-right-item { display: block; padding: 8px 0; border: 0; background: none; border-radius: 0; }
.an-body .legal-right-item:first-child { border-top: 0; padding-top: 0; }
.an-body .legal-right-icon { display: none; }
.an-body .legal-right-label { font-weight: 650; color: var(--an-text); }
.an-body .legal-right-desc { font-size: .9375rem; color: var(--an-muted); }
.an-body .legal-right-item > div { display: block; }

/* Avis de traduction */
.an-body .legal-translation-notice { margin: 0 0 22px; padding: 13px 16px; border-radius: var(--an-r-ctl); background: color-mix(in srgb, var(--an-accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--an-accent) 40%, transparent); }
.an-body .legal-translation-notice__icon { color: var(--an-accent); }
.an-body .legal-translation-notice__text { font-size: .9375rem; line-height: 1.5; color: var(--an-text); }


@media (max-width: 480px) { .an-body .legal-info-row { grid-template-columns: 1fr; } }
.an-body .legal-info-value a { display: inline-flex; align-items: center; min-height: 44px; }
/* Audit final : sur les pages legales traduites (de, ru, uk...) a 320 px, le lien « version francaise officielle » (white-space: nowrap herite du composant partage) depassait l'ecran (jusqu'a 114 px de defilement horizontal) :
   le texte du lien se replie maintenant et l'avis peut se reduire dans la boite flex. */
.an-body .legal-translation-notice__text { min-width: 0; overflow-wrap: anywhere; }
.an-body .legal-translation-notice__link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; white-space: normal; }

/* Coordonnees en RTL : numeros, e-mails et adresses restent dans leur sens naturel (pas de « 33143521615+ » ni d'adresse melangee) */
.an-body .legal-info-value { unicode-bidi: plaintext; text-align: start; }
.an-body .legal-info-value a { direction: ltr; unicode-bidi: isolate; }
