/* ==========================================================================
   MENTIONS LÉGALES — styles spécifiques à la page, complètent css/style.css
   et réutilisent les variables/composants globaux déjà utilisés ailleurs
   sur le site (--cyan, --card-bg, --panel-border, --muted, --muted-2,
   .wrap, polices Orbitron/Rajdhani/Inter). Aucune classe globale n'est
   redéfinie ici : tout ce qui suit est propre à cette page, comme pour
   objectifs.css / tarifs.css / partenaires.css / contact.css / blog.css.

   Page volontairement plus sobre que les pages commerciales : pas
   d'animation pulseGlow sur les cards, pas de gros visuel, pas de CTA
   marketing.
   ========================================================================== */

/* ---------- HERO (centré, sobre : pas d'eyebrow, divider centré) ---------- */
.legal-hero{
  max-width: 640px;
  margin: clamp(28px, 5vh, 48px) auto 7vh;
  text-align: center;
}
.legal-title{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: var(--white);
  margin: 0 0 16px 0;
}
.legal-title .accent{ color: var(--cyan); text-shadow: 0 0 18px rgba(46,230,224,0.4); }
.legal-divider{
  width: 56px;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(46,230,224,0.5);
  margin: 0 auto 18px;
}
.legal-desc{
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- CONTENU : cards sobres, une par section numérotée ---------- */
.legal-content{
  max-width: 900px;
  margin: 0 auto 7vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-card{
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 28px 32px;
}

.legal-card-header{
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.legal-num{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(46,230,224,0.4);
  flex-shrink: 0;
}
.legal-card-title{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}

/* ---------- Grille label / valeur (éditeur, directeur, hébergeur) ---------- */
.legal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}
.legal-col{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.legal-label{
  color: var(--muted);
  flex-shrink: 0;
}
.legal-value{
  color: var(--muted-2);
  font-style: italic;
  text-align: right;
}

/* ---------- Texte libre (propriété intellectuelle, responsabilité) ---------- */
.legal-text{
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}
.legal-text-gap{ margin-top: 12px; }
.legal-placeholder{
  color: var(--muted-2);
  font-style: italic;
}

/* ---------- Texte + bouton discret (données personnelles, cookies) ---------- */
.legal-inline{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.legal-inline .legal-text{ flex: 1; min-width: 0; }

.legal-link-btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan-soft);
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.legal-link-btn svg{ width: 15px; height: 15px; transition: transform .25s ease; }
.legal-link-btn:hover{
  background: rgba(46,230,224,0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(46,230,224,0.3);
}
.legal-link-btn:hover svg{ transform: translateX(3px); }

/* ---------- DOCUMENTS JURIDIQUES ---------- */
.legal-docs{
  max-width: 900px;
  margin: 0 auto 4vh;
  text-align: center;
}
.legal-docs-card{
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 30px 32px;
  animation: pulseGlow 6s ease-in-out infinite;
}
.legal-docs-title{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--white);
  margin: 0 0 14px 0;
}
.legal-docs-divider{
  width: 56px;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(46,230,224,0.5);
  margin: 0 auto 26px;
}
.legal-docs-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.legal-doc-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--card-bg);
  padding: 18px 14px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.legal-doc-item:hover{
  border-color: var(--cyan);
  color: var(--white);
  box-shadow: 0 0 16px rgba(46,230,224,0.2);
}
.legal-doc-item.is-active{
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(46,230,224,0.25);
}
.legal-doc-icon{
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.legal-doc-icon svg{ width: 16px; height: 16px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .legal-grid{ grid-template-columns: 1fr; gap: 10px; }
  .legal-docs-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .legal-card{ padding: 22px 20px; }
  .legal-card-header{ flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .legal-row{ flex-direction: column; align-items: flex-start; gap: 2px; }
  .legal-value{ text-align: left; }
  .legal-docs-grid{ grid-template-columns: 1fr; }
  .legal-doc-item{ justify-content: flex-start; }
}
@media (max-width: 420px){
  .legal-link-btn{ white-space: normal; max-width: 100%; }
}
