/* ==========================================================================
   Pages légales — Alison Judalet · Nanalison36 Photographie
   Neutre, lisible, dans l'esprit de l'univers Mariage & Famille (lin/rose).
   ========================================================================== */

:root {
  --lin:      #f2eae0;
  --papier:   #faf6f0;
  --sable:    #ece1d1;
  --sepia:    #453529;
  --sepia-60: rgba(69, 53, 41, .64);
  --rose:     #b97f66;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  background: var(--lin);
  color: var(--sepia);
  line-height: 1.65;
}

a { color: var(--rose); }

::selection { background: var(--rose); color: var(--papier); }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.legal-tete {
  padding: clamp(2.2rem, 6vh, 3.5rem) clamp(1.2rem, 5vw, 2rem) clamp(1.6rem, 4vh, 2.4rem);
  text-align: center;
  border-bottom: 1px solid rgba(185, 127, 102, .25);
}

.legal-retour {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia-60);
  transition: color .3s;
}

.legal-retour:hover, .legal-retour:focus-visible { color: var(--rose); }

.legal-marque {
  font-family: "Italiana", serif;
  font-size: .95rem;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--sepia-60);
}

.legal-titre {
  margin-top: .6rem;
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Sommaire
   -------------------------------------------------------------------------- */

.legal-sommaire {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .9rem;
  padding: 1.4rem 1.2rem;
  background: var(--sable);
  border-bottom: 1px solid rgba(185, 127, 102, .25);
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-sommaire a {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia);
  padding: .4rem .3rem;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}

.legal-sommaire a:hover, .legal-sommaire a:focus-visible {
  color: var(--rose);
  border-color: var(--rose);
}

/* --------------------------------------------------------------------------
   Corps
   -------------------------------------------------------------------------- */

.legal-corps {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.2rem, 5vw, 2rem) clamp(4rem, 8vh, 6rem);
}

.legal-section {
  padding-top: clamp(2.5rem, 6vh, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid rgba(185, 127, 102, .25);
  scroll-margin-top: 4.5rem;
}

.legal-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-section h2 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: .03em;
  margin-bottom: .3rem;
}

.legal-maj {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: .95rem;
  color: var(--sepia-60);
  margin-bottom: 1.6rem;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin: 1.6rem 0 .6rem;
}

.legal-section p {
  font-size: .95rem;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.legal-section ul {
  margin: 0 0 1rem 1.2rem;
  display: grid;
  gap: .4rem;
}

.legal-section li { font-size: .95rem; }

.legal-encadre {
  background: var(--papier);
  border: 1px solid rgba(185, 127, 102, .25);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
  font-size: .92rem;
  display: grid;
  gap: .3rem;
}

.legal-encadre strong { font-weight: 500; }

.legal-alerte {
  background: rgba(196, 106, 90, .1);
  border-left: 2px solid #b3543f;
  padding: .9rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
  font-size: .88rem;
}

/* --------------------------------------------------------------------------
   Pied
   -------------------------------------------------------------------------- */

.legal-pied {
  text-align: center;
  padding: 2rem 1.2rem 3rem;
  border-top: 1px solid rgba(185, 127, 102, .25);
}

.legal-pied a {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sepia-60);
}

.legal-pied a:hover, .legal-pied a:focus-visible { color: var(--rose); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
