/* Legal pages — confidentialité & mentions légales */

body.legal-detail-page {
  background: #0a0f1b !important;
  color: #ececf5;
}

body.legal-detail-page .bg-mist {
  background: #0a0f1b !important;
}

.legal-page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================================
   SHARED
   ========================================================= */
.lg-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #0a0f1b;
  padding-bottom: 3.5rem;
}

.lg-wrap::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(116, 120, 248, 0.2), transparent);
  pointer-events: none;
}

.lg-wrap > * {
  position: relative;
  z-index: 1;
}

.lg-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #f4f0ff 0%, #c9cbff 45%, #7eb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lg-lead {
  margin: 1.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #9ca3af;
}

.lg-lead strong {
  font-weight: 700;
  color: #d1d5db;
}

.lg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 1040px;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.lg-btn-back {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s;
}

.lg-btn-back:hover {
  color: #f1f1fa;
  border-color: rgba(116, 120, 248, 0.5);
}

.lg-btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #9497fa, #7478f8);
  box-shadow: 0 10px 28px -12px rgba(116, 120, 248, 0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.lg-btn-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.lg-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  color: #c9cbff;
  background: rgba(116, 120, 248, 0.14);
  border: 1px solid rgba(116, 120, 248, 0.32);
}

.lg-icon svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   MENTIONS — identity sheet + icon grid + notice
   ========================================================= */
body.legal-page--mentions .lg-hero h1 {
  background: linear-gradient(90deg, #eef0ff 0%, #a9acff 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lgm-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2.5rem;
  text-align: start;
}

.lgm-hero .lg-lead {
  max-width: 34rem;
}

.lgm-sheet {
  margin: 0;
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(116, 120, 248, 0.25);
  box-shadow: 0 40px 70px -40px rgba(116, 120, 248, 0.55);
}

.lgm-sheet > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(116, 120, 248, 0.25);
}

.lgm-sheet > div:last-child {
  border-bottom: 0;
}

.lgm-sheet dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7478f8;
}

.lgm-sheet dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ececf5;
}

.lgm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.lgm-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 34, 70, 0.65), rgba(14, 18, 34, 0.85));
  border: 1px solid rgba(116, 120, 248, 0.2);
  border-top: 3px solid #7478f8;
  transition: transform 0.25s, border-color 0.25s;
}

.lgm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 151, 250, 0.55);
  border-top-color: #9497fa;
}

.lgm-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f1fa;
}

.lgm-card p {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #a3a8b5;
}

.lgm-notice {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 1040px;
  margin: 1rem auto 0;
  padding: 1.6rem;
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(116, 120, 248, 0.28), transparent 70%),
    rgba(18, 22, 44, 0.85);
  border: 1px solid rgba(148, 151, 250, 0.4);
  width: calc(100% - 2.5rem);
}

.lgm-notice h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.lgm-notice p {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: #c0c3d3;
}

@media (max-width: 900px) {
  .lgm-hero {
    grid-template-columns: 1fr;
  }

  .lgm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lgm-notice {
    flex-direction: column;
  }
}

@media (min-width: 640px) {
  .lg-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lgm-card,
  .lg-btn-cta {
    transition: none;
  }
}
