/* Source : _floot-source/pages/mentions-legales.module.css
   Gabarit commun aux pages de texte légal — Mentions légales et Politique de
   confidentialité. Scopé sur .texteLegal, classe racine que index.php pose
   sur les deux routes (PAGE_ROOT_CLASS), plutôt que sur .page--<route> : un
   seul jeu de sélecteurs pour deux pages qui doivent se ressembler. */
.texteLegal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-family-base);
}

.texteLegal .container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-8) var(--spacing-4);
  padding-top: var(--spacing-10);
  padding-bottom: var(--spacing-12);
}

.texteLegal .pageTitle {
  font-family: var(--font-family-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: var(--spacing-12);
  color: var(--foreground);
  line-height: 1.2;
}

.texteLegal .section {
  margin-bottom: var(--spacing-12);
  padding-bottom: var(--spacing-10);
  border-bottom: 1px solid var(--border);
}

.texteLegal .section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.texteLegal .sectionTitle {
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--spacing-6);
  color: var(--foreground);
  line-height: 1.3;
}

.texteLegal .content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground);
}

/* Plafond de longueur de ligne : au-delà de ~70 caractères, l'œil perd le
   début de la ligne suivante. Voir DESIGN.md, règle Body. Décisif ici : ce
   sont les pages les plus longues du site. */
.texteLegal .content p {
  max-width: 70ch;
  margin-bottom: var(--spacing-6);
  text-wrap: pretty;
}

.texteLegal .content p:last-child {
  margin-bottom: 0;
}

/* Le reset global retire le soulignement de tous les <a>. Dans un texte
   suivi, un lien qui ne se distingue que par sa couleur est invisible pour
   qui ne perçoit pas cette nuance : le soulignement le rend inconditionnel. */
.texteLegal .content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.texteLegal .content a:hover {
  color: var(--accent-lisible);
}

.texteLegal .content a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--background),
    0 0 0 4px var(--primary);
}

.texteLegal .content code {
  font-family: var(--font-family-heading);
  font-size: 0.9375em;
  background-color: var(--muted);
  padding: 0.1em 0.35em;
}

.texteLegal .content strong {
  color: var(--foreground);
  font-weight: 500;
}

.texteLegal .content ul {
  list-style: disc;
  padding-left: var(--spacing-6);
  margin: var(--spacing-6) 0;
}

.texteLegal .content li {
  max-width: 70ch;
  margin-bottom: var(--spacing-4);
  color: var(--foreground);
  line-height: 1.65;
}

.texteLegal .content li:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .texteLegal .container {
    padding: var(--spacing-12) var(--spacing-8);
    padding-top: var(--spacing-16);
    padding-bottom: var(--spacing-16);
  }

  .texteLegal .pageTitle {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-16);
  }

  .texteLegal .section {
    margin-bottom: var(--spacing-16);
    padding-bottom: var(--spacing-12);
  }

  .texteLegal .sectionTitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-6);
  }

  .texteLegal .content {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .texteLegal .container {
    padding: var(--spacing-16) var(--spacing-12);
    max-width: 850px;
  }
}
