/* --- CSS Variables & Reset --- */
:root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --text-main: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #38bdf8; /* Electric Blue */
    --primary-hover: #0ea5e9;
    --border: #334155;
    --accent-alert: #f43f5e;
    --accent-success: #10b981;
    --font-main: 'Inter', sans-serif;
    --sidebar-width: 280px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --- Layout --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none !important;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    color: #0f172a;
    border-color: var(--primary);
    text-decoration: none;
}

/* --- Main Content Area --- */
.main-wrapper {
    display: flex;
    margin-top: var(--header-height);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
    padding-right: 2rem;
    display: none;
}

@media (min-width: 900px) {
    .sidebar {
        display: block;
    }
}

.nav-list {
    list-style: none;
    border-left: 1px solid var(--border);
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.nav-link:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
}

.nav-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* --- Content --- */
.content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-body);
    min-width: 0;
}

.policy-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.policy-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Typography & Sections --- */
section {
    margin-bottom: 4rem;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.section-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-number {
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

p {
    margin-bottom: 1.25rem;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-main);
}

li {
    margin-bottom: 0.5rem;
}

.list-legal {
    list-style-type: none;
    padding-left: 0;
}

.list-legal li {
    position: relative;
    padding-left: 1.5rem;
}

.list-legal li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Info Cards --- */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link {
    color: var(--primary);
    font-weight: 500;
    word-break: break-all;
}

/* --- Warning Box --- */
.warning-box {
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #fda4af;
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive Tweaks --- */
@media (max-width: 600px) {
    .header {
        padding: 0 1rem;
    }
    .content {
        padding: 1.5rem 1rem;
    }
    .policy-title {
        font-size: 1.75rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .policy-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
