:root {
    --primary-color: #10b981;
    /* Emerald 500 */
    --primary-dark: #059669;
    /* Emerald 600 */
    --accent-color: #f59e0b;
    /* Amber 500 */
    --bg-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    z-index: -1;
}

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

/* Header */
.header {
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: -4px;
}

.logo-text .subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 20px;
    opacity: 0.7;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 40px;
    padding-bottom: 80px;
    position: relative;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--primary-dark);
}

.sidebar-link.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    font-weight: 700;
}

/* Policy Content */
.policy-content {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.policy-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.policy-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

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

.policy-section p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.policy-section ul {
    list-style: none;
    padding-right: 20px;
}

.policy-section li {
    position: relative;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.policy-section li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    right: -20px;
}

.policy-section li strong {
    color: var(--text-primary);
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.usage-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.usage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.usage-card h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.usage-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom right, #ecfdf5, #fffbeb);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.contact-btn.email {
    background-color: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.contact-btn.phone {
    background-color: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    text-align: center;
    background: var(--white);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer .powered-by {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        order: -1;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 10px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-link {
        display: inline-block;
        margin-bottom: 0;
        background: var(--bg-color);
    }

    .hero-title {
        font-size: 2rem;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .policy-content {
        padding: 25px;
    }
}