/* =========================================================================
   legal.css — pages legales (mentions, confidentialite, cookies, CGU, CGV).
   Reprend les variables du socle : meme typographie et memes couleurs que
   le reste du site, sans le fond sombre des pages de prestation.
   ========================================================================= */

body.page-legal {
  background: var(--blanc);
  color: var(--ink)
}

body.page-legal header {
  mix-blend-mode: normal;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  background: var(--blanc)
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) var(--pad) 96px
}

/* ---- en-tete ---- */
.legal-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 52px
}

.legal-header .badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px
}

.legal-header h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin-bottom: 18px
}

.legal-header p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gris);
  max-width: 620px
}

/* ---- blocs numerotes ---- */
.legal-bloc {
  margin-bottom: 48px
}

.legal-bloc-titre {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px
}

.legal-bloc-num {
  font-size: .78rem;
  font-weight: 500;
  color: var(--gris);
  min-width: 22px;
  font-variant-numeric: tabular-nums
}

.legal-bloc-titre h2 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.012em
}

.legal-bloc-corps {
  padding-left: 38px
}

.legal-article p {
  color: var(--gris);
  line-height: 1.72;
  margin-bottom: 15px
}

.legal-article p:last-child {
  margin-bottom: 0
}

.legal-article strong {
  color: var(--ink);
  font-weight: 500
}

.legal-article a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px
}

.legal-article a:hover {
  opacity: .6
}

/* ---- listes ---- */
.legal-liste {
  list-style: none;
  margin: 4px 0 15px
}

.legal-liste li {
  position: relative;
  padding-left: 22px;
  color: var(--gris);
  line-height: 1.72;
  margin-bottom: 9px
}

.legal-liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 6px;
  height: 1px;
  background: var(--ink)
}

/* ---- tableaux a deux colonnes ---- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2px 0
}

.legal-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: .94rem;
  line-height: 1.6;
  vertical-align: top;
  color: var(--gris)
}

.legal-table tr:last-child td {
  border-bottom: none
}

.legal-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 38%;
  padding-right: 24px
}

/* ---- mention de traduction ---- */
.legal-note {
  margin-top: 56px;
  padding: 16px 20px;
  border-left: 2px solid var(--hairline);
  font-size: .84rem;
  line-height: 1.6;
  color: var(--gris)
}

/* ---- navigation entre pages legales ---- */
.legal-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline)
}

.legal-liens a {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris)
}

.legal-liens a:hover {
  color: var(--ink)
}

@media (max-width:600px) {
  .legal-bloc-corps {
    padding-left: 0
  }

  .legal-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline)
  }

  .legal-table tr:last-child {
    border-bottom: none
  }

  .legal-table td {
    display: block;
    padding: 3px 0;
    border: none
  }

  .legal-table td:first-child {
    width: auto
  }
}
