/*
 * Legal / Info Pages — Shared Styles
 * FAQs, Shipping & Returns, Privacy Policy, Terms & Conditions
 * @package Pannaiyar
 */

/* =============================================
   PAGE CONTENT WRAPPER
   ============================================= */
.pn-legal-wrap {
    max-width: 900px;
    margin: -80px auto 0;
    position: relative;
    z-index: 10;
}

/* =============================================
   SECTION CARD
   ============================================= */
.pn-legal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    margin-bottom: 28px;
    border: 1px solid rgba(235, 104, 65, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}
.pn-legal-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

/* Card Header with Icon */
.pn-legal-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(235, 104, 65, 0.08);
}
.pn-legal-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(235, 104, 65, 0.1), rgba(255, 153, 68, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pn-legal-card__icon i {
    font-size: 22px;
    color: var(--primary);
}
.pn-legal-card__title {
    font-family: var(--ff-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

/* Card Body Content */
.pn-legal-card__body {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 15px;
}
.pn-legal-card__body p {
    margin-bottom: 18px;
    color: var(--text-muted);
}
.pn-legal-card__body p:last-child {
    margin-bottom: 0;
}

/* Sub-heading inside card */
.pn-legal-card__body h3 {
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 28px;
    margin-bottom: 14px;
}
.pn-legal-card__body h3:first-child {
    margin-top: 0;
}

/* List Items */
.pn-legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.pn-legal-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}
.pn-legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.pn-legal-list li:last-child {
    margin-bottom: 0;
}
.pn-legal-list li strong {
    color: var(--text-dark);
}

/* =============================================
   CONTACT / CTA BOX
   ============================================= */
.pn-legal-cta {
    background: linear-gradient(135deg, rgba(235, 104, 65, 0.04), rgba(255, 153, 68, 0.04));
    border: 1px solid rgba(235, 104, 65, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 24px;
}
.pn-legal-cta h4 {
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.pn-legal-cta p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}
.pn-legal-cta a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.pn-legal-cta a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =============================================
   FAQ ACCORDION (Enhanced)
   ============================================= */
.pn-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pn-faq-item {
    background: var(--white);
    border: 1px solid rgba(235, 104, 65, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}
.pn-faq-item:hover {
    border-color: rgba(235, 104, 65, 0.15);
}
.pn-faq-item.active {
    border-color: rgba(235, 104, 65, 0.2);
    box-shadow: 0 4px 20px rgba(235, 104, 65, 0.08);
}
.pn-faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 22px 28px;
    font-size: 16px;
    font-family: var(--ff-body);
    color: var(--text-dark);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    outline: none;
    line-height: 1.4;
}
.pn-faq-question:hover {
    color: var(--primary);
}
.pn-faq-icon {
    color: var(--primary);
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(235, 104, 65, 0.08);
}
.pn-faq-item.active .pn-faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: var(--white);
}
.pn-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pn-faq-answer-inner {
    padding: 0 28px 24px;
    line-height: 1.85;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid rgba(235, 104, 65, 0.06);
    padding-top: 18px;
}

/* =============================================
   INTRO BAR (Top of FAQ page)
   ============================================= */
.pn-legal-intro {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    margin-bottom: 28px;
    border: 1px solid rgba(235, 104, 65, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 20px;
}
.pn-legal-intro__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pn-legal-intro__icon i {
    font-size: 24px;
    color: var(--white);
}
.pn-legal-intro__text h2 {
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}
.pn-legal-intro__text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* =============================================
   WP CONTENT FALLBACK (if admin enters content)
   ============================================= */
.pn-wp-content {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 15px;
}
.pn-wp-content h2 {
    font-family: var(--ff-display);
    color: var(--primary);
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(235, 104, 65, 0.08);
    font-weight: 700;
}
.pn-wp-content h2:first-child {
    margin-top: 0;
}
.pn-wp-content h3 {
    font-family: var(--ff-body);
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}
.pn-wp-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}
.pn-wp-content ul {
    margin-bottom: 24px;
    padding-left: 0;
    list-style: none;
}
.pn-wp-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
}
.pn-wp-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .pn-legal-wrap {
        margin-top: -50px;
    }
    .pn-legal-card {
        padding: 24px 20px;
        margin-bottom: 18px;
    }
    .pn-legal-card__header {
        gap: 12px;
    }
    .pn-legal-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .pn-legal-card__icon i {
        font-size: 18px;
    }
    .pn-legal-card__title {
        font-size: var(--fs-lg);
    }
    .pn-legal-intro {
        padding: 20px;
        gap: 14px;
    }
    .pn-legal-intro__icon {
        width: 44px;
        height: 44px;
    }
    .pn-faq-question {
        padding: 18px 20px;
        font-size: 15px;
    }
    .pn-faq-answer-inner {
        padding: 0 20px 20px;
    }
    .pn-legal-cta {
        padding: 18px 20px;
    }
}
