/* =====================================================
   سياسة الخصوصية - تطبيق بيبي وماما
   ===================================================== */

/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* الألوان الرئيسية */
    --primary-color: #FF9AA2;
    --primary-dark: #FFB7B2;
    --primary-light: #FFDAC1;
    --accent-color: #E2F0CB;
    
    /* ألوان النص */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-white: #FFFFFF;
    
    /* ألوان الخلفية */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-section: #FFF8FA;
    
    /* ألوان إضافية */
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    
    /* الظلال */
    --shadow-sm: 0 2px 4px var(--shadow-color);
    --shadow-md: 0 4px 8px var(--shadow-color);
    --shadow-lg: 0 8px 16px var(--shadow-color);
    
    /* الانتقالات */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Cairo', 'Tajawal', Tahoma, sans-serif;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF0F3 100%);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    min-height: 100vh;
    padding: 20px;
}

/* ===== الحاوية الرئيسية ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== الهيدر ===== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.app-name {
    font-size: 1.3em;
    font-weight: 600;
    margin: 15px 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.last-update {
    font-size: 0.95em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

/* ===== المحتوى الرئيسي ===== */
main {
    padding: 40px 30px;
}

section {
    margin-bottom: 40px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intro {
    background: var(--bg-section);
    padding: 25px;
    border-radius: 15px;
    border-right: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.intro p {
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* ===== العناوين ===== */
h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    color: var(--primary-dark);
    font-size: 1.3em;
    margin: 25px 0 15px 0;
    padding-right: 15px;
    border-right: 4px solid var(--accent-color);
}

/* ===== القوائم ===== */
ul, ol {
    margin-right: 25px;
    margin-top: 15px;
}

li {
    margin-bottom: 12px;
    padding-right: 10px;
    line-height: 1.7;
    color: var(--text-secondary);
}

ul li {
    list-style: none;
    position: relative;
    padding-right: 25px;
}

ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2em;
}

ol li {
    padding-right: 10px;
}

/* ===== الروابط ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

a:hover::after {
    width: 100%;
}

.email {
    background: var(--bg-section);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin: 5px 0;
    font-size: 1.1em;
}

/* ===== أقسام خاصة ===== */
.contact {
    background: #FFF9FB;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-light);
}

.contact h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-light);
}

.email-contact {
    font-size: 1.15em;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.data-deletion {
    background: #FFFBF5;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #FFD180;
    box-shadow: var(--shadow-sm);
}

.data-deletion h2 {
    color: #FF9800;
    border-bottom-color: #FFD180;
}

.note {
    background: #FFECB3;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid var(--warning-color);
    margin-top: 20px;
    font-weight: 600;
    color: #E65100;
}

.acceptance {
    background: #F1F8F4;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #81C784;
    text-align: center;
}

.acceptance h2 {
    color: #66BB6A;
    border-bottom-color: #81C784;
    justify-content: center;
}

.acceptance p {
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== الفوتر ===== */
footer {
    background: #FFB7B2;
    color: var(--text-white);
    padding: 30px;
    text-align: center;
    border-radius: 30px 30px 0 0;
}

footer p {
    margin: 8px 0;
    opacity: 0.9;
}

.version {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 10px;
}

/* ===== استجابة الشاشات ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .app-name {
        font-size: 1.1em;
    }
    
    main {
        padding: 25px 20px;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .intro,
    .contact,
    .data-deletion,
    .acceptance {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.7em;
    }
    
    .app-name {
        font-size: 1em;
    }
    
    main {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    .email {
        font-size: 0.95em;
        padding: 6px 12px;
    }
}

/* ===== تأثيرات إضافية ===== */
section:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===== طباعة ===== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    header {
        background: var(--primary-color);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    section {
        page-break-inside: avoid;
    }
}
