/* Genel Yapı ve Tipografi */
.legal-page-wrapper {
    background-color: #ffffff;
    color: #1d1d1f;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 120px 40px 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 40px;
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.legal-header p {
    font-size: 17px;
    color: #86868b;
    max-width: 800px;
    /* Metin biraz daha uzun olduğu için genişletildi */
    margin: 0 auto;
    line-height: 1.6;
}

/* Konteyner ve Sol Menü */
.legal-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.legal-sidebar {
    width: 300px;
    /* Yeni eklenen metinlerin başlıkları için genişletildi */
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.legal-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid #d2d2d7;
}

.tab-item {
    padding: 14px 24px;
    cursor: pointer;
    font-size: 15px;
    color: #515154;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.5;
}

.tab-item:hover {
    color: #1d1d1f;
}

.tab-item.active {
    color: #1d1d1f;
    font-weight: 600;
}

.tab-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #1d1d1f;
}

/* Sağ İçerik Alanı ve Hukuki Metin Şekillendirmesi */
.legal-content {
    flex-grow: 1;
    min-width: 0;
    padding-left: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1d1d1f;
    line-height: 1.3;
}

.tab-pane h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.tab-pane p,
.tab-pane li {
    font-size: 15px;
    line-height: 1.7;
    color: #333336;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 950px;
}

.tab-pane ul {
    padding-left: 24px;
    margin-bottom: 25px;
}

.tab-pane strong {
    color: #111111;
}

/* Kurumsal Bilgi Kutusu */
.company-info {
    background-color: #f5f5f7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    max-width: 950px;
}

.company-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #515154;
    text-align: left;
}

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

/* Mobil Uyumluluk */
@media (max-width: 1024px) {
    .legal-container {
        flex-direction: column;
        gap: 40px;
    }

    .legal-sidebar {
        width: 100%;
        position: static;
    }

    .legal-tabs {
        border-left: none;
        border-bottom: 1px solid #d2d2d7;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 1px;
    }

    .tab-item.active::before {
        left: 0;
        top: auto;
        bottom: -1px;
        width: 100%;
        height: 2px;
    }

    .legal-content {
        padding-left: 0;
    }

    .tab-pane p,
    .tab-pane li {
        text-align: left;
    }
}