/* ════════════════════════════════════════════════
   NEXUS PUBLIC PAGES — Shared Stylesheet
   Used by: about, contact, terms, privacy-policy,
            faq, contract-analysis, contract-risks, 404
   Version: 2025.04
════════════════════════════════════════════════ */

/* ── Direction-aware font ── */
[dir="rtl"] { --font: 'Cairo', sans-serif; }
[dir="ltr"] { --font: 'Inter', sans-serif; }
* { font-family: var(--font, 'Cairo', sans-serif); box-sizing: border-box; }

/* ── Common body & background ── */
body { background: #f8fafc; color: #0f172a; }

/* ── Shared Navbar ── */
.nx-nav {
    background: #0f172a;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nx-nav-brand {
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    text-decoration: none;
}
.nx-nav-brand .dot { color: #38bdf8; }
.nx-nav-actions { display: flex; gap: 10px; align-items: center; }
.nx-nav-lang {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
}

/* ── Hero banners ── */
.nx-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 48px 0 36px;
    text-align: center;
}
.nx-hero-blue {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    padding: 50px 0 38px;
    text-align: center;
}
.nx-hero h1, .nx-hero-blue h1 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;
    margin: 0 0 8px;
}
.nx-hero-sub {
    opacity: .8;
    font-size: 15px;
    margin-top: 8px;
}

/* ── Document body (terms, privacy) ── */
.nx-doc-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.nx-doc-body h2 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.nx-doc-body p, .nx-doc-body li {
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
}
.nx-doc-body ul, .nx-doc-body ol {
    margin-bottom: 14px;
}
[dir="rtl"] .nx-doc-body ul,
[dir="rtl"] .nx-doc-body ol { padding-right: 20px; }
[dir="ltr"] .nx-doc-body ul,
[dir="ltr"] .nx-doc-body ol { padding-left: 20px; }
.nx-doc-body li { margin-bottom: 6px; }

/* ── Highlight / callout box ── */
.nx-highlight {
    background: #fef9c3;
    padding: 14px 16px;
    border-radius: 6px;
    margin: 14px 0;
    font-size: 14px;
}
[dir="rtl"] .nx-highlight { border-right: 4px solid #f59e0b; }
[dir="ltr"] .nx-highlight { border-left: 4px solid #f59e0b; }

/* ── Contact page ── */
.nx-contact-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.nx-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}
.nx-form-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.nx-form-label { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 5px; }
.nx-form-control,
.nx-form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
}
.nx-form-control:focus,
.nx-form-select:focus {
    border-color: #2563eb;
    box-shadow: none;
    outline: none;
}
.nx-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}
.nx-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.nx-info-item:last-child { border-bottom: none; }
.nx-info-icon {
    width: 40px; height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.nx-info-label { font-size: 12px; color: #64748b; font-weight: 600; }
.nx-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #166534;
}

/* ── About page ── */
.nx-mission-card {
    background: #f0f9ff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #bae6fd;
    margin-bottom: 24px;
}
.nx-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.nx-stat-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.nx-stat-val { font-size: 36px; font-weight: 900; color: #2563eb; }
.nx-stat-lbl { font-size: 13px; color: #64748b; margin-top: 4px; }
.nx-value-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.nx-value-card {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-align: center;
}
@media (max-width: 640px) {
    .nx-stat-grid, .nx-value-row { grid-template-columns: 1fr 1fr; }
}

/* ── FAQ page ── */
.nx-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.nx-faq-question {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
}
.nx-faq-question:hover { background: #f8fafc; }
.nx-faq-answer {
    display: none;
    padding: 0 20px 16px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
}
.nx-faq-item.open .nx-faq-answer { display: block; }
.nx-faq-icon { color: #2563eb; transition: transform .25s; flex-shrink: 0; }
.nx-faq-item.open .nx-faq-icon { transform: rotate(45deg); }

/* ── Shared CTA banner ── */
.nx-cta-banner {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    margin-top: 32px;
}
.nx-cta-banner h2 { font-size: 22px; font-weight: 900; }
.nx-cta-banner p { opacity: .85; margin-bottom: 0; }
.nx-btn-white {
    display: inline-block;
    background: #fff;
    color: #1e40af;
    font-weight: 800;
    padding: 12px 32px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 16px;
    transition: .2s;
}
.nx-btn-white:hover { background: #eff6ff; color: #1e40af; }

/* ── General utility ── */
.nx-muted  { color: #64748b; }
.nx-primary { color: #2563eb; }
.nx-bold    { font-weight: 700; }
.nx-center  { text-align: center; }
.nx-section { padding: 40px 20px 60px; max-width: 860px; margin: 0 auto; }
