:root {
    --bg: #0b0b0f;
    --primary: #6c42f5;
    --cyan: #89b4fa;
    --text: #ffffff;
    --text-muted: #a6adc8;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

#bg-canvas, .noise-overlay { position: fixed; inset: 0; pointer-events: none; }
#bg-canvas { z-index: 0; }
.noise-overlay { z-index: 1; opacity: 0.05; background: url('https://grainy-gradients.vercel.app/noise.svg'); }

#sidebar-container { position: relative; z-index: 9999; }

.sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    width: 70px;
    background: rgba(15,15,20,0.6); backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 9999; transition: width 0.4s;
    display: flex; flex-direction: column; overflow: hidden;
}
.sidebar.expanded { width: 260px; background: #13131a; }
.toggle-btn { height: 70px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: white; flex-shrink: 0;}
.nav-list { flex: 1; padding-top: 10px; display: flex; flex-direction: column; }
.nav-item { height: 55px; display: flex; align-items: center; text-decoration: none; color: #a6adc8; position: relative; transition: 0.2s; white-space: nowrap; }
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item .icon { min-width: 70px; display: flex; justify-content: center; font-size: 24px; }
.nav-item .label { opacity: 0; transform: translateX(10px); transition: 0.3s; font-weight: 600; }
.sidebar.expanded .nav-item .label { opacity: 1; transform: translateX(0); }
.sidebar-footer { margin-top: auto; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: #1e1e28; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 30px; width: 90%; max-width: 320px; text-align: center; transform: translateY(20px); transition: 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close-btn { background: rgba(255,255,255,0.1); border:none; padding: 12px 0; width: 100%; color: white; border-radius: 12px; cursor: pointer; margin-top: 20px; font-weight: 600; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.lang-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; display: flex; flex-direction: column; gap: 5px; }
.lang-card:hover { border-color: var(--primary); background: rgba(108,66,245,0.15); }
.flag { font-size: 1.5rem; }

@media (max-width: 1024px) {
    .sidebar {
        top: auto; bottom: 20px; left: 50%; transform: translateX(-50%);
        width: 90% !important; max-width: 400px; height: 65px;
        flex-direction: row; border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        background: rgba(20, 20, 25, 0.85);
        overflow: visible;
        justify-content: space-around;
        padding: 0 10px;
    }
    .toggle-btn { display: none; }
    .nav-list { flex-direction: row; padding: 0; justify-content: space-between; width: 100%; align-items: center; }
    .nav-item { height: 100%; flex: 1; justify-content: center; flex-direction: column; gap: 0; }
    .nav-item .label { display: none; }
    .nav-item .icon { min-width: auto; font-size: 26px; margin-bottom: 0; }
    .sidebar > div:last-child { margin: 0 !important; display: flex; align-items: center; }
}

.privacy-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 60px 20px;
    padding-left: 90px;
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto;
}

.back-btn {
    position: fixed; top: 30px; left: 100px; z-index: 20;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-muted);
    font-weight: 600; transition: 0.3s;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}
.back-btn:hover { color: white; background: rgba(255,255,255,0.1); transform: translateX(-5px); }

.header-content { text-align: center; margin-bottom: 50px; }
.page-title { font-size: 3.5rem; font-weight: 900; margin: 0; line-height: 1.1; }
.gradient-text { background: linear-gradient(to right, #ffffff, var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-updated { font-size: 0.9rem; color: var(--text-muted); margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }

.content-glass {
    background: rgba(20, 24, 35, 0.6);
    border: 1px solid rgba(137, 180, 250, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.content-glass h2 {
    font-size: 1.5rem; color: var(--cyan); margin: 40px 0 15px 0;
    display: flex; align-items: center; gap: 10px;
}
.content-glass h2:first-of-type { margin-top: 0; }
.content-glass h2::before { content: ''; display: block; width: 4px; height: 24px; background: var(--cyan); border-radius: 2px; }

.content-glass p {
    font-size: 1.05rem; line-height: 1.7; color: #cdd6f4; margin: 0;
    text-align: justify;
}

@media (max-width: 1024px) {
    .privacy-container { padding-left: 20px; padding-top: 80px; padding-bottom: 120px; }
    .back-btn { position: absolute; top: 20px; left: 20px; }
    .page-title { font-size: 2.2rem; }
    .content-glass { padding: 30px 20px; }
    .content-glass h2 { font-size: 1.3rem; }
    .content-glass p { font-size: 0.95rem; text-align: left; }
}



::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 66, 245, 0.3);
    border-radius: 10px;
    border: 2px solid var(--bg);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}