/* =========================================================
   Hukuki metinler (hukuki.html)
   Lacivert / beyaz / açık gri · Başlık: Poppins · Metin: Lexend Deca
   ========================================================= */
.hk {
    --hk-navy: #02102a;
    --hk-ink: #1d2433;
    --hk-text: #3b4352;
    --hk-muted: #6b7383;
    --hk-line: #e4e7ec;
    --hk-soft: #f5f6f8;
    --hk-top: var(--thb-header-h, 62px);
    padding-top: var(--hk-top);
    background: #fff;
    font-family: 'Lexend Deca', sans-serif;
    color: var(--hk-ink);
}
.hk *, .hk *::before, .hk *::after { box-sizing: border-box; }
.hk .ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.hk-w { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- Belge sekmeleri ---------- */
.hk-sekme {
    position: sticky;
    top: var(--hk-top);
    z-index: 20;
    border-bottom: 1px solid var(--hk-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}
.hk-sekme > div {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hk-sekme > div::-webkit-scrollbar { display: none; }
.hk-sekme-t,
.hk-sekme a {
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 56px;
    font-size: 14.5px;
    white-space: nowrap;
}
.hk-sekme-t { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--hk-navy); }
.hk-sekme a {
    position: relative;
    font-weight: 500;
    color: var(--hk-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.hk-sekme a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--hk-navy);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hk-sekme a:hover { color: var(--hk-navy); }
.hk-sekme a[aria-current] { color: var(--hk-navy); }
.hk-sekme a::after { display: none; }
.hk-cizgi {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--hk-navy);
    pointer-events: none;
}
.hk-cizgi.is-anim { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* Belge değişince içerik geçişi (sekme yönüne göre kayarak) */
@keyframes hkGir { from { opacity: 0; transform: translateX(var(--yon, 24px)); } to { opacity: 1; transform: none; } }
@keyframes hkBel { from { opacity: 0; } to { opacity: 1; } }
#hkKok.is-gecis .hk-hero .hk-w { animation: hkGir 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
#hkKok.is-gecis .hk-metin { animation: hkGir 0.55s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both; }
#hkKok.is-gecis .hk-yan { animation: hkBel 0.5s 0.1s ease both; }
@media (prefers-reduced-motion: reduce) {
    .hk-cizgi.is-anim { transition: none; }
    #hkKok.is-gecis .hk-hero .hk-w, #hkKok.is-gecis .hk-metin, #hkKok.is-gecis .hk-yan { animation: none; }
}

/* ---------- Başlık alanı ---------- */
.hk-hero {
    padding: 56px 0 52px;
    border-bottom: 1px solid var(--hk-line);
    background: var(--hk-soft);
    text-align: center;
}
.hk-hero-i {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 1px solid var(--hk-line);
    border-radius: 14px;
    background: #fff;
    color: var(--hk-navy);
}
.hk-hero-i .ms { font-size: 24px; }
.hk-hero h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--hk-navy);
}
.hk-meta { margin: 14px 0 0; font-size: 14px; color: var(--hk-muted); }
.hk-taslak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 18px 0 0;
    padding: 6px 14px 6px 10px;
    border: 1px solid #ecdcb5;
    border-radius: 999px;
    background: #fdf8ec;
    font-size: 12.5px;
    color: #7a5a12;
}
.hk-taslak .ms { font-size: 17px; }

/* ---------- İçerik ---------- */
.hk-g {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 104px;
}
.hk-yan { position: sticky; top: calc(var(--hk-top) + 56px + 32px); }
.hk-ic-b { display: none; }
.hk-ic-t { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hk-muted); }
.hk-ic ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--hk-line);
    max-height: calc(100vh - var(--hk-top) - 260px);
    overflow-y: auto;
    scrollbar-width: none;
}
.hk-ic ol::-webkit-scrollbar { display: none; }
.hk-ic a {
    position: relative;
    display: block;
    padding: 7px 0 7px 18px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hk-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.hk-ic a::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: var(--hk-navy);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}
.hk-ic a:hover { color: var(--hk-navy); }
.hk-ic a.is-on { font-weight: 500; color: var(--hk-navy); }
.hk-ic a.is-on::before { transform: scaleY(1); }
.hk-arac { display: grid; gap: 4px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hk-line); }
.hk-arac button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    font: 500 13.5px 'Lexend Deca', sans-serif;
    color: var(--hk-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}
.hk-arac button:hover { color: var(--hk-navy); }
.hk-arac .ms { font-size: 18px; }

.hk-metin { max-width: 760px; }
.hk-metin a, .hk-lnk { color: var(--hk-navy); text-decoration: underline; text-decoration-color: #b9c0cc; text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.hk-metin a:hover, .hk-lnk:hover { text-decoration-color: var(--hk-navy); }
.hk-lnk { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.hk-giris { margin: 0; padding-bottom: 40px; border-bottom: 1px solid var(--hk-line); font-size: 17px; line-height: 1.8; color: var(--hk-text); }
.hk-b { padding-top: 40px; scroll-margin-top: calc(var(--hk-top) + 56px + 20px); }
.hk-b h2 {
    margin: 0 0 18px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(21px, 2.1vw, 26px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--hk-navy);
}
.hk-m { margin: 0 0 14px; font-size: 16px; line-height: 1.8; color: var(--hk-text); }
.hk-m p { margin: 0; }
.hk-m b, .hk-m strong { font-weight: 600; color: var(--hk-ink); }
.hk-m ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0 0 0 4px; list-style: none; }
.hk-m li { position: relative; padding-left: 22px; }
.hk-m li::before { content: ''; position: absolute; left: 6px; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: #b9c0cc; }

.hk-son { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hk-line); }
.hk-son > p { margin: 0 0 20px; font-size: 14.5px; color: var(--hk-muted); }
.hk-diger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hk-metin .hk-diger a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--hk-line);
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--hk-navy);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hk-diger a span:not(.ms) { flex: 1; min-width: 0; }
.hk-diger a .ms:first-child { color: var(--hk-muted); }
.hk-diger a .ms:last-child { font-size: 18px; color: #b4bac5; transition: transform 0.3s ease, color 0.2s ease; }
.hk-metin .hk-diger a:hover { border-color: #c5cbd5; background: var(--hk-soft); }
.hk-diger a:hover .ms:last-child { color: var(--hk-navy); transform: translateX(3px); }

/* ---------- Tablet / mobil ---------- */
@media (max-width: 960px) {
    .hk-g { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
    .hk-yan {
        position: sticky;
        top: calc(var(--hk-top) + 52px);
        z-index: 15;
        margin: 0 -28px;
        padding: 10px 28px;
        border-bottom: 1px solid var(--hk-line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
    }
    .hk-ic-b {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        height: 42px;
        padding: 0 12px 0 14px;
        border: 1px solid var(--hk-line);
        border-radius: 12px;
        background: #fff;
        font: 500 14px 'Lexend Deca', sans-serif;
        color: var(--hk-navy);
        cursor: pointer;
    }
    .hk-ic-b span:not(.ms) { flex: 1; text-align: left; }
    .hk-ic-b em { font-size: 12.5px; font-style: normal; color: var(--hk-muted); }
    .hk-ic-b .ms:last-child { transition: transform 0.3s ease; }
    .hk-yan.is-acik .hk-ic-b .ms:last-child { transform: rotate(180deg); }
    .hk-ic {
        position: absolute;
        left: 28px;
        right: 28px;
        top: calc(100% - 4px);
        padding: 12px 6px 12px 12px;
        border: 1px solid var(--hk-line);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 24px 48px -24px rgba(2, 16, 42, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .hk-yan.is-acik .hk-ic { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s ease; }
    .hk-ic-t, .hk-arac { display: none; }
    .hk-ic ol { max-height: 55vh; border-left: 0; }
    .hk-ic a { padding: 9px 10px; border-radius: 10px; }
    .hk-ic a::before { display: none; }
    .hk-ic a.is-on { background: var(--hk-soft); }
    .hk-metin { max-width: none; padding-top: 32px; }
    .hk-b { scroll-margin-top: calc(var(--hk-top) + 52px + 72px); }
}

@media (max-width: 600px) {
    .hk-w { padding: 0 18px; }
    .hk-sekme > div { gap: 20px; }
    .hk-sekme-t { display: none; }
    .hk-sekme-t, .hk-sekme a { height: 50px; font-size: 13.5px; }
    .hk-hero { padding: 36px 0 34px; }
    .hk-hero-i { width: 42px; height: 42px; margin-bottom: 14px; }
    .hk-meta { font-size: 12.5px; line-height: 1.6; }
    .hk-taslak { font-size: 11.5px; text-align: left; }
    .hk-yan { top: calc(var(--hk-top) + 50px); margin: 0 -18px; padding: 10px 18px; }
    .hk-ic { left: 18px; right: 18px; }
    .hk-giris { padding-bottom: 28px; font-size: 15.5px; line-height: 1.75; }
    .hk-b { padding-top: 30px; }
    .hk-m { font-size: 15px; line-height: 1.75; }
    .hk-diger { grid-template-columns: minmax(0, 1fr); }
    .hk-g { padding-bottom: 72px; }
}

/* ---------- Yazdırma ---------- */
@media print {
    .thb-header, .thb-mobile, .hk-sekme, .hk-yan, .hk-son nav, .site-footer, .cc, .hk-taslak { display: none !important; }
    .hk { padding: 0; }
    .hk-hero { padding: 0 0 16px; background: none; text-align: left; }
    .hk-hero-i { display: none; }
    .hk-g { display: block; padding: 16px 0 0; }
    .hk-metin { max-width: none; }
    .hk-m, .hk-giris { font-size: 11pt; color: #000; }
    .hk-b { break-inside: avoid-page; }
}
