/* Legal pages (terms, privacy, contact) – same design as index */
:root {
    --green-primary: #25D366;
    --green-dark: #128C7E;
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV (same as index) ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 1.4rem;
    text-decoration: none; color: var(--text-primary);
}

.nav-brand img, .logo-img { border-radius: 10px; object-fit: contain; }
.nav-brand .logo-img:not(.logo-img-footer) { width: 32px; height: 32px; }
.logo-img-footer { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }

.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--green-primary); }

.nav-cta {
    background: var(--green-primary) !important;
    color: #000 !important; font-weight: 600 !important;
    padding: 0.5rem 1.2rem; border-radius: 8px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.nav-lang { position: relative; }

.nav-lang-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.6rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    cursor: pointer; font-family: inherit;
}

.nav-lang-btn:hover { color: var(--green-primary); border-color: rgba(255,255,255,0.12); }
.nav-lang-btn .flag { font-size: 1.1rem; }
.nav-lang-btn .arrow { font-size: 0.6rem; margin-left: 0.2rem; transition: transform 0.2s; }
.nav-lang.open .nav-lang-btn .arrow { transform: rotate(180deg); }

.nav-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%; right: 0;
    margin-top: 0.25rem;
    min-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 200;
}

.nav-lang.open .nav-lang-dropdown { display: block; }

.nav-lang-dropdown a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-lang-dropdown a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--green-primary);
}

.nav-lang-dropdown .flag { font-size: 1.1rem; }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
}

/* ── LEGAL PAGE CONTENT ── */
.legal-page {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.legal-doc {
    max-width: 720px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 0.75rem;
}

.legal-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.legal-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--green-primary);
    border-radius: 50%;
}

.legal-doc a {
    color: var(--green-primary);
    text-decoration: none;
}

.legal-doc a:hover { text-decoration: underline; }

.legal-contact-list { margin-top: 0.5rem; }

.legal-ack {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── CONTACT PAGE ── */
.contact-hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.contact-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-card {
    max-width: 480px;
    margin: 0 auto 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
}

.contact-card > div {
    margin-bottom: 1.25rem;
}

.contact-card > div:last-child { margin-bottom: 0; }

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.contact-value, .contact-link {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-link {
    color: var(--green-primary);
    text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.contact-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── FOOTER (same as index) ── */
footer {
    padding: 4rem 2rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--green-primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.04);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── RTL (Arabic) ── */
[dir="rtl"] .nav-lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .nav-lang-btn .arrow { margin-left: 0; margin-right: 0.2rem; }
[dir="rtl"] .legal-list li { padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] .legal-list li::before { left: auto; right: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,15,26,0.97);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
