:root {
    --primary-purple: #502C84;
    --light-purple: #F4E5FF;
    --secondary-orange: #FF781F;
    --secondary-cyan: #00D1D1;
    --dark-gray: #1a1a1a;
    --medium-gray: #666;
    --light-gray: #f8f9fa;
    --container-pad: max(6%, calc((100% - 1440px) / 2));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: none; scroll-behavior: smooth; }
::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
body {
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
    background: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Header (identical system to Home_Page.html) ===== */
header {
    background: transparent;
    padding: 1rem var(--container-pad);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    box-shadow: none;
    position: fixed !important;
    top: 0; right: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
header.scrolled .nav-links a { color: var(--dark-gray); }
header.scrolled .nav-links a::after { background: var(--primary-purple); }
header.scrolled .jzl-logo-white { opacity: 0; visibility: hidden; }
header.scrolled .jzl-logo-colored { display: block !important; opacity: 1; visibility: visible; }
header.scrolled .mobile-menu-btn { color: var(--primary-purple); }

.jzl-logo-container { display: flex; align-items: center; position: relative; height: 40px; }
.jzl-img {
    height: 90px; width: auto; display: block;
    transition: all 0.4s ease; position: absolute; top: 50%; transform: translateY(-50%);
}
.jzl-logo-white { opacity: 1; visibility: visible; display: block; }
.jzl-logo-colored { opacity: 0; visibility: hidden; display: none; }
.jzl-img:hover { transform: translateY(-50%) scale(1.05); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; justify-self: center; transform: translateX(-45px); }
.nav-links a {
    color: white; text-decoration: none; font-size: 1.02rem; font-weight: 600;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px;
    background: white; transition: width 0.3s;
}
.nav-links a:hover { color: var(--secondary-orange); }
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--secondary-orange); color: white; padding: 8px 16px;
    border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-decoration: none;
    white-space: nowrap; box-shadow: 0 6px 18px rgba(255,120,31,0.35); transition: all 0.3s ease;
}
.btn-header-cta:hover { background: #e66b1a; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,120,31,0.45); }

.nav-translate-btn {
    background-color: var(--light-gray); color: var(--primary-purple);
    border: 2px solid transparent; padding: 8px 16px; border-radius: 50px;
    font-family: inherit; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease;
}
.nav-translate-btn i { font-size: 1rem; }
.nav-translate-btn:hover {
    background-color: var(--primary-purple); color: white; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 44, 180, 0.2);
}

.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 1.4rem; color: white;
    cursor: pointer; padding: 6px; align-items: center; justify-content: center;
}
.mobile-menu {
    display: none; flex-direction: column; gap: 0.3rem; position: fixed;
    top: 80px; right: 0; left: 0; background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 1.2rem 6%; z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    color: var(--dark-gray); text-decoration: none; font-weight: 600; font-size: 1rem;
    padding: 0.7rem 0; border-bottom: 1px solid #eee;
}
.mobile-menu .btn-header-cta { text-align: center; justify-content: center; border-bottom: none; margin: 0.4rem 0 0; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .header-actions .btn-header-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .jzl-img { height: 55px !important; }
    .nav-translate-btn { padding: 6px 12px; font-size: 0.8rem; }
    .header-actions { gap: 8px; }
}
@media (max-width: 480px) {
    .jzl-img { height: 48px !important; }
    .nav-translate-btn { padding: 5px 10px; font-size: 0.75rem; }
    .nav-translate-btn span { display: none; }
}

/* ===== Page intro banner ===== */
.page-header {
    background: linear-gradient(135deg, #502C84 0%, #3d2166 100%);
    color: white;
    padding: 9.5rem var(--container-pad) 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-grid-pattern {
    position: absolute; inset: 0; z-index: 0; opacity: 0.07; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.9) 1px, transparent 1px);
    background-size: 44px 44px;
}
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-glow-orange { top: -10rem; left: -10rem; width: 32rem; height: 32rem; background: rgba(255,120,31,0.3); filter: blur(120px); }
.hero-glow-cyan { bottom: -10rem; right: -8rem; width: 28rem; height: 28rem; background: rgba(255,255,255,0.1); filter: blur(120px); }
.page-header h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 0.7rem; position: relative; z-index: 2; }
.page-header h1 i { color: var(--secondary-orange); margin-left: 10px; }
.page-header p { font-size: 1rem; opacity: 0.9; position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.page-header .updated-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; position: relative; z-index: 2;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px;
    padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
}

.container { max-width: 880px; margin: 0 auto; padding: 2rem var(--container-pad) 4rem; }

/* ===== Entity info card ===== */
.entity-card { background: white; border: 1px solid #e8e8e8; border-radius: 16px; padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.entity-card table { width: 100%; border-collapse: collapse; }
.entity-card td { padding: 8px 0; font-size: 0.92rem; border-bottom: 1px solid var(--light-gray); }
.entity-card tr:last-child td { border-bottom: none; }
.entity-card td:first-child { color: var(--medium-gray); font-weight: 600; width: 45%; }
.entity-card td:last-child { color: var(--dark-gray); font-weight: 700; }
[dir="rtl"] .entity-card td:last-child { text-align: left; }
[dir="ltr"] .entity-card td:last-child { text-align: right; }

/* ===== Table of contents ===== */
.legal-toc { background: white; border: 1px solid #e8e8e8; border-radius: 16px; padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; }
.legal-toc h2 { color: var(--primary-purple); font-size: 1.05rem; margin-bottom: 0.9rem; }
.legal-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-size: 0.86rem; }
.legal-toc li::before { content: counter(toc) ". "; color: var(--secondary-orange); font-weight: 700; }
.legal-toc a { color: var(--dark-gray); text-decoration: none; }
.legal-toc a:hover { color: var(--primary-purple); text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ol { grid-template-columns: 1fr; } }

/* ===== Legal sections ===== */
.legal-intro { background: white; border: 1px solid #e8e8e8; border-radius: 16px; padding: 1.6rem 1.7rem; margin-bottom: 1.3rem; }
.legal-intro p { margin-bottom: 0.9rem; font-size: 0.94rem; color: var(--dark-gray); }
.legal-intro p:last-child { margin-bottom: 0; }

.legal-section { background: white; border-radius: 16px; padding: 1.6rem 1.7rem; margin-bottom: 1.1rem; border: 1px solid #e8e8e8; scroll-margin-top: 110px; }
.legal-section h2 { color: var(--primary-purple); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.9rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--light-purple); }
.legal-section h3 { color: var(--dark-gray); font-size: 0.98rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.legal-section p { font-size: 0.92rem; line-height: 1.85; margin-bottom: 0.8rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0.4rem 0 0.9rem; padding-inline-start: 20px; }
.legal-section li { font-size: 0.92rem; line-height: 1.8; margin-bottom: 5px; }
.legal-section strong { color: var(--primary-purple); }

.contact-card {
    background: linear-gradient(135deg, #502C84 0%, #3d2166 100%);
    color: white; border-radius: 22px; padding: 2.4rem 1.6rem; text-align: center;
    margin-top: 1.6rem; position: relative; overflow: hidden;
}
.contact-card h3, .contact-card p, .contact-card .contact-info { position: relative; z-index: 2; }
.contact-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.contact-card p { opacity: 0.9; margin-bottom: 1.4rem; font-size: 0.9rem; }
.contact-info { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-item { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); padding: 12px 20px; border-radius: 14px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: white; font-weight: 700; transition: all 0.3s; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.2); }
.contact-item:hover { background: white; color: var(--primary-purple); transform: translateY(-2px); }

/* ===== Footer (identical to Home_Page.html) ===== */
footer { background: #0a0a0a; color: white; padding: 4rem var(--container-pad) 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-logo-box { margin-bottom: 25px; display: block; }
.footer-img-white { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); transition: opacity 0.3s ease; }
.footer-img-white:hover { opacity: 0.8; cursor: pointer; }
.footer-about p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 2rem; }
.social-links { display: flex; gap: 1rem; }
.social-link {
    width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    text-decoration: none !important; transition: all 0.3s; margin-right: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}
.social-link:hover { background: var(--secondary-orange); border-color: var(--secondary-orange); transform: translateY(-3px); }
.footer-section h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; color: white; }
.footer-section a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 0.8rem; transition: color 0.3s; font-size: 1.05rem; }
.footer-section a:hover { color: var(--secondary-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.5); }

.back-to-top {
    position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px;
    background: var(--primary-purple); color: white; border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 15px rgba(80, 44, 132, 0.4);
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 9999;
}
[dir="ltr"] .back-to-top { left: auto; right: 30px; }
.back-to-top:hover { background: var(--secondary-orange); transform: translateY(-5px); box-shadow: 0 6px 20px rgba(255, 120, 31, 0.4); }
.back-to-top.show { opacity: 1; visibility: visible; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .page-header { padding: 7rem 6% 3rem; }
    .page-header h1 { font-size: 1.4rem; }
    .page-header p { font-size: 0.85rem; }
    .legal-section, .legal-intro, .legal-toc, .entity-card { padding: 1.2rem 1.1rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

.cls-1{fill:#ff781f;}.cls-2{fill:#502e83;}
.wht-1{fill:#fff;}.wht-2{fill:#ff781f;}
