/* ======== إعدادات عامة وخطوط ======== */
:root {
    --bg-dark: #0F172A; /* darkBackground */
    --card-bg: #1E293B; /* darkSurface */
    --text-primary: #F8FAFC; /* darkTextPrimary */
    --text-secondary: #CBD5E1; /* darkTextSecondary */
    --accent-cyan: #00C2FF; /* primaryCyan */
    --accent-blue: #007BFF; /* primaryBlue */
    --gradient-start: #1E40AF; /* darkGradientStart */
    --gradient-end: #0EA5E9; /* darkGradientEnd */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    direction: rtl;
    line-height: 1.8; /* زيادة التباعد بين السطور للقراءة */
    font-size: 16px;
    overflow-x: hidden;
}

/* ======== الهيدر والتصميم المتدرج ======== */
.main-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

#logo {
    max-width: 100px;
    margin-bottom: 20px;
    /* تأثير بسيط على اللوجو */
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.1);
}

.main-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ======== حاوية المحتوى والبطاقة ======== */
.container {
    max-width: 900px;
    margin: -60px auto 40px auto; /* سحب البطاقة للأعلى */
    padding: 20px;
    position: relative; /* لضمان بقائها في الأعلى */
}

.policy-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155; /* darkCardBackground */
}

/* ======== أقسام السياسة ======== */
.policy-section {
    margin-bottom: 35px;
    border-bottom: 1px solid #334155; /* darkCardBackground */
    padding-bottom: 25px;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    /* خط ملون تحت العنوان */
    border-right: 4px solid var(--accent-cyan);
    padding-right: 15px;
}

.policy-section p, .policy-section li {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* تنسيق النص المُميز (الذي كان بين **) */
.policy-section strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* تنسيق القوائم النقطية (للأذونات) */
.policy-section ul {
    list-style-type: none;
    padding-right: 20px;
    margin-top: 15px;
}

.policy-section li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
}

.policy-section li::before {
    content: '•'; /* استخدام نقطة كعلامة */
    color: var(--accent-cyan);
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: -5px;
}

/* ======== الفوتر (تذييل الصفحة) ======== */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--card-bg);
    color: #94A3B8;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ======== تأثيرات الأنميشن عند التمرير ======== */
.policy-section {
    /* الإعداد الأولي (مخفي) */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* الكلاس الذي يتم إضافته عند ظهور العنصر */
.policy-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}