/* Pages legales : mentions legales et politique de confidentialite.
   Memes codes que l accueil : fond noir, Manrope pour les titres, Inter pour
   le texte, gris zinc, rouge #ef233c, filets en pointilles, angles droits.
   La nav et le pied de page reprennent les classes Tailwind de style.css ;
   ce fichier ne porte que ce que ces pages ont en propre. */

body { font-family: 'Inter', sans-serif; background-color: black; color: white; }
.font-manrope { font-family: 'Manrope', sans-serif !important; }

/* Halo rouge du haut de page : le degrade de repli de l accueil, sans le
   fond WebGL (aucun script tiers sur ces pages). */
.legal-halo {
  position: absolute; top: 0; left: 0; right: 0; height: 800px; z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(220, 38, 38, .15), transparent 70%);
}

/* Colonne de lecture : environ 70 caracteres par ligne. */
.legal { max-width: 768px; margin: 0 auto; padding: 168px 24px 112px; }

/* Entree du titre : meme courbe que les blocs de l accueil. */
@keyframes legalEntree {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.legal-tete { margin-bottom: 56px; animation: legalEntree .7s cubic-bezier(0.22, 1, 0.36, 1) both; }

.legal-surtitre { margin: 0 0 20px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ef233c; }
.legal-titre {
  margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(36px, 6vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -.025em;
  /* Meme degrade que le titre du hero */
  background: linear-gradient(to bottom, #fff, #fff, rgba(255, 255, 255, .5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-maj { margin: 20px 0 0; font-size: 13px; color: #a1a1aa; }
.legal-intro { margin: 28px 0 0; font-size: 17px; line-height: 1.7; color: #a1a1aa; }

.legal-section { padding: 40px 0; border-top: 1px dashed #27272a; scroll-margin-top: 24px; }
.legal-section h2 { margin: 0 0 18px; font-family: 'Manrope', sans-serif; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.legal-num { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #ef233c; }
.legal-section p { margin: 0 0 14px; font-size: 15px; line-height: 1.75; color: #a1a1aa; }
.legal-section > :last-child { margin-bottom: 0; }
.legal strong { font-weight: 500; color: #fff; }

/* Liens du texte : soulignes (reperables sans la couleur), soulignement rouge. */
.legal a { color: #fff; text-decoration: underline; text-decoration-color: rgba(239, 35, 60, .6); text-underline-offset: 3px; transition: color .3s ease, text-decoration-color .3s ease; }
.legal a:hover { color: #ef233c; text-decoration-color: #ef233c; }
a:focus-visible { outline: 2px solid #ef233c; outline-offset: 3px; }

/* Listes : la puce carree rouge des case studies. Puce en absolu pour que
   le texte, les <strong> et les liens restent dans un seul flux. */
.legal-liste { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-liste li { position: relative; padding-left: 17px; font-size: 15px; line-height: 1.75; color: #a1a1aa; }
.legal-liste li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: #ef233c; }

/* Fiche d identite : cartouche en pointilles, comme les cartes de l accueil. */
.legal-fiche { margin: 0; border: 1px dashed #27272a; background: rgba(24, 24, 27, .4); }
.legal-fiche > div { display: grid; grid-template-columns: 172px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px dashed #27272a; }
.legal-fiche > div:first-child { border-top: 0; }
.legal-fiche dt { padding-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a1a1aa; }
.legal-fiche dd { margin: 0; font-size: 15px; line-height: 1.6; color: #d4d4d8; }

/* Encadre "Suppression de vos donnees" : c est l ancre donnee a Meta, elle
   doit se reperer au premier coup d oeil. */
.legal-encadre { margin-top: 8px; padding: 32px; border: 1px dashed #3f3f46; background: rgba(24, 24, 27, .5); }
.legal-encadre:target { border-color: rgba(239, 35, 60, .5); }

/* Pied de page : page courante en blanc. */
footer a[aria-current="page"] { color: #fff; }

/* Effet relief du grand SYSTEME du pied de page (repris de l accueil). */
.relief-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
}
@supports (animation-timeline: view()) {
  @keyframes systemeReveal {
    from { opacity: .25; transform: translateY(16%); }
    to   { opacity: 1;   transform: translateY(-4%); }
  }
  .relief-text {
    animation: systemeReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }
}

@media (max-width: 640px) {
  .legal { padding: 136px 20px 80px; }
  .legal-section { padding: 32px 0; }
  .legal-section h2 { font-size: 20px; }
  .legal-fiche > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .legal-encadre { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-tete, .relief-text { animation: none; }
}
