/* CSS Variables */
:root {
    --primary-color: #1a7f64;
    --primary-dark: #145c49;
    --primary-light: #e8f5f1;
    --secondary-color: #2c5530;
    --accent-color: #d4af37;
    --text-color: #1a1a2e;
    --text-muted: #6b7280;
    --bg-color: #f8faf9;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Main Content */
.main {
    flex: 1;
    padding: 40px 0 60px;
}

.policy-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Policy Header */
.policy-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d1fae5 100%);
    padding: 48px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.policy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.last-updated {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

/* Policy Content */
.policy-content {
    padding: 40px;
}

.policy-section {
    margin-bottom: 40px;
}

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

.policy-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.section-icon {
    font-size: 1.5rem;
}

.policy-section p {
    color: var(--text-color);
    margin-bottom: 16px;
    font-size: 1rem;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 16px 0;
    padding-left: 8px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Highlight Box */
.highlight-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
}

.highlight-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    box-shadow: var(--shadow-sm);
}

.highlight-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.highlight-text p {
    margin: 0;
    color: #78350f;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: var(--bg-color);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Info */
.contact-info {
    margin-top: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Policy Footer */
.policy-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 32px 40px;
    text-align: center;
    color: var(--white);
}

.arabic-blessing {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.policy-footer p:last-child {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-header {
        padding: 36px 24px;
    }

    .policy-header h1 {
        font-size: 2rem;
    }

    .policy-content {
        padding: 24px;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }

    .highlight-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .logo span {
        font-size: 1.25rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .policy-footer {
        padding: 24px;
    }

    .arabic-blessing {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .main {
        padding: 24px 0 40px;
    }

    .policy-header {
        padding: 28px 20px;
    }

    .policy-header h1 {
        font-size: 1.75rem;
    }

    .icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .policy-content {
        padding: 20px;
    }

    .feature-card {
        padding: 20px;
    }
}