/* Extracted from returns.html (block 1) — styles only, no logic. */
:root {
    --ink: #0b1a33;
    --navy: #12386f;
    --navy-dark: #071224;
    --brand: #0878f9;
    --brand-hover: #0665d1;
    --brand-light: #eaf3ff;
    --paper: #f8fafc;
    --card: #ffffff;
    --line: #e2e8f0;
    --muted: #64748b;
    --text: #0f172a;
    --subtext: #334155;
    --emerald: #10b981;
    --emerald-bg: #ecfdf5;
    --amber: #f59e0b;
    --amber-bg: #fffbeb;
    --rose: #ef4444;
    --kufi: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
    --shadow-sm: 0 2px 8px rgba(11, 26, 51, 0.04);
    --shadow-md: 0 10px 28px rgba(11, 26, 51, 0.07);
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { background: var(--paper); color: var(--text); line-height: 1.75; font-size: 15px; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-hover); }

.ic {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    vertical-align: -0.2em;
}

/* ==================== شريط التنقل الموحد ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 6%;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 68px;
}

.nav-brand {
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none;
    padding: 2px 0;
}

.navbar .logo img,
.nav-logo img,
.logo img,
.nav-logo,
header img[src*="Daghta"],
nav img[src*="Daghta"] {
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0;
    transition: transform 0.2s ease;
}
.nav-brand:hover .nav-logo { transform: scale(1.02); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 0;
    position: relative;
}
.nav-links a:hover { color: #fff; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-ghost {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-nav-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-nav-cta {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-nav-cta:hover { background: var(--brand-hover); color: #fff; }

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    place-items: center;
    cursor: pointer;
}

/* ==================== هيرو الصفحة ==================== */
.legal-hero {
    background: radial-gradient(900px 450px at 85% 0, rgba(8, 120, 249, 0.35), transparent 70%), linear-gradient(165deg, var(--navy-dark) 0%, var(--ink) 60%, var(--navy) 100%);
    color: #fff;
    padding: 48px 6% 60px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
}
.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: #fff; }

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(8, 120, 249, 0.2);
    border: 1px solid rgba(8, 120, 249, 0.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12.5px;
    color: #60a5fa;
    margin-bottom: 12px;
}

.legal-hero h1 {
    font: 700 clamp(26px, 4vw, 38px)/1.3 var(--kufi);
    margin-bottom: 10px;
}

.legal-hero p {
    color: #cbd5e1;
    font-size: 15.5px;
    max-width: 720px;
    line-height: 1.7;
}

.legal-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}
.legal-meta-item { display: flex; align-items: center; gap: 6px; }

/* ==================== بطاقات المزايا الثلاث البارزة ==================== */
.policy-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.highlight-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-light);
    color: var(--brand);
    flex: none;
}
.highlight-icon.emerald { background: var(--emerald-bg); color: var(--emerald); }
.highlight-icon.amber { background: var(--amber-bg); color: var(--amber); }

.highlight-box strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.highlight-box p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ==================== تخطيط المحتوى ==================== */
.legal-layout {
    max-width: 1140px;
    width: 100%;
    margin: 36px auto 70px;
    padding: 0 6%;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 36px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.legal-sidebar h3 {
    font: 700 15px var(--kufi);
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--subtext);
    font-weight: 500;
    transition: all 0.15s ease;
}
.legal-nav-link:hover {
    background: var(--brand-light);
    color: var(--brand);
    transform: translateX(-3px);
}
.legal-nav-link.active {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
    transition: border-color 0.2s ease;
}
.legal-card:hover { border-color: #cbd5e1; }

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.section-number {
    width: 36px;
    height: 32px !important;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
    font: 700 15px/36px var(--kufi);
    text-align: center;
    flex: none;
}

.section-title {
    font: 700 18px var(--kufi);
    color: var(--ink);
}

.legal-card p {
    color: var(--subtext);
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-card p:last-child { margin-bottom: 0; }

.legal-list {
    list-style: none;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    position: relative;
    padding-inline-start: 22px;
    color: var(--subtext);
    font-size: 14px;
    line-height: 1.7;
}

.legal-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 6px;
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
}
.policy-table th, .policy-table td {
    padding: 12px 16px;
    border: 1px solid var(--line);
    text-align: start;
}
.policy-table th { background: #f8fafc; font-weight: 700; color: var(--text); }
.policy-table tr:hover { background: #fbfcfe; }

.notice-box {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 13.5px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.notice-box.emerald { background: var(--emerald-bg); border: 1px solid #a7f3d0; color: #065f46; }
.notice-box.amber { background: var(--amber-bg); border: 1px solid #fde68a; color: #92400e; }

/* ==================== الفوتر الموحد ==================== */
.page-footer {
    background: var(--ink);
    color: #94a3b8;
    padding: 36px 6% 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    height: auto !important;
    padding: 2px 0 !important;
    overflow: visible;
    text-decoration: none;
}

.footer-logo {
    height: 32px !important;
    width: auto !important;
    max-width: 140px !important;
    max-height: 32px !important;
    margin: 0;





    object-fit: contain;
    display: block;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}
.footer-links a { color: #94a3b8; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px;
    color: #64748b;
}

/* ==================== التجاوب ==================== */
@media (max-width: 900px) {
    .policy-highlights-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
    .legal-sidebar { position: static; }
    .nav-links { display: none; }
    .menu-toggle { display: grid; }
    body.mobile-nav-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        width: 100%;
        background: var(--ink);
        padding: 16px 6%;
        gap: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 600px) {
    .legal-card { padding: 20px 18px; }
    .legal-hero { padding: 36px 6% 44px; }
    .nav-actions .btn-nav-cta { display: none; }
    .nav-brand { padding: 2px 0; }
    .nav-logo {
        height: 32px !important;
        max-width: 140px !important;
        width: auto !important;
        margin: 0;
    }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-links { justify-content: flex-start; }
}
    