/* Mentions légales et CGU (TS-76) : texte long, lu sur téléphone comme sur
   ordinateur */
.legal-notice {
  max-width: 68ch;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: #212529;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.legal-notice-title {
  margin-bottom: 1.75rem;
  color: #218094;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.25;
}

/* Filet aux couleurs de la marque sous le titre */
.legal-notice-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #c23c91, #218094);
}

.legal-notice-body h2 {
  margin: 2rem 0 0.75rem;
  color: #218094;
  font-size: 1.2rem;
  font-weight: 600;
}

.legal-notice-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-notice-body p,
.legal-notice-body li {
  overflow-wrap: break-word;
}

.legal-notice-body ul,
.legal-notice-body ol {
  padding-left: 1.25rem;
}

/* L'éditeur de l'admin enregistre chaque élément de liste dans un <p> */
.legal-notice-body li > p {
  margin-bottom: 0.25rem;
}

.legal-notice a {
  color: #218094;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-notice-empty {
  color: #5c6670;
}

/* auth.css agrandit tous les paragraphes et liens des pages de connexion */
.legal-notice p,
.legal-notice li,
.legal-notice a {
  font-size: inherit;
}

/* Mise en page de la connexion sur ordinateur : le bouton reste au-dessus du
   pied fixe */
.legal-notice-back {
  margin-bottom: 4rem;
}

/* Connexion sur téléphone : texte clair sur le dégradé, qui s'allonge avec le
   texte au lieu de s'arrêter à la hauteur de l'écran */
@media (max-width: 767.98px) {
  .auth-page-bottom-right-screen:has(.legal-notice) {
    height: auto;
    min-height: 100vh;
  }

  /* base_auth.html rend son pied deux fois (dans la colonne et dans le
     <footer> de base.html), fixe et superposé : ici un seul, à la suite du
     texte au lieu de le recouvrir pendant la lecture */
  body:has(.legal-notice) footer .auth-page-footer {
    display: none;
  }

  .auth-page-bottom-right-screen:has(.legal-notice) ~ .auth-page-footer {
    position: static;
    color: #5c6670;
  }

  .legal-notice-back {
    margin-bottom: 0;
  }

  .auth-page-container .legal-notice,
  .auth-page-container .legal-notice-title,
  .auth-page-container .legal-notice-body h2,
  .auth-page-container .legal-notice-empty,
  .auth-page-container .legal-notice a {
    color: #fff;
  }

  .auth-page-container .legal-notice-title::after {
    background: #fff;
  }
}
