/* ============================================================
   Surcharges globales YourDoc
   ============================================================ */

/* ---- Pages légales (Mentions légales, CGU, Confidentialité) ---- */
.legal-page {
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(2, 179, 168, 0.10), transparent 60%),
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 220px);
  padding: 100px 16px 88px;
}

.legal-container {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 20px;
  padding: 52px 52px 48px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -12px rgba(15, 23, 42, 0.12);
}
/* Bandeau d'accent teal en haut de la carte */
.legal-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #02B3A8 0%, #0d9488 100%);
}

/* Titre */
.legal-container h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 6px 0 0;
}
.legal-container h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #02B3A8 0%, #0d9488 100%);
  margin-top: 14px;
}

/* Badge "dernière mise à jour" */
.legal-updated {
  display: inline-block;
  margin: 18px 0 30px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0d9488;
  background: #ecfeff;
  border: 1px solid #cfeeec;
  border-radius: 999px;
}

/* Sous-titres de section avec barre d'accent */
.legal-container h2 {
  position: relative;
  padding-left: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 34px 0 12px;
}
.legal-container h2::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #02B3A8 0%, #0d9488 100%);
}

/* Corps de texte */
.legal-container p,
.legal-container li {
  font-size: 15.5px;
  line-height: 1.78;
  color: #475569;
}
.legal-container p { margin: 0 0 14px; }
.legal-container strong { color: #0f172a; font-weight: 700; }

.legal-container ul {
  list-style: none;
  padding-left: 4px;
  margin: 10px 0 16px;
}
.legal-container li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal-container li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0d9488;
}

/* Liens */
.legal-container a {
  color: #0d9488;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 148, 136, 0.35);
  transition: color .15s ease, border-color .15s ease;
}
.legal-container a:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

/* Placeholders à compléter */
.legal-todo {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px dashed #fdba74;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Arabe : sens de lecture RTL ---- */
.legal-rtl { direction: rtl; text-align: right; }
.legal-rtl h1::after { margin-right: 0; margin-left: auto; }
.legal-rtl h2 { padding-left: 0; padding-right: 16px; }
.legal-rtl h2::before { left: auto; right: 0; }
.legal-rtl ul { padding-left: 0; padding-right: 4px; }
.legal-rtl li { padding-left: 0; padding-right: 22px; }
.legal-rtl li::before { left: auto; right: 4px; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .legal-page { padding: 64px 12px 56px; }
  .legal-container { padding: 32px 22px 30px; border-radius: 16px; }
  .legal-container h1 { font-size: 24px; }
  .legal-container h2 { font-size: 16px; }
  .legal-container p,
  .legal-container li { font-size: 15px; }
}
