/* =====================================================
   Seet Legal Pages v6 — Matching Main Landing Page
   Same dark-navy hero, same orbs, same colors
   ===================================================== */

:root {
    --bg-dark:           #f5f8fc;
    --bg-card:           #ffffff;
    --bg-glass:          rgba(25, 118, 210, 0.04);
    --bg-glass-border:   rgba(25, 118, 210, 0.10);
    --text-primary:      #1a2d4a;
    --text-secondary:    #4a6280;
    --text-muted:        #8a9ab5;
    --accent-primary:    #1976d2;
    --accent-hover:      #1565c0;
    --accent-secondary:  #00bcd4;
    --accent-gradient:   linear-gradient(135deg, #1a3155, #1976d2, #29b6f6);
    --success:           #00b874;
    --warning:           #f59e0b;
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --shadow-sm:  0 2px 8px rgba(26,49,85,0.05);
    --shadow-md:  0 4px 24px rgba(26,49,85,0.07);
    --shadow-lg:  0 8px 40px rgba(26,49,85,0.09);
    --shadow-glow:0 4px 30px rgba(25,118,210,0.12);
    --font-ar:    'Tajawal', sans-serif;
    --font-en:    'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --bg-header:  linear-gradient(135deg, #050d1f 0%, #0a1832 60%, #0c2040 100%);
}

/* ── Keyframes (same as landing) ── */
@keyframes orb-float-1 {
    0%,100% { transform: translate(0,0) scale(1); }
    25%     { transform: translate(28px,-38px) scale(1.09); }
    50%     { transform: translate(-14px,20px) scale(0.94); }
    75%     { transform: translate(32px,10px) scale(1.04); }
}
@keyframes orb-float-2 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(42px,-28px) scale(1.13); }
    66%     { transform: translate(-20px,30px) scale(0.91); }
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shine-sweep {
    0%   { left: -80%; }
    100% { left: 120%; }
}
@keyframes badge-glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(25,118,210,0); }
    50%     { box-shadow: 0 0 16px 4px rgba(25,118,210,0.18); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes brand-glow {
    0%,100% { filter: drop-shadow(0 0 6px rgba(41,182,246,0.55)) drop-shadow(0 0 16px rgba(41,182,246,0.28)); }
    50%     { filter: drop-shadow(0 0 14px rgba(41,182,246,0.90)) drop-shadow(0 0 32px rgba(41,182,246,0.50)); }
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: var(--font-ar);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.75;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.lang-en-mode { direction: ltr; }
body.lang-en-mode .legal-article { font-family: var(--font-en); }
a { text-decoration: none; color: var(--accent-primary); transition: var(--transition); }
a:hover { color: var(--accent-hover); }
ul,ol { list-style: none; }
img { max-width:100%; height:auto; display:block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Language Toggle ── */
body.lang-ar-mode .lang-en,
body.lang-en-mode .lang-ar { display: none !important; }

/* ── Reading Progress ── */
#reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; }
#reading-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #1976d2, #29b6f6, #00bcd4);
    transition: width 80ms linear;
}

/* ═════════════════════════════════════
   NAVBAR — identical to main site
   ═════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: linear-gradient(135deg, rgba(5,13,31,0.82) 0%, rgba(10,24,50,0.78) 55%, rgba(12,32,64,0.74) 100%);
    border-bottom: 1px solid rgba(41,182,246,0.14);
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(5,13,31,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(41,182,246,0.18);
    padding: 12px 0;
    box-shadow: 0 4px 36px rgba(0,0,0,0.30);
}
.navbar-content { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.10)); transition: var(--transition-bounce); }
.navbar-brand:hover .brand-logo { transform: scale(1.12) rotate(4deg); }
.brand-text {
    font-size: 2rem; font-weight: 900;
    background: linear-gradient(135deg, #29b6f6, #00e5ff, #63d0ff);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite, brand-glow 2.5s ease-in-out infinite;
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-ar); font-weight: 700; border: none;
    border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-outline {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ═════════════════════════════════════
   HERO HEADER — dark navy with orbs
   ═════════════════════════════════════ */
.page-header {
    position: relative;
    padding: 170px 0 90px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-header);
}
/* Dot grid */
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(41,182,246,0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none; z-index: 0; opacity: 0.5;
}
/* Orb 1 */
.page-header::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(25,118,210,0.22) 0%, transparent 70%);
    top: -150px; right: -80px; filter: blur(80px);
    animation: orb-float-1 14s ease-in-out infinite;
    pointer-events: none; z-index: 0;
}
/* Orb 2 via extra element */
.page-header .header-orb {
    position: absolute;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,188,212,0.16) 0%, transparent 70%);
    bottom: -80px; left: 8%; filter: blur(70px);
    animation: orb-float-2 18s ease-in-out infinite;
    pointer-events: none; z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }

.section-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(25,118,210,0.12);
    border: 1px solid rgba(25,118,210,0.25);
    border-radius: 50px;
    font-size: 0.9rem; color: #29b6f6; font-weight: 700;
    margin-bottom: 24px;
    animation: badge-glow 3s ease-in-out infinite;
}
.page-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900; line-height: 1.3;
    color: #fff; margin-bottom: 18px;
}
.page-meta {
    font-size: 0.95rem; color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
}
.page-subtitle {
    font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px;
    color: rgba(255,255,255,0.7); line-height: 1.8;
}

/* Language Switch */
.lang-switch {
    display: inline-flex; padding: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
}
.lang-btn {
    border: none; background: transparent;
    padding: 10px 36px; border-radius: 6px;
    font-family: var(--font-ar); font-size: 0.95rem; font-weight: 700;
    color: rgba(255,255,255,0.55); cursor: pointer;
    transition: all 0.25s ease;
}
.lang-btn.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ═════════════════════════════════════
   MAIN CONTENT LAYOUT
   ═════════════════════════════════════ */
.legal-content { padding: 64px 0 100px; }
.legal-layout { display: flex; align-items: flex-start; gap: 48px; }

/* ── TOC Sidebar ── */
.toc {
    width: 260px; flex-shrink: 0;
    position: sticky; top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 0; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.toc-header {
    background: linear-gradient(135deg, #0a1832 0%, #0f2850 100%);
    padding: 18px 24px;
}
.toc-title {
    font-size: 0.9rem; font-weight: 800; color: #fff;
    letter-spacing: 0.03em;
}
.toc-body { padding: 16px 20px; }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list li { border-radius: var(--radius-sm); }
.toc-list a {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.92rem; color: var(--text-secondary);
    padding: 10px 14px; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.toc-list a:hover { background: rgba(25,118,210,0.06); color: var(--text-primary); }
.toc-list a.active {
    background: rgba(25,118,210,0.10);
    color: var(--accent-primary);
    font-weight: 700;
}
.toc-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(25,118,210,0.08);
    color: var(--accent-primary);
    font-size: 0.78rem; font-weight: 800;
    transition: var(--transition);
}
.toc-list a.active .toc-num {
    background: var(--accent-primary);
    color: #fff;
}

/* ── Legal Article ── */
.legal-article {
    flex: 1; min-width: 0;
    animation: fade-up 0.5s ease both;
}

.legal-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.legal-section:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(25,118,210,0.18);
}
.legal-section:last-child { margin-bottom: 0; }

.legal-section-title {
    font-size: 1.5rem; font-weight: 900; color: var(--text-primary);
    margin-bottom: 20px; line-height: 1.4;
    display: flex; align-items: center; gap: 14px;
}
.sec-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: #fff; font-size: 1rem; font-weight: 900;
}
.sec-num::after { content: none; }

.legal-section p { margin-bottom: 16px; font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-sub-title {
    font-size: 1.15rem; font-weight: 800; color: var(--text-primary);
    margin: 28px 0 14px;
    padding-inline-start: 16px;
    border-inline-start: 3px solid var(--accent-primary);
}

/* Lists */
.legal-list { margin-bottom: 16px; }
.legal-list li {
    position: relative; padding-inline-start: 28px;
    margin-bottom: 10px; font-size: 1.02rem; color: var(--text-secondary);
}
.legal-list li::before {
    content: '';
    position: absolute; inset-inline-start: 8px; top: 11px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-primary); opacity: 0.5;
}

/* Notice Boxes */
.notice-box {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px 24px; margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
}
.notice-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.notice-box p { margin: 0; font-size: 0.98rem; color: var(--text-secondary); }

.notice-info {
    background: rgba(25,118,210,0.05);
    border-color: rgba(25,118,210,0.15);
}
.notice-info p { color: var(--accent-hover); }

.notice-success {
    background: rgba(0,184,116,0.05);
    border-color: rgba(0,184,116,0.15);
}
.notice-success p { color: #047857; }

/* Table */
.legal-table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
    font-size: 0.98rem; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--bg-glass-border);
}
.legal-table th, .legal-table td {
    padding: 14px 18px; text-align: start;
    border-bottom: 1px solid rgba(25,118,210,0.08);
}
.legal-table th {
    background: linear-gradient(135deg, #0a1832 0%, #0f2850 100%);
    color: #fff; font-weight: 700;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: rgba(25,118,210,0.03); }

/* Contact Card */
.contact-card {
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg); overflow: hidden;
    margin-top: 28px;
}
.contact-card-head {
    background: linear-gradient(135deg, #0a1832 0%, #0f2850 100%);
    padding: 18px 28px; color: #fff; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    font-size: 1.05rem;
}
.contact-card-head-icon { font-size: 1.2rem; }
.contact-card-body { padding: 28px; background: var(--bg-card); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.contact-label {
    display: block; font-size: 0.82rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 6px;
}
.contact-value { font-weight: 600; font-size: 1.02rem; }

.legal-footer-note {
    margin-top: 48px; padding-top: 20px;
    border-top: 1px solid var(--bg-glass-border);
    font-size: 0.92rem; color: var(--text-muted); text-align: center;
}

/* ═════════════════════════════════════
   FOOTER — dark to match main site
   ═════════════════════════════════════ */
.footer {
    background: linear-gradient(135deg, #050d1f 0%, #0a1832 60%, #0c2040 100%);
    padding: 48px 0 32px;
    text-align: center;
    border-top: 1px solid rgba(41,182,246,0.12);
}
.footer-bottom-only p, .footer-bottom-only a {
    color: rgba(255,255,255,0.5); font-size: 0.9rem;
}
.footer-bottom-only a:hover { color: #29b6f6; }
.footer-links-row {
    display: flex; justify-content: center; gap: 16px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.footer-links-row a.active { color: #29b6f6; }
.footer-links-row span { color: rgba(255,255,255,0.2); }
.footer-bottom-only p { margin-bottom: 6px; }

/* ── Back to top ── */
.back-to-top {
    position: fixed; bottom: 32px; width: 48px; height: 48px;
    background: linear-gradient(135deg, #1a3155, #1976d2);
    color: #fff; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer; font-size: 1.3rem;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
}
body.lang-ar-mode .back-to-top { left: 32px; right: auto; }
body.lang-en-mode .back-to-top { right: 32px; left: auto; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 28px rgba(25,118,210,0.35); }

/* ═════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════ */
@media (max-width: 991px) {
    .legal-layout { flex-direction: column; gap: 24px; }
    .toc {
        width: 100%; position: static;
        border-radius: var(--radius-md);
    }
    .toc-body { padding: 14px 16px; }
    .toc-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .toc-list a {
        padding: 8px 16px;
        border: 1px solid var(--bg-glass-border);
        border-radius: 50px; font-size: 0.85rem;
    }
    .toc-num { width: 22px; height: 22px; font-size: 0.7rem; }
    .legal-section { padding: 32px 28px; }
    .legal-article { padding: 0; }
}
@media (max-width: 767px) {
    .page-header { padding: 140px 0 60px; }
    .page-title { font-size: 2rem; }
    .legal-section { padding: 28px 20px; }
    .legal-section-title { font-size: 1.25rem; }
    .sec-num { width: 32px; height: 32px; font-size: 0.85rem; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .lang-btn { padding: 8px 20px; font-size: 0.85rem; }
    .toc-list a { padding: 6px 12px; font-size: 0.8rem; }
}

/* ── Print ── */
@media print {
    .navbar, .back-to-top, #reading-progress, .lang-switch, .toc { display: none !important; }
    .page-header { background: #fff !important; padding: 40px 0; }
    .page-title { color: #000 !important; }
    .page-meta, .section-badge { color: #333 !important; }
    .legal-section { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
    .footer { display: none; }
}
