/* ==========================================================================
   Manamaso Lens · Page Conditions d'utilisation
   Thème : violet officiel #7C80FC · animations légères (opacity / transform)
   Layout distinct : timeline verticale numérotée
   ========================================================================== */

/* ── Bannière ───────────────────────────────────────────────────────────── */
.ml-legal-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--ml-border);
  background:
    radial-gradient(ellipse 55% 45% at 80% 0%, rgba(124, 128, 252, 0.14), transparent 70%);
}

.ml-legal-title {
  /* font-family: var(--ml-font-display); */
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--ml-text);
  margin: 12px 0;
}
.ml-legal-title em {
  color: var(--ml-gold);
  font-style: normal;
}

.ml-legal-date {
  font-size: 13px;
  color: var(--ml-text-dim);
  letter-spacing: 0.3px;
}

/* ── Layout 2 colonnes ──────────────────────────────────────────────────── */
.ml-legal-content {
  padding: 44px 0 72px;
}

.ml-legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.ml-legal-intro {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-left: 3px solid var(--ml-gold);
  border-radius: 14px;
  padding: 22px;
  font-size: 14.5px;
  color: var(--ml-text-dim);
  line-height: 1.7;
  animation: mlFadeUp 0.6s ease both;
}

.ml-terms-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ml-border);
}

.ml-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ml-gold);
  text-decoration: none;
  transition: transform 0.25s ease;
}
.ml-terms-link:hover { transform: translateX(4px); }

@keyframes mlFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Timeline verticale ─────────────────────────────────────────────────── */
.ml-legal-body {
  position: relative;
  padding-left: 8px;
}

.ml-legal-body::before {
  content: '';
  position: absolute;
  top: 36px;
  bottom: 10px;
  left: 13px;
  width: 2px;
  background: linear-gradient(180deg, var(--ml-gold), rgba(124, 128, 252, 0.15));
}

.ml-legal-article {
  position: relative;
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 16px;
  padding: 24px 26px 24px 52px;
  margin-left: 28px;
  margin-bottom: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: mlFadeUp 0.6s ease both;
}
.ml-legal-article:last-child { margin-bottom: 0; }
.ml-legal-article:nth-child(2) { animation-delay: 0.08s; }
.ml-legal-article:nth-child(3) { animation-delay: 0.16s; }
.ml-legal-article:nth-child(4) { animation-delay: 0.24s; }
.ml-legal-article:nth-child(5) { animation-delay: 0.32s; }
.ml-legal-article:nth-child(6) { animation-delay: 0.40s; }
.ml-legal-article:nth-child(7) { animation-delay: 0.48s; }

.ml-legal-article:hover {
  transform: translateX(4px);
  border-color: rgba(124, 128, 252, 0.4);
}

/* Pastille numérotée sur la timeline */
.ml-legal-article::before {
  content: attr(data-num);
  position: absolute;
  left: -46px;
  top: 26px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ml-gold);
  color: var(--ml-on-accent);
  /* font-family: var(--ml-font-display); */
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--ml-surface);
  z-index: 1;
}

.ml-legal-h2 {
  /* font-family: var(--ml-font-display); */
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ml-text);
  margin: 0 0 10px;
}

.ml-legal-body p {
  color: var(--ml-text-dim);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}

.ml-legal-body a {
  color: var(--ml-gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.ml-legal-body a:hover { border-bottom-color: var(--ml-gold); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .ml-legal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ml-legal-body::before { display: none; }
  .ml-legal-article::before { display: none; }
  .ml-legal-article {
    margin-left: 0;
    padding-left: 24px;
  }
}
