/* Yasal metin sayfaları (site/legal/*, site/en/legal/*) — okuma modu.
   scripts/yasal_sayfa_uret.py üretir; bu dosya okuma.css'ten SONRA yüklenir.
   Yapı: beyaz üst şerit (logo + dil bayrakları) → açık yeşil belge başlığı
   (belge geçişi, başlık, kısa açıklama, sürüm) → masaüstünde yapışkan
   içindekiler + 72ch metin sütunu, telefonda tek sütun. Hareket yok. */

.sayfa--yasal { --yasal-ust: 69px; background: #fff; }

/* Atlama bağlantısı: yalnız klavye odağında görünür. */
.yasal-atla { position: absolute; left: 16px; top: -64px; z-index: 60; padding: 10px 14px; border-radius: 10px;
  background: #0B1B33; color: #fff !important; text-decoration: none !important; font-weight: 600; }
.yasal-atla:focus-visible { top: 12px; outline: 2px solid #34D399; outline-offset: 2px; }
main#icerik:focus { outline: none; }

/* Üst şerit: logo solda, bayraklar sağda */
.yasal-baslik { justify-content: space-between; padding-block: 16px; }
.yasal-diller { display: inline-flex; align-items: center; gap: 2px; }
.yasal-diller a { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; opacity: .55; transition: opacity 150ms ease, background-color 150ms ease; }
.yasal-diller a[aria-current="true"] { opacity: 1; }
.yasal-diller a[aria-current="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 2px;
  border-radius: 1px; background: #047857; }
.yasal-diller .flag { display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 27, 51, .14); }
.yasal-diller a:active { transform: translateY(1px); }
.yasal-diller a:focus-visible { outline: 2px solid #34D399; outline-offset: 0; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .yasal-diller a:not([aria-current="true"]):hover { opacity: 1; background: #F0FAF5; }
}

/* Belge başlığı bandı */
.yasal-ust { background: #F0FAF5; border-bottom: 1px solid #DCEFE5; }
.yasal-ust__ic { padding-block: 32px 40px; }
.yasal-belge-nav ul { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.yasal-belge-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px;
  color: #3B4B63 !important; text-decoration: none !important; font-size: 15px; font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease; }
.yasal-belge-nav a[aria-current="page"] { background: #fff; color: #0B1B33 !important; font-weight: 600;
  box-shadow: 0 0 0 1px #D5E6DD, 0 1px 2px rgba(11, 27, 51, .05); }
@media (hover: hover) and (pointer: fine) {
  .yasal-belge-nav a:not([aria-current="page"]):hover { background: rgba(255, 255, 255, .7); color: #0B1B33 !important; }
}
.yasal-ust h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em;
  color: #0B1B33; max-width: 22ch; margin: 0 0 16px; text-wrap: balance; }
.yasal-ozet { font-size: 18px; line-height: 1.6; color: #3B4B63; max-width: 62ch; margin: 0 0 20px; text-wrap: pretty; }
.yasal-surum { margin: 0 0 6px; color: #3B4B63; font-size: 15px; font-variant-numeric: tabular-nums; }
.yasal-dil { margin: 0; font-size: 15px; }
.yasal-dil a { color: #065F46 !important; font-weight: 600; }
.yasal-taslak { margin: 0 0 24px; }

/* Düzen: masaüstünde yapışkan içindekiler + metin sütunu */
.yasal-duzen { display: grid; gap: 40px; padding-block: 40px 96px; }
@media (min-width: 1024px) {
  .yasal-duzen { grid-template-columns: 272px minmax(0, 72ch); gap: 72px; justify-content: start; padding-block: 56px 128px; }
  .yasal-icindekiler { position: sticky; top: calc(var(--yasal-ust) + 24px); align-self: start;
    max-height: calc(100dvh - var(--yasal-ust) - 48px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #CFDDD5 transparent; }
}

/* İçindekiler */
.yasal-icindekiler { font-size: 15px; line-height: 1.45; }
.yasal-icindekiler h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 13px; font-weight: 600; color: #3B4B63;
  letter-spacing: 0; }
.yasal-icindekiler ol { list-style: none; margin: 0; padding: 0; }
.yasal-icindekiler li { margin: 0; }
.yasal-icindekiler a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px;
  color: #3B4B63 !important; text-decoration: none !important; }
.sayfa--yasal main .yasal-icindekiler a { font-weight: 400; }
.sayfa--yasal main .yasal-belge-nav a { font-weight: 500; }
.sayfa--yasal main .yasal-belge-nav a[aria-current="page"] { font-weight: 600; }
.yasal-icindekiler li ol a { padding-left: 22px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .yasal-icindekiler a:hover { background: #F0FAF5; color: #0B1B33 !important; }
}
@media (max-width: 1023.98px) {
  .yasal-icindekiler { padding: 16px 18px 12px; border: 1px solid #E3EAE6; border-radius: 12px; background: #F6F8F7; }
  .yasal-icindekiler li ol { display: none; }
  .yasal-icindekiler a { padding-block: 9px; }
}

/* Metin */
.yasal { min-width: 0; overflow-wrap: break-word; font-size: 17px; line-height: 1.7; color: #0B1B33; }
.yasal p { margin: 0 0 16px; text-wrap: pretty; }
.yasal p[id], .yasal h2, .yasal h3 { scroll-margin-top: calc(var(--yasal-ust) + 24px); }
.yasal h2 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: #0B1B33;
  margin: 56px 0 16px; padding-top: 40px; border-top: 1px solid #E3EAE6; text-wrap: balance; }
.yasal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.yasal-no { margin-right: .3em; color: #047857; font-variant-numeric: tabular-nums; }
.yasal h3 { margin: 32px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: #0B1B33; }
.yasal ul, .yasal ol { margin: 0 0 16px; padding-left: 1.4em; }
.yasal li { margin: 0 0 8px; }
.yasal li::marker { color: #047857; }
.yasal li > ul, .yasal li > ol { margin: 8px 0 0; }
.yasal strong { font-weight: 600; }
.yasal a { color: #065F46 !important; text-decoration: underline !important; text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
.yasal a:hover { text-decoration-thickness: 2px; }
.yasal blockquote { margin: 0 0 20px; padding: 16px 20px; border-radius: 12px; background: #F0FAF5;
  box-shadow: inset 0 0 0 1px #DCEFE5; }
.yasal blockquote p:last-child { margin-bottom: 0; }
.yasal code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: #F6F8F7; }
.yasal pre { overflow-x: auto; padding: 14px; border-radius: 10px; background: #F6F8F7; }
.yasal .tablo-kap { overflow-x: auto; margin: 0 0 20px; border: 1px solid #E3EAE6; border-radius: 12px; }
.yasal .tablo-kap:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
.yasal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.yasal th, .yasal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid #E3EAE6; }
.yasal tr:last-child td { border-bottom: 0; }
.yasal th { background: #F6F8F7; font-weight: 600; color: #0B1B33; }
.yasal td.sayi { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yasal mark.yer-tutucu { background: #FEF3C7; color: #0B1B33; padding: 0 2px; }

/* Altbilgi belge listesi */
.yasal-belgeler { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.yasal-belgeler a { display: inline-block; padding: 10px 0; }
.yasal-belgeler a[aria-current="page"] { color: #0B1B33; font-weight: 600; }

@media (max-width: 600px) {
  .yasal-ust__ic { padding-block: 20px 28px; }
  .yasal-belge-nav ul { margin-bottom: 20px; gap: 4px; }
  .yasal-belge-nav a { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .yasal-icindekiler a { padding-block: 7px; }
  .yasal-ozet { font-size: 17px; }
  .yasal { font-size: 16px; }
  .yasal h2 { margin-top: 44px; padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .yasal-diller a, .yasal-belge-nav a { transition: none; }
}

@media print {
  .header, .footer, .yasal-belge-nav, .yasal-icindekiler, .yasal-dil, .yasal-atla { display: none !important; }
  .yasal-ust { background: none; border: 0; }
  .yasal-duzen { display: block; padding: 0; }
  .yasal { font-size: 11pt; line-height: 1.5; }
  .yasal h2 { break-after: avoid; border-top: 0; padding-top: 0; margin-top: 24pt; }
  .yasal a { color: inherit !important; }
}
