/* ============================================================================
   mediweb-legal.css — Termeni și condiții / Politică de confidențialitate
   (29.07.2026)

   Text lung, așezat pe o coloană îngustă (mai ușor de citit), cu un cuprins
   lateral lipit de ecran pe desktop. Cuprinsul se construiește din titlurile
   h2 de către scriptul din josul paginii — dacă acesta nu rulează, textul
   rămâne întreg și lizibil, doar fără cuprins.
   ============================================================================ */

body.pp-legal { background: #f1f5f9; }

body.pp-legal section.registration-form {
  background: transparent; box-shadow: none; border-radius: 0;
  padding: 0; width: 100%; margin: 0;
}

.lg-wrap {
  width: min(1160px, 94vw); margin: 24px auto 10px;
  display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start;
}

/* ------------------------------------------------------------------ cuprins */
.lg-toc {
  position: sticky; top: 86px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); max-height: calc(100vh - 110px); overflow-y: auto;
}
.lg-toc:empty { display: none; }
.lg-toc h3 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  color: #94a3b8; margin: 0 0 10px; font-weight: 700;
}
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lgc; }
.lg-toc li { margin-bottom: 2px; }
.lg-toc a {
  display: block; padding: 6px 9px; border-radius: 8px; text-decoration: none;
  color: #475569; font-size: .84rem; line-height: 1.4;
  border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.lg-toc a:hover { background: #f1f5f9; color: #0369a1; }
.lg-toc a.on { background: #eff6ff; color: #0369a1; font-weight: 600; border-left-color: #0ea5e9; }

/* -------------------------------------------------------------------- textul */
.lg-text {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 30px 34px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
  color: #334155; line-height: 1.7; font-size: .95rem;
}
/* Titlul paginii stă în antetul albastru (.pp-pghero din index.php) — a fost
   scos din conținut, ca să nu existe două <h1> pe aceeași pagină. */
.lg-text > p:first-of-type { color: #64748b; margin-bottom: 22px; }
.lg-text h2 {
  font-size: 1.08rem; color: #1e293b; margin: 28px 0 8px; line-height: 1.35;
  padding-top: 14px; border-top: 1px solid #f1f5f9;
  scroll-margin-top: 86px;          /* ca titlul să nu intre sub antetul lipit */
}
.lg-text h2:first-of-type { border-top: 0; padding-top: 0; }
.lg-text h3 { font-size: 1rem; color: #1e293b; margin: 18px 0 6px; }
.lg-text p { margin: 0 0 12px; }
.lg-text ul, .lg-text ol { margin: 0 0 14px; padding-left: 22px; }
.lg-text li { margin-bottom: 6px; }
.lg-text a { color: #0369a1; font-weight: 600; }
.lg-text strong, .lg-text b { color: #1e293b; }
.lg-text table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .9rem; }
.lg-text th, .lg-text td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.lg-text th { background: #f8fafc; color: #334155; }

@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: 1fr; width: min(1160px, 100%); padding: 0 16px; gap: 14px; }
  .lg-toc { position: static; max-height: none; }
  .lg-text { padding: 20px 18px; font-size: .93rem; }
  .lg-text h1 { font-size: 1.25rem; }
}
