body { font-family: 'Inter', 'Noto Kufi Arabic', sans-serif; }

/* Custom Global Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--primary, #0a92d7);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end, #00f2fe);
}
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #0a92d7) transparent;
}

:root {
    --header-bg: rgba(245,247,255,0.80);
    --header-brand: #006591;
    --header-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --outline-variant: rgba(0,0,0,0.08);
    --on-surface: #1a2035;
    --on-surface-variant: #4a5472;
    --surface-high: #d9ddf0;
    --primary: #006591;
}

body.dark-mode {
    --header-bg: rgba(0,0,0,0.95);
    --header-brand: #ffffff;
    --header-shadow: 0 4px 20px rgba(0,0,0,0.4);
    --outline-variant: rgba(255,255,255,0.07);
    --on-surface: #dce1fb;
    --on-surface-variant: #bec7d4;
    --surface-high: #23293c;
    --primary: #89ceff;
}

.mn-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1001;
    box-shadow: var(--header-shadow);
    transition: background 0.3s ease;
}

.mn-nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.mn-nav-left img {
    height: 36px;
    width: auto;
}

body.dark-mode .mn-nav-left img {
    content: url('../images/logo white outline.png');
}

body:not(.dark-mode) .mn-nav-left img {
    content: url('../images/logo.png');
}

.mn-nav-brand {
    font-family: 'Inter', 'Noto Kufi Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--header-brand);
    text-transform: uppercase;
    white-space: nowrap;
}

body.dark-mode .mn-nav-brand {
    color: #ffffff;
}

.mn-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mn-theme-btn,
.mn-home-link {
    height: 36px;
    border: none;
    border-radius: 0.5rem;
    background: var(--outline-variant);
    color: var(--on-surface-variant);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Noto Kufi Arabic', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mn-theme-btn {
    width: 36px;
    font-size: 0.95rem;
}

.mn-home-link {
    gap: 0.5rem;
    padding: 0 0.85rem;
    color: var(--on-surface);
}

.mn-theme-btn:hover,
.mn-home-link:hover {
    background: var(--surface-high);
    color: var(--primary);
    text-decoration: none;
}

.legal-page { max-width: 800px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-page h1 {
    font-size: 2.8rem; font-weight: 900; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.legal-page .legal-date { color: var(--text-secondary); margin-bottom: 3rem; font-size: 0.9rem; }
.legal-page h2 {
    font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem;
    color: var(--text-primary); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem;
}
.legal-page p, .legal-page li {
    color: var(--text-secondary); line-height: 1.8; font-size: 1rem; margin-bottom: 1rem;
}
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page a { color: var(--gradient-end); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary);
    text-decoration: none; font-size: 0.9rem; margin-bottom: 2rem; transition: color 0.3s ease; }
.back-link:hover { color: var(--gradient-end); }

@media (max-width: 768px) {
    .mn-nav { padding: 0 1rem; gap: 0.5rem; }
    .mn-nav-brand { display: none; }
    .legal-page { padding: 100px 16px 60px; }
    .legal-page h1 { font-size: 2rem; }
}

