/* yasal/yasal.css */

/* --- FONT & RESET --- */
@font-face {
    font-family: 'Uni Sans';
    src: url('../gorsel/uni-sans.otf') format('opentype');
}

* {
    box-sizing: border-box;
}

::selection {
    color: #fff;
    background-color: #8a0000;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, serif;
    background-color: #080808;
    color: #dcdcdc;
    line-height: 1.6; /* Satır aralığı mobilde daha rahat okuma için biraz kısıldı */
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- LOGO --- */
.logo-container {
    position: fixed; /* Masaüstünde sabit */
    top: 45px;
    left: 50px;
    z-index: 1000;
    width: 65px;
    height: auto;
    cursor: pointer;
    transition: all 0.4s ease;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
}

.logo-container:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 26, 26, 0.4));
}

/* --- HAMBURGER MENÜ BUTONU --- */
.menu-toggle {
    position: fixed; /* Masaüstünde sabit */
    top: 45px;
    right: 50px;
    z-index: 2000;
    width: 50px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.menu-toggle:hover {
    background: transparent; 
    box-shadow: none;
}

.menu-toggle span:nth-child(1) { width: 100%; }
.menu-toggle span:nth-child(2) { width: 70%; } 
.menu-toggle span:nth-child(3) { width: 100%; }

.menu-toggle:hover span:nth-child(2) {
    width: 100%; 
    background-color: #ff1a1a; 
}

/* Menü Açıkken X Dönüşümü */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #ff1a1a;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
    background-color: #ff1a1a;
}

/* --- SIDEBAR --- */
.custom-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    border-left: 2px solid #8a0000;
    backdrop-filter: blur(15px);
    z-index: 1500;
    padding: 100px 30px 40px 30px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-sidebar.active {
    right: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #e0e0e0;
    font-family: 'Uni Sans', sans-serif;
    font-size: 1rem;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-item img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); 
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(138, 0, 0, 0.15);
    border-color: #8a0000;
    color: #fff;
    transform: translateX(-5px);
}

.sidebar-item:hover img {
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* --- SAYFA ÇIKIŞ OVERLAY --- */
.page-exit-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.page-exit-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- ARKA PLAN EFEKTLERİ --- */
.watermark-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at top center, #440000 0%, #050505 85%);
}

.floating-icon {
    position: absolute;
    opacity: 0.15;
    filter: grayscale(100%) contrast(1.2) drop-shadow(0 0 10px rgba(0,0,0,1));
    will-change: transform;
}

/* Animasyonlar */
.icon-terazi {
    top: -5%;
    right: -10%;
    width: 65vw;
    max-width: 750px;
    animation: floatScales 35s ease-in-out infinite alternate;
}
.icon-terazi svg, .icon-terazi path { fill: #1900ff; }

@keyframes floatScales {
    0% { transform: translate(0, 0) rotate(-5deg); }
    100% { transform: translate(-130px, 40px) rotate(2deg); }
}

.icon-cekic {
    bottom: -10%;
    left: 5%;
    width: 55vw;
    max-width: 650px;
    opacity: 0.12;
    animation: floatGavel 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatGavel {
    0% { transform: translate(0, 0) rotate(15deg); }
    100% { transform: translate(40px, -20px) rotate(25deg); }
}

/* --- İÇERİK DÜZENİ --- */
.legal-container {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.official-header {
    text-align: center;
    border-bottom: 2px solid #8a0000;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.main-title {
    font-family: 'Open Sans', serif;
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.sub-title {
    display: block;
    font-family: 'Open Sans', serif;
    font-size: 1.5rem;
    color: #ffc7c7;
    font-weight: 700;
    letter-spacing: 5px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.document-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.legal-section {
    background: #111;
    border: 1px solid #333;
    border-left: 4px solid #8a0000;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.legal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: 'Uni Sans', sans-serif;
    font-size: 1.5rem;
    color: #e0e0e0;
    border-bottom: 1px solid #444;
    padding-bottom: 0.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h2 span {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.1rem;
    color: #ff3333;
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #ccc;
    text-align: justify;
    font-size: 1.05rem;
}

ul {
    list-style: none;
    padding-left: 1rem;
    border-left: 1px solid #333;
    margin-left: 0.5rem;
}

ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    color: #d0d0d0;
}

ul li::before {
    content: "—";
    position: absolute;
    left: -0.5rem;
    color: #8a0000;
}

.security-notice {
    background: rgba(138, 0, 0, 0.1);
    border: 1px solid #8a0000;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #ffcccc;
}

.footer-action {
    text-align: center;
    margin: 4rem 0 3rem 0;
}

.close-btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    font-family: 'Uni Sans', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    background: #8a0000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #8a0000;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================================
   MOBİL VE TABLET UYUMLULUK (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    
    /* Navigasyon elemanlarını akışa bırak (Absolute) 
       Böylece aşağı kaydırınca yukarıda kalıp giderler */
    .logo-container {
        position: absolute; 
        top: 20px;
        left: 20px;
        width: 45px; /* Daha küçük logo */
    }

    .menu-toggle {
        position: absolute; /* Kaydırınca gitsin */
        top: 20px;
        right: 20px;
        width: 35px; /* Daha küçük menü */
        height: 30px;
    }

    /* Çizgileri orantıla */
    .menu-toggle span { height: 2px; }
    
    /* Sidebar genişliği */
    .custom-sidebar {
        width: 85%; /* Ekranın %85'i */
        right: -90%;
        padding-top: 80px; /* Üst boşluğu azalt */
    }

    /* Konteyner ve Fontlar */
    .legal-container {
        margin: 5rem auto 2rem auto; /* Üst boşluk azaltıldı */
        padding: 0 1.2rem;
    }

    .official-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    /* Başlıkları Küçült */
    .main-title {
        font-size: 1.8rem; /* 3rem'den düşürüldü */
        letter-spacing: 1px;
    }

    .sub-title {
        font-size: 0.9rem; /* 1.5rem'den düşürüldü */
        letter-spacing: 2px;
        margin-top: 0.3rem;
    }

    /* İçerik Kutuları */
    .legal-section {
        padding: 1.5rem 1.2rem; /* İç boşluk azaltıldı */
        border-left-width: 3px;
    }

    /* İçerik Fontları */
    h2 {
        font-size: 1.2rem; /* 1.5rem'den düşürüldü */
        flex-direction: column; /* Alt alta olsun */
        align-items: flex-start;
        gap: 5px;
    }
    
    h2 span {
        font-size: 0.7rem;
    }

    h3 {
        font-size: 1rem;
        margin-top: 1.2rem;
    }

    p, ul li, .security-notice {
        font-size: 0.92rem; /* Okunabilir ama kompakt */
        line-height: 1.5;
        text-align: left; /* Mobilde justify bazen boşluk yaratır, sola yaslı daha iyi */
    }

    /* Buton */
    .close-btn {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
        width: 100%; /* Tam genişlik */
        box-sizing: border-box;
    }

    /* Arka Plan İkonları */
    .icon-terazi {
        width: 90vw;
        right: -30%;
        opacity: 0.1; /* Mobilde daha silik */
    }
    .icon-cekic {
        width: 80vw;
        left: -30%;
        bottom: 5%;
        opacity: 0.08;
    }
}