/* ================================================
   LEGAL PAGES: Privacy, Terms, Refund
   ================================================ */

.lg-page {
    font-family: 'Tajawal', sans-serif;
    color: #1e293b;
    direction: rtl;
}

/* ============================
   Hero
   ============================ */

.lg-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 24px 48px;
    text-align: center;
    color: #fff;
}

.lg-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(62, 142, 80, 0.15);
    color: #66BB6A;
    margin-bottom: 20px;
}

.lg-hero__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}

.lg-hero__updated {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* ============================
   Container
   ============================ */

.lg-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ============================
   Content
   ============================ */

.lg-content {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 40px;
}

.lg-intro {
    padding: 20px 24px;
    background: #E8F5E9;
    border-radius: 12px;
    border-right: 4px solid #3E8E50;
    margin-bottom: 32px;
}

.lg-intro p {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
    margin: 0;
}

/* ============================
   Sections
   ============================ */

.lg-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

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

.lg-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.5;
}

.lg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3E8E50, #2E7A3E);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.lg-section p {
    font-size: 15px;
    line-height: 1.9;
    color: #475569;
    margin: 0 0 12px;
}

.lg-section ul,
.lg-section ol {
    margin: 0 0 12px;
    padding: 0 20px 0 0;
}

.lg-section ul li,
.lg-section ol li {
    font-size: 15px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 8px;
    padding-right: 8px;
}

.lg-section ul li::marker {
    color: #3E8E50;
}

.lg-section ol li::marker {
    color: #3E8E50;
    font-weight: 700;
}

.lg-section a {
    color: #3E8E50;
    font-weight: 600;
    text-decoration: none;
}

.lg-section a:hover {
    text-decoration: underline;
}

/* ============================
   Highlight Box
   ============================ */

.lg-highlight {
    padding: 14px 20px;
    background: #fffbeb;
    border-radius: 10px;
    border: 1px solid #fde68a;
    margin-bottom: 16px;
    font-size: 15px;
    color: #92400e;
}

/* ============================
   Contact Box
   ============================ */

.lg-contact-box {
    background: #f8fafc;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 28px 32px !important;
    margin-top: 20px;
}

.lg-contact-box h2 {
    justify-content: center;
}

.lg-contact-box p {
    text-align: center;
}

.lg-contact-items {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.lg-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

.lg-contact-link:hover {
    border-color: #3E8E50;
    color: #3E8E50 !important;
    box-shadow: 0 4px 12px rgba(62,142,80,0.1);
    transform: translateY(-2px);
}

.lg-contact-link--wa {
    background: #E8F5E9;
    border-color: #C8E6C9;
    color: #3E8E50 !important;
}

.lg-contact-link--wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff !important;
}

/* ============================
   Hide default page elements
   ============================ */

.page-template-default .lg-page ~ *,
body:has(.lg-page) .entry-title,
body:has(.lg-page) .entry-header {
    display: none !important;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
    .lg-hero {
        padding: 40px 20px 32px;
    }

    .lg-hero__title {
        font-size: 24px;
    }

    .lg-hero__icon {
        width: 52px;
        height: 52px;
    }

    .lg-content {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .lg-container {
        padding: 28px 16px 60px;
    }

    .lg-section h2 {
        font-size: 17px;
    }

    .lg-section p,
    .lg-section ul li,
    .lg-section ol li {
        font-size: 14px;
        line-height: 1.8;
    }

    .lg-intro p {
        font-size: 14px;
    }

    .lg-highlight {
        font-size: 14px;
    }

    .lg-contact-items {
        flex-direction: column;
        align-items: stretch;
    }

    .lg-contact-link {
        justify-content: center;
        min-height: 48px;
        font-size: 14px;
    }

    .lg-contact-box {
        padding: 20px 16px !important;
    }

    .lg-contact-box h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .lg-hero__title { font-size: 22px; }
    .lg-hero { padding: 32px 16px 24px; }
    .lg-content { padding: 20px 16px; }
    .lg-section h2 { font-size: 16px; }
    .lg-num { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
}

@media (max-width: 360px) {
    .lg-hero__title { font-size: 20px; }
    .lg-content { padding: 16px 14px; border-radius: 12px; }
    .lg-section p,
    .lg-section ul li,
    .lg-section ol li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-contact-link {
        transition: none !important;
    }
    .lg-contact-link:hover {
        transform: none !important;
    }
}
