/* ================================
   PAGE : Mentions légales
   ================================ */

/* ---------- Contexte de page ---------- */
.page-legal {
  background: #FFFFFF;               /* fond blanc comme la maquette */
  color: #1D3057;
}

/* ---------- Grille principale ---------- */
/* Objectif :
   LIGNE 1 : "title | ."       -> titre seul à gauche (cellule droite vide)
   LIGNE 2 : "sidebar | content"
*/
.legal.container {
  display: grid;
  grid-template-columns: 356px 1fr;  /* gauche = sommaire, droite = contenu */
  column-gap: 48px;                  /* espace horizontal */
  row-gap: 28px;                     /* espace vertical entre ligne 1 et 2 */
  padding-top: 120px;                /* espace sous le header fixe */
  padding-bottom: 60px;
  align-items: start;
  grid-template-areas:
    "title ."
    "sidebar content";
}

/* ---------- Placement précis ---------- */
.legal.container > h4 {

 grid-area: title;
  margin: 0 0 28px 0;
  font-family: InterTight;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.25;
  color: #1D3057;
  opacity: 0.95;
}


.sidebar {
  grid-area: sidebar;                /* Sommaire, sous le H1 à gauche */
  position: sticky;
  top: 110px;                        /* sous la nav fixée */
  align-self: start;
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 16px;
}

.content {
  grid-area: content;                /* Colonne de droite (toutes les sections) */
  max-width: 760px;                  /* largeur confortable */
}

/* ---------- Sidebar (Sommaire) ---------- */
.sidebar-title {
  display: block;
  font-family: Kodchasan, "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: #1D3057;
  margin-bottom: 12px;
  opacity: 0.85;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: inline-block;
  text-decoration: none;
  font-family: "InterTight";
  font-size: 20px;
  color: #1D3057;
  transition: color 160ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--blue-dark);
}

/* ---------- Contenu (titres & paragraphes) ---------- */
.legal-section { margin: 0 0 44px 0; }

.legal-section h5 {
  margin: 0 0 10px 0;
  font-family: InterTight;
  font-weight: 400;
  font-size: 36px;
  color: #1D3057;
  opacity: 0.95;
}

.legal-section p {
  margin: 0 0 16px 0;
  font-family: InterTight;
  font-size: 16px;
  line-height: 1.7;
  color: #1D3057;
  /* font-weight: 600; */
}

/* Listes éventuelles dans le contenu */
.legal-section ul {
  margin: 0 0 16px 0;
  padding-left: 18px;
}
.legal-section li {
  margin: 6px 0;
  font-family: "InterTight";
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.80);
}

/* On masque les <hr> (non présents dans la maquette) */
.content hr { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .legal.container {
    grid-template-columns: 220px 1fr;
    column-gap: 32px;
    padding-top: 110px;
  }
  .content { max-width: 100%; }
}

@media (max-width: 768px) {
  .legal.container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "sidebar"
      "content";   /* on empile : titre → sommaire → contenu */
    column-gap: 0;
    row-gap: 18px;
  }

  .sidebar {
    position: relative;
    top: 0;
    border-left: none;
    padding-left: 0;
    margin-bottom: 0;
  }

  .sidebar-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .legal.container > h4 { font-size: 30px; }
  .legal-section h4 { font-size: 20px; }
}

@media (max-width: 520px) {
  .legal.container > h4 { font-size: 36px; }
}
