/**
 * Legal Pages — Neershay Brand-Consistent Styling
 *
 * Palette: Gold #C5A059 · Navy #0A2342 · BG #F9F6F1
 * Fonts: Playfair Display (headings) · Inter (body)
 *
 * @package SPLENDOUR_CHILD
 * @since 1.0
 */

/* =============================================
   SUPPRESS THEME PAGE TITLE PANEL
   The Legal Pages template provides its own h1
   ============================================= */
.page-template-page-legal .top_panel_title,
.page-template-page-legal .sc_layouts_title,
.page-template-page-legal .sc_layouts_row_type_normal:has(.sc_layouts_title) {
    display: none !important;
}

/* =============================================
   PAGE HEADER — replaces the heavy navy banner
   ============================================= */
.page-template-page-legal .page_title_holder,
.page-template-page-legal .page_title,
.legal-page-header {
    display: none;
}

/* Legal page wrapper */
.privacy-policy-content,
.terms-conditions-content,
.refund-cancellation-content,
.shipping-policy-content {
    background: var(--off-white);
    padding: 0;
}

.privacy-policy-content .container,
.terms-conditions-content .container,
.refund-cancellation-content .container,
.shipping-policy-content .container {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 40px 80px;
    box-sizing: border-box;
}

/* =============================================
   INTRO SECTION — refined, no navy background
   ============================================= */
.intro-section {
    background: transparent;
    color: inherit;
    text-align: left;
    border-radius: 0;
    padding: 0 0 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.intro-section .legal-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.intro-section .legal-meta {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 20px 0;
    display: block;
}

.intro-section p {
    font-family: var(--font-body);
    color: #666;
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 12px;
    max-width: 100%;
}

/* =============================================
   CONTENT SECTIONS — cards with gold border
   ============================================= */
.privacy-section,
.terms-section,
.refund-section,
.shipping-section {
    background: var(--white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.privacy-section:not(.intro-section):hover,
.terms-section:not(.intro-section):hover,
.refund-section:not(.intro-section):hover,
.shipping-section:not(.intro-section):hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* =============================================
   HEADINGS — smaller, elegant
   Full reset of any inherited gradient/ligature
   effects from the Lumilux parent theme
   ============================================= */
.privacy-section h1,
.privacy-section h2,
.privacy-section h3,
.privacy-section h4,
.terms-section h1,
.terms-section h2,
.terms-section h3,
.terms-section h4,
.refund-section h1,
.refund-section h2,
.refund-section h3,
.refund-section h4,
.shipping-section h1,
.shipping-section h2,
.shipping-section h3,
.shipping-section h4,
.intro-section .legal-page-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--navy) !important;
    font-family: 'Playfair Display', serif !important;
    text-rendering: auto !important;
    font-feature-settings: 'liga' 0, 'calt' 0 !important;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
}

.privacy-section h2,
.terms-section h2,
.refund-section h2,
.shipping-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
    padding-bottom: 12px;
    position: relative;
    color: var(--navy) !important;
}

.privacy-section h2::after,
.terms-section h2::after,
.refund-section h2::after,
.shipping-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gold) !important;
    border-radius: 2px;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.privacy-section h3,
.terms-section h3,
.refund-section h3,
.shipping-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 10px 0;
    line-height: 1.35;
    color: var(--navy) !important;
}

.privacy-section h4,
.terms-section h4,
.refund-section h4,
.shipping-section h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark) !important;
    margin: 18px 0 8px 0;
    line-height: 1.4;
}

/* =============================================
   BODY TEXT
   ============================================= */
.privacy-section p,
.terms-section p,
.refund-section p {
    font-family: var(--font-body);
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* =============================================
   LISTS
   ============================================= */
.privacy-section ul,
.terms-section ul,
.refund-section ul,
.shipping-section ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 14px;
    padding: 0;
}

.privacy-section ul li,
.terms-section ul li,
.refund-section ul li,
.shipping-section ul li {
    font-family: var(--font-body);
    color: #555;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.privacy-section ul li::before,
.terms-section ul li::before,
.refund-section ul li::before,
.shipping-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.privacy-section ol,
.terms-section ol,
.refund-section ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 14px;
}

.privacy-section ol li,
.terms-section ol li,
.refund-section ol li {
    font-family: var(--font-body);
    color: #555;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 8px;
}

/* =============================================
   INFO / CALLOUT BOXES
   ============================================= */
.privacy-section .info-box,
.terms-section .warning-box,
.terms-section .important-box,
.refund-section .success-box,
.refund-section .note-box,
.shipping-section .info-box {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.88rem;
    line-height: 1.7;
}

.privacy-section .info-box,
.shipping-section .info-box {
    background: rgba(197, 160, 89, 0.08);
    border-left: 3px solid var(--gold);
}

.terms-section .warning-box {
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #f0b429;
}

.terms-section .important-box {
    background: rgba(220, 53, 69, 0.07);
    border-left: 3px solid #c0392b;
}

.refund-section .success-box {
    background: rgba(40, 167, 69, 0.07);
    border-left: 3px solid #27ae60;
}

.refund-section .note-box {
    background: rgba(10, 35, 66, 0.05);
    border-left: 3px solid var(--navy-light);
}

/* =============================================
   CONTACT SECTION — refined, no navy bg
   ============================================= */
.contact-section {
    background: var(--white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-top: 8px;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy) !important;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    position: relative;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    font-feature-settings: 'liga' 0, 'calt' 0 !important;
    text-rendering: auto !important;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.contact-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-section ul li {
    font-family: var(--font-body);
    color: #555;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 8px;
    padding-left: 0;
}

.contact-section ul li::before {
    display: none;
}

.contact-section ul li strong {
    color: var(--navy);
    font-weight: 600;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .privacy-policy-content .container,
    .terms-conditions-content .container,
    .refund-cancellation-content .container,
    .shipping-policy-content .container {
        padding: 40px 20px 60px;
    }

    .privacy-section,
    .terms-section,
    .refund-section,
    .shipping-section,
    .contact-section {
        padding: 22px 20px;
        margin-bottom: 16px;
    }

    .intro-section {
        padding: 0 0 32px 0;
        margin-bottom: 28px;
    }

    .intro-section .legal-page-title {
        font-size: 1.35rem;
    }

    .privacy-section h2,
    .terms-section h2,
    .refund-section h2,
    .contact-section h2 {
        font-size: 1.05rem;
    }

    .privacy-section h3,
    .terms-section h3,
    .refund-section h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .privacy-policy-content .container,
    .terms-conditions-content .container,
    .refund-cancellation-content .container,
    .shipping-policy-content .container {
        padding: 32px 16px 48px;
    }

    .privacy-section,
    .terms-section,
    .refund-section,
    .shipping-section,
    .contact-section {
        padding: 18px 16px;
    }
}

/* =============================================
   ELEMENTOR EDIT MODE
   ============================================= */
.elementor-edit-area .privacy-policy-content,
.elementor-edit-area .terms-conditions-content,
.elementor-edit-area .refund-cancellation-content,
.elementor-edit-area .shipping-policy-content {
    padding: 0;
    background: transparent;
}

.elementor-edit-area .privacy-section,
.elementor-edit-area .terms-section,
.elementor-edit-area .refund-section,
.elementor-edit-area .shipping-section,
.elementor-edit-area .contact-section,
.elementor-edit-area .intro-section {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-left: none;
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .privacy-policy-content,
    .terms-conditions-content,
    .refund-cancellation-content,
    .shipping-policy-content {
        background: white;
    }

    .privacy-section,
    .terms-section,
    .refund-section,
    .shipping-section,
    .contact-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        border-left: 3px solid var(--gold);
    }

    .intro-section {
        border-bottom: 1px solid #ddd;
    }
}