/* ==========================================================================
   YASAL METİNLER — gizlilik sözleşmesi, KVKK aydınlatma metni, hesap silme … (mdosc/yasal.php)
   Sade başlık, yapışkan içindekiler, okunaklı metin gövdesi, isteğe bağlı talep formu, yazdırma görünümü.
   ========================================================================== */

.lg-hero { padding-bottom: clamp(36px, 5vw, 56px); }
.lg-hero__inner { display: grid; gap: 18px; justify-items: start; max-width: 860px; }
.lg-hero .page-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }

.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.lg-meta__item {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.lg-meta__item .i { width: 15px; height: 15px; color: var(--navy-700); }
button.lg-meta__item { cursor: pointer; transition: border-color .2s, color .2s; }
button.lg-meta__item:hover { border-color: var(--navy-200); color: var(--ink); }

/* ---------- Düzen: içindekiler + metin ---------- */
.lg-section { padding-top: clamp(24px, 3vw, 40px); }
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: start; gap: clamp(32px, 5vw, 72px); align-items: start; }

.lg-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.lg-toc__title { margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { counter-reset: lg-toc; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.lg-toc li { counter-increment: lg-toc; }
.lg-toc a {
  display: flex; gap: 10px; margin-left: -2px; padding: 7px 12px; border-left: 2px solid transparent;
  color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; transition: color .2s, border-color .2s;
}
.lg-toc a::before { content: counter(lg-toc, decimal-leading-zero); font-variant-numeric: tabular-nums; opacity: .6; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a[aria-current] { border-left-color: var(--red-600); color: var(--ink); }

.lg-others { padding-top: 18px; border-top: 1px solid var(--line); }
.lg-others ul { display: grid; gap: 4px; }
.lg-others a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }
.lg-others a .i { width: 14px; height: 14px; color: var(--muted); transition: transform .2s var(--ease-out); }
.lg-others a:hover { color: var(--navy-700); }
.lg-others a:hover .i { transform: translateX(3px); }

/* ---------- Metin gövdesi ---------- */
.lg-body { counter-reset: lg-h2; font-size: 1.0625rem; line-height: 1.8; color: var(--ink-2); }
.lg-body > * + * { margin-top: 1em; }
.lg-body > p:first-child { font-size: var(--fs-md); color: var(--ink); }
.lg-body h2 {
  counter-increment: lg-h2; display: flex; align-items: baseline; gap: 12px; margin-top: 2.2em; padding-top: 1.4em;
  border-top: 1px solid var(--line); font-size: 1.375rem; letter-spacing: -.01em; color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.lg-body h2::before { content: counter(lg-h2, decimal-leading-zero); font-size: .8em; font-variant-numeric: tabular-nums; color: var(--red-600); }
.lg-body h3 { margin-top: 1.6em; font-size: 1.125rem; color: var(--ink); }
.lg-body ul, .lg-body ol { padding-left: 1.4em; }
.lg-body ul { list-style: disc; }
.lg-body ol { list-style: decimal; }
.lg-body li + li { margin-top: .45em; }
.lg-body li::marker { color: var(--navy-700); font-weight: 700; }
.lg-body strong { color: var(--ink); }
.lg-body a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--navy-200); text-underline-offset: 3px; }
.lg-body a:hover { text-decoration-color: currentColor; }
.lg-body blockquote { padding: 16px 20px; border-left: 4px solid var(--red-600); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-alt); color: var(--ink); }
.lg-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.lg-body th, .lg-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lg-body th { background: var(--bg-alt); color: var(--ink); }

.lg-contact {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 20px 22px;
  border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line);
}
.lg-contact__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--navy-700); }
.lg-contact__icon .i { width: 20px; height: 20px; }
.lg-contact div { flex: 1; min-width: 200px; }
.lg-contact strong { display: block; color: var(--ink); }
.lg-contact p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Talep formu (ör. hesap silme) ---------- */
.lg-request { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.lg-request .form { max-width: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1023px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--bg-alt); }
  .lg-toc ol { border-left: 0; }
  .lg-toc a { margin-left: 0; padding-left: 0; border-left: 0; }
  .lg-others { display: none; }
}

/* ---------- Yazdırma: yalnızca metin ---------- */
@media print {
  .site-header, .mobile-menu, .site-footer, .wa, .mobile-bar, .skip-link, .breadcrumb,
  .page-hero__bg, .lg-toc, .lg-request, .lg-contact, button.lg-meta__item { display: none !important; }
  .page-hero { padding: 0 0 16px; }
  .lg-section { padding: 0; }
  .lg-layout { display: block; }
  .lg-body { font-size: 11pt; line-height: 1.6; color: #000; }
  .lg-body h2 { break-after: avoid; padding-top: .6em; }
  .lg-body a { color: #000; text-decoration: none; }
  .lg-meta__item { border: 0; box-shadow: none; padding: 0; }
}
