/* Hukuk sayfaları, hakkımızda ve 404 (26 Ekim 2026, sahibin isteği: "şu
   Apple tasarımına geç bu tarafta da"). ana.css'in üstüne yüklenir; renk,
   yazı yüzü, üst çubuk ve altbilgi oradan gelir. Metin HTML'i ve dizin.js
   kancaları (.hk-ic, .hk-suz, aria-current, data-no) Son Kapak'tan aynen
   kaldı; burada yalnız okuma düzeni var. Ayırma dili ana sayfayla aynı:
   düz --yuzey düzlemleri ve ince --cizgi, gölge yok. */

/* --------------------------------------------------------- sayfa başı */
.sayfa-basi {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hk-basi-metin {
  max-width: 54rem;
}
.sayfa-basi .ic-art {
  display: none;
}
.sayfa-basi h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
.sayfa-basi .alt-metin {
  max-width: 40em;
  margin: 22px 0 0;
  color: var(--ikincil);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}
.guncelleme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 26px 0 0;
  color: var(--ikincil);
  font-size: 13px;
  line-height: 1.6;
}
.hk-ayrac {
  opacity: 0.6;
}
/* Rehber: başlığın üstündeki etiket ve yazı listesindeki tarih. */
.sayfa-basi .teknik {
  margin: 0 0 16px;
  color: var(--marka);
  font-size: 17px;
  font-weight: 600;
}
.sayfa-basi .teknik a {
  color: inherit;
  text-decoration: none;
}
.hukuk p.teknik {
  margin: -12px 0 24px;
  color: var(--ikincil);
  font-size: 14px;
}

/* ------------------------------------------------- dizin ve metin düzeni */
.hk-govde {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--cizgi);
}
.hk-duzen {
  display: grid;
  grid-template-columns: 240px minmax(0, 46rem);
  justify-content: space-between;
  align-items: start;
  gap: 64px;
}
.hk-ic {
  position: sticky;
  top: 80px;
  max-height: calc(100svh - 104px);
  overflow: auto;
  padding: 0 8px 16px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.hk-ic > b {
  display: block;
  padding-bottom: 14px;
  color: var(--ikincil);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hk-ilerleme {
  display: none;
}
.hk-ic ol {
  list-style: none;
  counter-reset: bolum;
  margin: 0;
  padding: 0;
}
.hk-ic li {
  counter-increment: bolum;
}
.hk-ic ol a {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ikincil);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.hk-ic ol a::before {
  content: counter(bolum, decimal-leading-zero);
  color: var(--ikincil);
  font-size: 11px;
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}
.hk-ic ol[data-sayili] a::before {
  content: attr(data-no);
}
.hk-ic ol a:hover {
  color: var(--metin);
  background: var(--yuzey);
}
.hk-ic ol a[aria-current] {
  color: var(--metin);
  background: var(--yuzey);
  font-weight: 600;
}
.hk-suz {
  margin-bottom: 14px;
}
.hk-suz input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--cizgi);
  border-radius: 12px;
  background: var(--yuzey);
  color: var(--metin);
  font: 400 15px/1.4 Inter, system-ui, sans-serif;
}
.hk-suz input::placeholder {
  color: var(--ikincil);
  opacity: 1;
}
.hk-suz input:focus-visible {
  outline: 3px solid var(--marka);
  outline-offset: 2px;
}
.hk-gizli-metin {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hk-bos {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--yuzey);
  color: var(--ikincil);
  font-size: 14px;
  line-height: 1.6;
}
.hk-bos b {
  color: var(--metin);
}
.hk-bos p {
  margin: 6px 0 0;
}

/* --------------------------------------------------------------- metin */
.hukuk {
  min-width: 0;
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}
.hukuk h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 64px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--cizgi);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hukuk h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.hukuk h3 {
  margin: 40px 0 14px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.hukuk :is(p, ul, ol, dl, .tablo-kaydir) {
  margin-top: 0;
  margin-bottom: 20px;
}
.hukuk :is(ul, ol) {
  padding-left: 22px;
}
.hukuk li {
  margin-block: 8px;
  padding-left: 2px;
}
.hukuk li::marker {
  color: var(--ikincil);
}
.hukuk b {
  font-weight: 600;
}
.hukuk a:not(.hk-capa):not(.dugme-poster):not(.dugme-cizgi) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.hukuk .hk-capa {
  flex-shrink: 0;
  min-width: 36px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--ikincil);
  font: 500 18px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.hukuk h2:hover .hk-capa,
.hukuk .hk-capa:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .hukuk .hk-capa {
    opacity: 0.6;
  }
}
.hukuk .yer {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--orman);
  font-weight: 600;
}

/* Özet: iki sütun düz kutucuk. */
.hk-ozet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
}
.hk-ozet > div {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--yuzey);
}
.hk-ozet dt {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.hk-ozet dd {
  margin: 0;
  text-wrap: wrap;
  color: var(--alt-yazi);
  font-size: 15px;
  line-height: 1.6;
}
.hk-not {
  margin-block: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--yuzey);
}
.hk-not p:last-child {
  margin-bottom: 0;
}
.hk-son {
  margin-top: 56px;
  padding: 28px;
  border-radius: 22px;
  background: var(--yuzey);
}
.hukuk .hk-son h3 {
  margin-top: 0;
}
.hk-son p {
  color: var(--alt-yazi);
  font-size: 16px;
}

/* Tablolar: yatay kaydırılır, satırlar ince çizgiyle ayrılır. */
.tablo-kaydir {
  overflow-x: auto;
  border: 1px solid var(--cizgi);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.hukuk table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.hukuk :is(th, td) {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cizgi);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Kısa etiket sütunları kelime ortasından bölünmesin; uzun açıklama ortadaki sütunda. */
.hukuk :is(th, td):first-child {
  min-width: 128px;
}
.hukuk :is(th, td):nth-child(3) {
  min-width: 160px;
}
.hukuk th {
  background: var(--yuzey);
  font-size: 13px;
  font-weight: 600;
}
.hukuk tbody tr:last-child td {
  border-bottom: 0;
}
.hukuk td:first-child {
  font-weight: 600;
}

/* Düğmeler: ana sayfanın hapı ve çizgili eşi. */
.dugme-sirasi,
.dugme-cift {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.dugme-poster,
.dugme-cizgi {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--egri);
}
.dugme-poster,
.dugme-poster:hover {
  background: var(--dugme);
  color: var(--dugme-yazi);
}
.dugme-cizgi,
.dugme-cizgi:hover {
  border: 1px solid var(--cizgi);
  background: var(--kutu-zemin);
  color: var(--metin);
}
@media (hover: hover) {
  .dugme-poster:hover,
  .dugme-cizgi:hover {
    transform: scale(1.03);
  }
}

/* Hakkımızda: iletişim başlığı bir kutu. */
.hakkimizda .hukuk h2#iletisim {
  padding: 24px;
  border: 0;
  border-radius: 18px;
  background: var(--yuzey);
}

/* ------------------------------------------------------------------ 404 */
.not-found {
  min-height: calc(100svh - 56px - 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: clamp(56px, 10vw, 120px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.error-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.error-code {
  color: var(--ikincil);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ic-cloche {
  width: 96px;
  height: 96px;
  color: var(--marka);
}
.not-found h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.not-found p {
  max-width: 30em;
  margin: 16px auto 0;
  color: var(--ikincil);
  font-size: 19px;
  line-height: 1.5;
}
.not-found .dugme-cift {
  justify-content: center;
  margin-top: 28px;
}

/* ---------------------------------------------------------- dar ekran */
@media (max-width: 1023px) {
  .hk-duzen {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .hk-ic {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--cizgi);
  }
  .hk-ic ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .hk-suz {
    max-width: 420px;
  }
}
@media (max-width: 640px) {
  .hk-ic ol,
  .hk-ozet {
    grid-template-columns: minmax(0, 1fr);
  }
  .hukuk {
    font-size: 16px;
  }
  .hukuk h2 {
    margin-top: 48px;
    padding-top: 26px;
  }
  .hukuk h3 {
    font-size: 19px;
  }
  .hk-not,
  .hk-son {
    padding: 20px;
  }
}

/* --------------------------------------------------------------- baskı */
@media print {
  .ust,
  .alt,
  .hk-ic,
  .hk-capa,
  .dugme-sirasi,
  .atla {
    display: none !important;
  }
  .hk-duzen {
    display: block;
  }
  .hk-govde {
    padding: 0;
    border: 0;
  }
  .hukuk {
    font-size: 11pt;
  }
  .hukuk h2 {
    font-size: 18pt;
    margin-top: 24px;
  }
  .hukuk h3 {
    font-size: 14pt;
  }
  .sayfa-basi h1 {
    font-size: 28pt;
  }
  .hk-ozet {
    display: block;
  }
  .tablo-kaydir {
    overflow: visible;
  }
  .hukuk table {
    min-width: 0;
  }
  .hukuk :is(p, li) {
    orphans: 3;
    widows: 3;
  }
}
