/* =====================================================
   Yasal sayfalar (terms / refund / privacy) — ortak stil
   Token kaynağı: ihsitl.css (:root + [data-theme=light])
   İki dilli: html[data-page-lang="tr|en"] → [data-lang] blokları
   ===================================================== */

.lg-page {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
}

/* ── Üst bar ── */
.lg-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: 14px clamp(16px, 5vw, 48px);
  background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.lg-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.lg-back:hover { border-color: var(--border-hover); transform: translateX(-3px); }
.lg-back svg { width: 16px; height: 16px; }

.lg-tools { display: flex; align-items: center; gap: 8px; }

.lg-lang {
  display: inline-flex; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
}
.lg-lang button {
  padding: 8px 13px;
  font-family: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text-muted);
  background: transparent; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.lg-lang button:hover { color: var(--text-primary); }
.lg-lang button[aria-pressed="true"] { color: #fff; background: var(--accent); }

.lg-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lg-theme:hover { color: var(--accent); border-color: var(--border-hover); }
.lg-theme .icon-moon { display: none; }
[data-theme="light"] .lg-theme .icon-sun { display: none; }
[data-theme="light"] .lg-theme .icon-moon { display: block; }

/* ── Gövde ── */
.lg-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 62px) clamp(18px, 5vw, 48px) clamp(60px, 9vw, 100px);
}

.lg-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; margin-bottom: 16px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
}
.lg-badge svg { width: 14px; height: 14px; }

.lg-title {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800; line-height: 1.14;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.lg-sub {
  font-size: 1rem; line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.lg-updated {
  display: block;
  font-size: 0.82rem; color: var(--text-dim);
  padding-bottom: clamp(22px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(26px, 4.5vw, 40px);
}

/* Özet kutusu — "uzun metni okumayacaklar" için */
.lg-tldr {
  padding: clamp(18px, 3.4vw, 26px);
  margin-bottom: clamp(28px, 5vw, 44px);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md, 12px);
}
.lg-tldr h2 {
  font-family: var(--font-display, sans-serif);
  font-size: 0.98rem; font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.lg-tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-tldr li {
  position: relative; padding-left: 22px;
  font-size: 0.93rem; line-height: 1.62; color: var(--text-muted);
}
.lg-tldr li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.lg-tldr strong { color: var(--text-primary); font-weight: 700; }
/* Kutu içi bağlantılar da token rengini kullansın (varsayılan mavi koyu temada okunmuyor) */
.lg-tldr a, .lg-callout a, .lg-contact p a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lg-tldr a:hover, .lg-callout a:hover, .lg-contact p a:hover { border-bottom-color: var(--accent); }

/* Bölümler */
.lg-sec { margin-bottom: clamp(28px, 5vw, 42px); scroll-margin-top: 80px; }
.lg-sec h2 {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.32rem);
  font-weight: 800; line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.lg-sec h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.lg-sec p {
  font-size: 0.96rem; line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.lg-sec ul, .lg-sec ol {
  margin: 0 0 14px; padding-left: 20px;
  display: grid; gap: 7px;
}
.lg-sec li {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-muted);
}
.lg-sec li::marker { color: var(--accent); }
.lg-sec strong { color: var(--text-primary); font-weight: 700; }
.lg-sec a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.lg-sec a:hover { border-bottom-color: var(--accent); }
.lg-sec code {
  padding: 2px 6px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.87em;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
}

/* Künye / veri tablosu */
.lg-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.lg-table {
  width: 100%; min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}
.lg-table th, .lg-table td {
  padding: 11px 14px;
  text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.lg-table th {
  font-weight: 700; color: var(--text-primary);
  background: var(--bg-elevated);
  white-space: nowrap;
}
.lg-table td { color: var(--text-muted); line-height: 1.6; }
.lg-table tr:last-child th, .lg-table tr:last-child td { border-bottom: 0; }

/* Vurgu kutusu */
.lg-callout {
  padding: 15px 18px; margin: 0 0 14px;
  font-size: 0.93rem; line-height: 1.68;
  color: var(--text-muted);
  background: var(--accent-muted);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md, 12px);
}
.lg-callout strong { color: var(--text-primary); }

/* İletişim kartı */
.lg-contact {
  padding: clamp(20px, 3.6vw, 28px);
  margin-top: clamp(30px, 5vw, 46px);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
}
.lg-contact h2 { font-family: var(--font-display, sans-serif); font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: var(--text-primary); }
.lg-contact p { font-size: 0.93rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.65; }
.lg-mail {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  font-size: 0.94rem; font-weight: 700;
  color: #fff; background: var(--accent);
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.lg-mail:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.lg-mail svg { width: 17px; height: 17px; }

/* Alt gezinme (3 yasal sayfa birbirine bağlı) */
.lg-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  padding-top: clamp(26px, 4.5vw, 38px);
  margin-top: clamp(30px, 5vw, 44px);
  border-top: 1px solid var(--border);
}
.lg-foot a, .lg-foot span {
  font-size: 0.86rem; color: var(--text-muted); text-decoration: none;
}
.lg-foot a:hover { color: var(--accent); }
.lg-foot a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* ── Dil anahtarı ── */
html[data-page-lang="tr"] [data-lang="en"],
html[data-page-lang="en"] [data-lang="tr"] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lg-back, .lg-mail { transition: none !important; }
}
