/* =========================================================
   YASAL METİNLER — KVKK, Gizlilik, Çerez  (_IndexPartialCustom11.cshtml)
========================================================= */

.tg-page-lead {
    max-width: 660px;
}

.yz-section {
    padding: 64px 0 112px;
    background: #fff;
}

.yz-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}


/* =========================================================
   İÇİNDEKİLER (sol, yapışkan)
========================================================= */

.yz-aside {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yz-toc,
.yz-other {
    padding: 24px;
    background: var(--tg-soft);
    border-radius: 16px;
}

.yz-toc-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tg-subtle);
}

.yz-toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yz-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--tg-body);
    transition: background-color .2s ease, color .2s ease;
}

.yz-toc-link:hover {
    background: #fff;
    color: var(--tg-navy);
}

.yz-toc-link.active {
    background: #fff;
    color: var(--tg-navy);
    font-weight: 600;
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .35);
}

.yz-toc-no {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--tg-icon-bg);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--tg-navy);
}

.yz-toc-link.active .yz-toc-no {
    background: var(--tg-yellow);
    color: var(--tg-ink);
}

.yz-other {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yz-other .yz-toc-title {
    margin-bottom: 10px;
}

.yz-other-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--tg-blue);
}

.yz-other-link:hover {
    color: var(--tg-navy);
}


/* =========================================================
   METİN
========================================================= */

.yz-article {
    max-width: 820px;
}

.yz-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 40px;
    padding: 8px 14px;
    border: 1px solid var(--tg-line);
    border-radius: 999px;
    font-size: 14px;
    line-height: 18px;
    color: var(--tg-muted);
}

.yz-meta time {
    font-weight: 600;
    color: var(--tg-text);
}

.yz-block {
    scroll-margin-top: 110px;
}

.yz-block + .yz-block {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--tg-line);
}

.yz-block-title {
    margin: 0 0 16px;
    font-family: var(--tg-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 30px;
    letter-spacing: -0.5px;
    color: var(--tg-ink);
}

.yz-block-no {
    color: var(--tg-blue);
}

.yz-content > :first-child {
    margin-top: 0;
}

.yz-content > :last-child {
    margin-bottom: 0;
}

.yz-content p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 28px;
    color: var(--tg-body);
}

.yz-content h3 {
    margin: 24px 0 10px;
    font-family: var(--tg-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.36px;
    color: var(--tg-ink);
}

.yz-content strong {
    font-weight: 600;
    color: var(--tg-text);
}

.yz-content a {
    color: var(--tg-blue);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.yz-content ul,
.yz-content ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.yz-content ul li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 25px;
    color: var(--tg-body);
}

.yz-content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tg-blue);
}

/* Numaralı/harfli liste (ör. KVKK md. 11 hakları) */
.yz-content ol {
    counter-reset: yz;
}

.yz-content ol li {
    position: relative;
    padding-left: 34px;
    font-size: 15px;
    line-height: 25px;
    color: var(--tg-body);
    counter-increment: yz;
}

.yz-content ol li::before {
    content: counter(yz, lower-alpha) ")";
    position: absolute;
    left: 0;
    top: 0;
    min-width: 24px;
    font-weight: 700;
    color: var(--tg-navy);
}

/* Tablo (ör. çerez listesi) */
.yz-content table {
    width: 100%;
    margin: 8px 0 20px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--tg-line);
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
    line-height: 21px;
}

.yz-content th,
.yz-content td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--tg-line);
    color: var(--tg-body);
}

.yz-content th {
    background: var(--tg-soft);
    font-weight: 600;
    color: var(--tg-ink);
}

.yz-content tr:last-child td {
    border-bottom: 0;
}

.yz-content td:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--tg-navy);
    white-space: nowrap;
}

/* İletişim kutusu */
.yz-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 22px 24px;
    border-radius: 16px;
    background: linear-gradient(120.93deg, var(--tg-navy) 0%, var(--tg-blue) 100%);
    color: #fff;
}

.yz-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
}

.yz-contact-text {
    margin: 0;
    font-size: 15px;
    line-height: 23px;
    color: rgba(255, 255, 255, .82);
}

.yz-contact-text a {
    margin-left: 4px;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .yz-grid {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .yz-section {
        padding: 40px 0 72px;
    }

    .yz-grid {
        grid-template-columns: minmax(0, 1fr); /* tablo sütunu genişletmesin */
        gap: 32px;
    }

    .yz-aside {
        position: static;
    }

    /* Mobilde diğer metinler en altta */
    .yz-other {
        order: 2;
    }

    .yz-grid > .yz-aside {
        display: contents;
    }

    .yz-toc {
        order: 0;
    }

    .yz-article {
        order: 1;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .yz-meta {
        margin-bottom: 28px;
    }

    .yz-block + .yz-block {
        margin-top: 32px;
        padding-top: 32px;
    }

    .yz-block-title {
        font-size: 20px;
        line-height: 26px;
    }

    .yz-content p {
        font-size: 15px;
        line-height: 26px;
    }

    /* Tablo yatay kaydırılır, sayfa taşmaz */
    .yz-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .yz-content th,
    .yz-content td {
        min-width: 150px;
    }

    .yz-contact {
        align-items: flex-start;
        padding: 20px;
    }
}
