/* ==========================================================================
   KRATOS 3D - GİZLİLİK POLİTİKASI (PRIVACY POLICY) STİLLERİ
   Sayfa: Privacy (/privacy, /privacy-policy, /gizlilik-politikasi)
   UI/UX Standartları: Accessible & Ethical, WCAG 2.1 AA/AAA Kontrast, Mobile-First
   ========================================================================== */

/* Ana Kapsayıcı ve Arka Plan */
.priv-page-wrapper {
    min-height: 85vh;
    padding-top: 2rem;
    padding-bottom: 5rem;
    background: radial-gradient(circle at top right, rgba(8, 145, 178, 0.05) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
                #f8fafc;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Üst Başlık ve Rozetler */
.priv-badge-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0e7490;
}

.priv-hero-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
}

/* Dil Değiştirici Buton Grubu */
.priv-lang-switcher {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.priv-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.priv-lang-btn:hover {
    color: #0f172a;
}

.priv-lang-btn.active {
    background: #ffffff;
    color: #0e7490;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Aksiyon Butonları (Yazdır / Paylaş) */
.priv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.priv-action-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Hızlı Gezinme (Sticky Sidebar) */
.priv-sidebar {
    position: sticky;
    top: 5.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.priv-toc-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 0.65rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.priv-toc-link:hover {
    color: #0e7490;
    background: #f0fdfa;
}

.priv-toc-link.active {
    color: #0891b2;
    background: #ecfeff;
    font-weight: 600;
    border-left-color: #0891b2;
}

.priv-toc-num {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    width: 1.25rem;
}

.priv-toc-link.active .priv-toc-num {
    color: #0891b2;
}

/* Mobil Yatay Gezinme Çubuğu (Pill Bar) */
.priv-mobile-nav {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}

.priv-mobile-nav::-webkit-scrollbar {
    display: none;
}

.priv-mobile-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    margin-right: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.priv-mobile-nav-item.active,
.priv-mobile-nav-item:hover {
    background: #0891b2;
    color: #ffffff;
    border-color: #0891b2;
}

@media (max-width: 1023px) {
    .priv-sidebar {
        display: none;
    }
    .priv-mobile-nav {
        display: flex;
    }
}

/* İçerik Bölümleri ve Kartları */
.priv-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    scroll-margin-top: 5.5rem;
    transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
    .priv-section {
        padding: 2.25rem;
    }
}

.priv-section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.priv-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #ecfeff;
    color: #0891b2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.priv-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.015em;
}

@media (min-width: 640px) {
    .priv-section-title {
        font-size: 1.375rem;
    }
}

/* Paragraflar ve Metin Hiyerarşisi */
.priv-p {
    font-size: 0.95rem;
    line-height: 1.68;
    color: #334155;
    margin-bottom: 1rem;
}

.priv-p:last-child {
    margin-bottom: 0;
}

.priv-h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

/* Vurgu ve Önemli Uyarı Kutusu */
.priv-callout {
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 1.25rem 0;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.priv-callout-info {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #115e59;
}

.priv-callout-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.priv-callout-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.priv-callout-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
}

/* Özel Liste Elemanları */
.priv-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem 0;
}

.priv-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569;
}

.priv-list-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: #0891b2;
    margin-top: 0.2rem;
}

/* Veri Tablosu Stilleri */
.priv-table-container {
    overflow-x: auto;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    margin: 1.25rem 0;
}

.priv-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.priv-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
}

.priv-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: top;
}

.priv-table tr:last-child td {
    border-bottom: none;
}

.priv-table tr:hover td {
    background: #f8fafc;
}

/* Dinamik Firebase İçerik Tipografisi */
.priv-dynamic-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
}

.priv-dynamic-heading:first-child {
    margin-top: 0;
}

.priv-dynamic-p {
    font-size: 0.95rem;
    line-height: 1.72;
    color: #334155;
    margin-bottom: 1.15rem;
}

/* Yükleme Skeleton Animasyonu */
.priv-skeleton {
    animation: privPulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: #e2e8f0;
    border-radius: 0.5rem;
}

@keyframes privPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* Yazdırma Modu Stilleri */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .priv-page-wrapper {
        padding: 0 !important;
        background: none !important;
    }
    .priv-sidebar,
    .priv-mobile-nav,
    .priv-lang-switcher,
    .priv-action-btn,
    footer,
    nav,
    header {
        display: none !important;
    }
    .priv-section {
        border: none !important;
        box-shadow: none !important;
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }
    .priv-section-header {
        border-bottom: 2px solid #333 !important;
    }
}
