/* ==========================================================
   MAKTABA QASIMIA — Privacy Policy
   Color palette (extracted from logo, used as similar tones):
   - Deep Green:   #0f5132
   - Forest Green: #1a6e4a
   - Soft Sage:    #e8f1ec
   - Gold:         #c9a14a
   - Light Gold:   #e7d6a8
   - Cream BG:     #fbf9f3
   - Ink Text:     #1f2a24
   ========================================================== */

:root {
    --color-primary: #0f5132;
    --color-primary-soft: #1a6e4a;
    --color-primary-bg: #e8f1ec;
    --color-accent: #c9a14a;
    --color-accent-soft: #e7d6a8;
    --color-bg: #fbf9f3;
    --color-card: #ffffff;
    --color-text: #1f2a24;
    --color-muted: #5a6660;
    --color-divider: #e6e1d2;
    --shadow-sm: 0 2px 8px rgba(15, 81, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 81, 50, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 81, 50, 0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Amiri', 'Inter', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(201, 161, 74, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(15, 81, 50, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* ============ HEADER ============ */
.site-header {
    background: linear-gradient(135deg, #0f5132 0%, #1a6e4a 100%);
    color: #fff;
    padding: 22px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(201, 161, 74, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 50%, rgba(201, 161, 74, 0.10) 0%, transparent 30%);
    pointer-events: none;
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-wrap {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    border: 2px solid var(--color-accent);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #fff;
}

.brand-tagline {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-accent-soft);
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.page-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.pill-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.25);
}

/* ============ HERO ============ */
.hero {
    padding: 64px 24px 36px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(232, 241, 236, 0.6) 0%, transparent 60%);
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--color-muted);
    font-weight: 500;
    margin-bottom: 22px;
}

.effective-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.badge {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-divider {
    margin: 40px auto 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 2px;
}

/* ============ CONTENT ============ */
.content {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.policy-section {
    padding: 28px 32px;
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-divider);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.policy-section:hover {
    box-shadow: var(--shadow-md);
}

.policy-section.intro {
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, #fbf9f3 100%);
    border-left: 4px solid var(--color-primary);
}

.lead {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 400;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent-soft);
    line-height: 1.3;
    letter-spacing: -0.2px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
}

.policy-section p {
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.8;
}

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

.policy-list {
    list-style: none;
    margin: 14px 0 16px;
    padding-left: 4px;
}

.policy-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    color: var(--color-text);
    line-height: 1.7;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
}

/* Section divider between sections */
.section-divider {
    display: none; /* card layout already provides separation */
}

/* Contact section */
.contact-section .contact-card {
    margin-top: 18px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, #f5fbf7 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.contact-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px !important;
    font-size: 1.02rem;
}

.contact-email {
    color: var(--color-text);
    margin-bottom: 0 !important;
}

.contact-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 6px;
}

.contact-email a {
    color: var(--color-primary-soft);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--color-accent);
    transition: color 0.2s ease;
}

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

/* ============ FOOTER ============ */
.site-footer {
    background: linear-gradient(135deg, #0f5132 0%, #0a3a23 100%);
    color: #e8f1ec;
    padding: 40px 0 0;
    margin-top: 40px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    background: #fff;
    padding: 4px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--color-accent);
}

.footer-company {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.3px;
}

.footer-sub {
    font-size: 0.82rem;
    color: var(--color-accent-soft);
    margin-top: 2px;
}

.footer-meta {
    text-align: right;
}

.footer-contact a {
    color: var(--color-accent-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-updated {
    font-size: 0.85rem;
    color: rgba(232, 241, 236, 0.7);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 18px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(232, 241, 236, 0.65);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .brand {
        gap: 12px;
    }

    .logo-wrap {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-tagline {
        font-size: 0.76rem;
    }

    .page-pill {
        align-self: flex-start;
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .hero {
        padding: 44px 20px 24px;
    }

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

    .hero-sub {
        font-size: 0.98rem;
    }

    .content {
        padding: 12px 16px 60px;
    }

    .policy-section {
        padding: 22px 20px;
        border-radius: 12px;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-meta {
        text-align: left;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .brand-name {
        font-size: 1.05rem;
    }

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

    .policy-section {
        padding: 20px 16px;
    }

    .section-heading {
        font-size: 1.2rem;
    }
}
