/* css/sub/pages/kvkk-docs.css */
/* =========================================
   ÖZEL ÜNYE ÇAKIRTEPE HASTANESİ
   Sayfa: KVKK Alt Metin Sayfaları Ortak Stili
   Versiyon: 1.3 (MOBİL TABLO TAM GENİŞLİK - NEGATİF MARGIN EKLENDİ)
   ========================================= */

/* --- SCROLL HİZALAMA (KURAL 10) --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; 
}

/* -----------------------------------------
   1. MASAÜSTÜ (BASE) - 1201px - 1599px
   ----------------------------------------- */
.kvkk-doc-section {
    padding: 60px 0 100px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 300px);
}

.kvkk-doc-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 60px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.kvkk-doc-wrapper h1 {
    text-align: center;
    color: #00325B; 
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 25px;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.kvkk-doc-wrapper h2 {
    color: #00325B; 
    margin-top: 50px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.kvkk-doc-wrapper h3 {
    color: #333333;
    font-size: 20px;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.kvkk-doc-wrapper h4 {
    color: #444444;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    font-style: italic;
}

.kvkk-doc-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

.kvkk-doc-wrapper ul, 
.kvkk-doc-wrapper ol {
    padding-left: 25px;
    margin-bottom: 25px;
    color: #444444;
    font-size: 16px;
    line-height: 1.8;
}

.kvkk-doc-wrapper li {
    margin-bottom: 10px;
}

.kvkk-check-list { list-style-type: none; padding-left: 0; }
.kvkk-check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.kvkk-check-list li::before {
    content: '✓'; color: #0071CE; position: absolute; left: 0; font-weight: bold; font-size: 18px;
}

.kvkk-toc {
    background-color: #f4f9fd; padding: 30px; border-radius: 6px; margin-bottom: 50px; border-left: 6px solid #0071CE; 
}
.kvkk-toc-title {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 20px; color: #00325B; display: block; text-transform: uppercase;
}
.kvkk-toc ul { list-style-type: none; padding-left: 0; margin-bottom: 0; }
.kvkk-toc ul li { margin-bottom: 12px; }
.kvkk-toc a { text-decoration: none; color: #0071CE; font-weight: 500; transition: color 0.2s ease; }
.kvkk-toc a:hover { text-decoration: underline; color: #00325B; }
.kvkk-toc ul ul { padding-left: 25px; margin-top: 8px; }
.kvkk-toc ul ul li { font-size: 15px; font-weight: 400; }
.kvkk-toc ul ul ul { padding-left: 25px; border-left: 2px solid #daeaf6; }
.kvkk-toc ul ul ul li { font-size: 14px; color: #666666; }

/* TABLO TASARIMI */
.kvkk-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 16px;
    background-color: #ffffff;
}

.kvkk-doc-table th, 
.kvkk-doc-table td {
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    text-align: left;
    color: #444444;
}

.kvkk-doc-table th {
    background-color: #00325B;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.kvkk-doc-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.kvkk-doc-table td:last-child {
    text-align: center;
    font-weight: 600;
    color: #00325B;
}

/* GERİ DÖN LİNKİ */
.kvkk-back-link {
    display: block; text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #f0f0f0;
}
.kvkk-back-link a {
    display: inline-flex; align-items: center; color: #0071CE; font-weight: 600; font-size: 16px; text-decoration: none; transition: color 0.2s ease;
}
.kvkk-back-link a:hover { color: #00325B; }

/* -----------------------------------------
   2. FLUID SCALE (DEV EKRANLAR) - 1600px+
   ----------------------------------------- */
@media (min-width: 1600px) {
    html { scroll-padding-top: 150px; }
    .kvkk-doc-wrapper { max-width: 1200px; padding: 70px 80px; }
    .kvkk-doc-wrapper h1 { font-size: 40px; margin-bottom: 50px; }
    .kvkk-doc-wrapper h2 { font-size: 30px; margin-top: 60px; }
    .kvkk-doc-wrapper h3 { font-size: 24px; }
    .kvkk-doc-wrapper h4 { font-size: 20px; }
    .kvkk-doc-wrapper p, .kvkk-doc-wrapper ul, .kvkk-doc-wrapper ol, .kvkk-doc-table { font-size: 18px; }
    .kvkk-toc { padding: 40px; }
    .kvkk-toc-title { font-size: 24px; }
    .kvkk-toc ul ul li { font-size: 17px; }
    .kvkk-toc ul ul li { font-size: 16px; }
}

/* -----------------------------------------
   3. TABLET - 700px - 1200px
   ----------------------------------------- */
@media (min-width: 700px) and (max-width: 1200px) {
    html { scroll-padding-top: 100px !important; }
    .kvkk-doc-wrapper { margin: 0 30px; padding: 40px; }
    .kvkk-doc-wrapper h1 { font-size: 28px; }
    .kvkk-doc-wrapper h2 { font-size: 22px; }
}

/* -----------------------------------------
   4. MOBİL TELEFONLAR (699px ve Altı) - 10PX KALKANI & TAM GENİŞLİK TABLO
   ----------------------------------------- */
@media screen and (max-width: 699px) {
    
    html { scroll-padding-top: 80px !important; }
    .kvkk-doc-section { padding: 30px 0 60px 0; }

    /* Ana kapsayıcıyı tam 10px boşlukla sınırlarız */
    html body .kvkk-doc-section .sub-page-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    html body .kvkk-doc-wrapper {
        margin: 0 !important; 
        padding: 30px 20px !important; /* <--- Kutunun 20px iç boşluğu */
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Taşmaları engellemek için */
    }

    .kvkk-doc-wrapper h1 { font-size: 24px; padding-bottom: 20px; margin-bottom: 30px; }
    .kvkk-doc-wrapper h2 { font-size: 20px; margin-top: 40px; }
    .kvkk-doc-wrapper h3 { font-size: 18px; }
    .kvkk-doc-wrapper p, .kvkk-doc-wrapper ul, .kvkk-doc-wrapper ol { font-size: 15px; text-align: left; }
    
    .kvkk-toc { padding: 20px; }
    .kvkk-toc-title { font-size: 18px; }

    /* ========================================================
       MOBİL TABLO YAMASI: KUTU DIŞINA TAŞIRMA (Negative Margin)
       ======================================================== */
    .kvkk-doc-table-responsive {
        width: calc(100% + 40px) !important; /* Sol(20) ve Sağ(20) paddingi geri alır */
        margin-left: -20px !important;
        margin-right: -20px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
    }

    .kvkk-doc-table {
        margin-top: 15px;
        margin-bottom: 15px;
        border-left: none !important;
        border-right: none !important;
    }

    /* Sol ve sağ dış çizgileri kaldır, metni hafif içeri it */
    .kvkk-doc-table th:first-child, 
    .kvkk-doc-table td:first-child {
        border-left: none !important;
        padding-left: 15px !important;
    }

    .kvkk-doc-table th:last-child, 
    .kvkk-doc-table td:last-child {
        border-right: none !important;
        padding-right: 15px !important;
    }

    .kvkk-doc-table th, .kvkk-doc-table td { 
        padding: 12px 10px; 
        font-size: 13px; /* Yazılar iyice sığsın diye 1 tık küçültüldü */
    }
}