/* ==========================================================================
   AZIMUT PARTNERS — legales.css
   Pages « Mentions légales » et « Confidentialité » (mentions-legales.html,
   confidentialite.html) : une colonne de lecture, sobre.

   Sommaire
     1. Colonne de lecture et articles
     2. Fiche d'informations (dénomination, siège, immatriculation…)
     3. « En bref » et détail des traitements (page « Confidentialité »)

   Dépend de socle.css, institutionnel.css et pages.css.
   ========================================================================== */


/* 1. COLONNE DE LECTURE ET ARTICLES -------------------------------------- */

.legal {
  padding-block: clamp(28px, 3.6vw, 52px) var(--espace-section);
}

.legal__colonne {
  max-width: 50rem;
}

/* Date de mise à jour */
.legal__maj {
  color: var(--encre-douce);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Un article par sujet ; son ancre s'arrête sous l'en-tête fixe du site */
.legal__article {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--filet);
  scroll-margin-top: 72px;
}

.legal__titre {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  line-height: 1.2;
}

.legal__article p,
.legal__liste li {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.legal__article p {
  margin-top: 14px;
}

.legal__article strong {
  color: var(--marine);
  font-weight: 700;
}

/* Liens dans le texte : soulignés, zone de toucher confortable */
.legal__article p a:not(.lien-fleche),
.legal__article li a,
.fiche-legale a {
  color: #046a6e;
  font-weight: 600;
  text-underline-offset: 3px;
}

.legal__liste {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.legal__liste li {
  position: relative;
  padding-left: 22px;
}

.legal__liste li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turquoise-vif);
}


/* 2. FICHE D'INFORMATIONS ------------------------------------------------- */
/* Une ligne par information : intitulé à gauche, valeur à droite
   (l'un sous l'autre sur téléphone). */

.fiche-legale {
  margin: 18px 0 0;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-l);
  background: var(--blanc);
  overflow: hidden;
}

.fiche-legale > div {
  display: grid;
  gap: 2px;
  padding: 12px 18px;
}

.fiche-legale > div + div {
  border-top: 1px solid var(--filet);
}

.fiche-legale dt {
  color: var(--encre-douce);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.fiche-legale dd {
  margin: 0;
  color: var(--marine);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Téléphone et adresses : zone de toucher de 44 px de haut */
.fiche-legale dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 640px) {
  .fiche-legale > div {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 10px 22px;
    min-height: 52px;
  }
}


/* 3. « EN BREF » ET DÉTAIL DES TRAITEMENTS -------------------------------- */

.legal__bref {
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(1, 131, 134, 0.22);
  border-radius: var(--rayon-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f6fcfc 100%);
}

.legal__bref-titre {
  font-size: 1.25rem;
  line-height: 1.2;
}

.legal__bref ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.legal__bref li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.legal__bref .icone {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--turquoise-brume);
  color: #016c6a;
  stroke-width: 2.6;
}

/* Un formulaire = un encadré : données, finalité, base légale */
.traitement {
  margin-top: 20px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-l);
  background: var(--fond-doux);
}

.traitement__titre {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.traitement__detail {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.traitement__detail dt {
  color: #046a6e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.traitement__detail dd {
  margin: 2px 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.traitement + .legal__liste {
  margin-top: 22px;
}


/* 4. PAGE INTROUVABLE (404.html) ------------------------------------------ */

.erreur__actions {
  display: flex;
  align-self: center;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 599px) {
  .erreur__actions {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Les trois boutons tiennent sur une seule ligne à partir de la tablette */
@media (min-width: 900px) {
  .erreur .page-entete__contenu {
    max-width: 1040px;
  }
}
