/* ==========================================================================
   PAGES ÉDITORIALES & LÉGALES - MENTIONS LÉGALES & CGV
   Direction artistique Homme Bleu : sobre, typographique, sans artifices
   ========================================================================== */

.legal-main {
  min-height: calc(100vh - var(--header-height));
  padding-top: 48px;
  padding-bottom: 96px;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Lien de retour vers l'accueil */
.legal-back-nav {
  margin-bottom: 32px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-back-link:hover {
  color: var(--text-white);
}

.legal-back-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.legal-back-link:hover svg {
  transform: translateX(-3px);
}

/* Navigation par onglets (bascule sobre entre Mentions et CGV) */
.legal-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 40px;
  padding-bottom: 0;
}

.legal-tab {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding-bottom: 14px;
  position: relative;
  transition: color var(--transition-fast);
}

.legal-tab:hover {
  color: var(--text-offwhite);
}

.legal-tab.is-active {
  color: var(--text-white);
  font-weight: 600;
}

.legal-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text-white);
}

/* En-tête du document */
.legal-header {
  margin-bottom: 32px;
}

.legal-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.5;
}

.legal-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-dark);
  margin: 28px 0 44px;
}

/* Corps éditorial */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section {
  display: flex;
  flex-direction: column;
}

.legal-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.legal-subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-offwhite);
  line-height: 1.4;
  margin-top: 22px;
  margin-bottom: 10px;
}

.legal-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #b5b5b5;
  margin-bottom: 14px;
}

.legal-text:last-child {
  margin-bottom: 0;
}

.legal-text strong {
  font-weight: 600;
  color: var(--text-white);
}

/* Listes à puces classiques et aérées */
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
  padding-left: 0;
  list-style: none;
}

.legal-list-item {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #b5b5b5;
}

.legal-list-item::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.legal-list-item strong {
  font-weight: 600;
  color: var(--text-white);
}

/* Liens textuels discrets */
.legal-link {
  color: var(--text-offwhite);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-pill);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.legal-link:hover {
  color: var(--accent-cyan);
  text-decoration-color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-main {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .legal-title {
    font-size: 28px;
  }

  .legal-section-title {
    font-size: 18px;
  }

  .legal-tabs {
    gap: 16px;
    margin-bottom: 28px;
  }

  .legal-tab {
    font-size: 14px;
    padding-bottom: 10px;
  }

  .legal-divider {
    margin: 20px 0 32px;
  }
}
