/**
 * Legal Pages & FAQ Accordion Styles
 * 
 * Styles for Terms, Privacy, Cancellation, and FAQ pages
 * 
 * @package ReservePress_Theme
 * @version 2.3.0
 */

/* ============================================
   LEGAL PAGES - GENERAL
   ============================================ */

.legal-page {
    background: #fff;
}

.legal-page.no-hero .legal-content-section {
    padding-top: 5rem;
}

/* Legal Content Section */
.legal-content-section {
    padding: 5rem 0;
    background: #fff;
}

.legal-content {
    max-width: 50rem;
    margin: 0 auto;
}

.legal-content-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 2rem 0;
    color: #2a2a2a;
    text-align: center;
}

.legal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.legal-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: #2a2a2a;
}

.legal-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #2a2a2a;
}

.legal-text p {
    margin: 0 0 1.5rem 0;
}

.legal-text ul,
.legal-text ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.75rem;
}

.legal-text strong {
    font-weight: 600;
    color: #2a2a2a;
}

.legal-text a {
    color: var(--accent-primary, #b8964f);
    text-decoration: underline;
}

.legal-text a:hover {
    opacity: 0.8;
}

/* ============================================
   FAQ PAGE - ACCORDION
   ============================================ */

.faq-page {
    background: #fff;
}

.faq-page.no-hero .faq-content-section {
    padding-top: 5rem;
}

/* FAQ Content Section */
.faq-content-section {
    padding: 5rem 0;
    background: #fff;
}

.faq-intro {
    max-width: 50rem;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 50rem;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ccc;
}

.faq-item.active {
    border-color: var(--accent-primary, #b8964f);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ Header (Clickable) */
.faq-item-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-item-header:hover {
    background: #f0f0f0;
}

.faq-item.active .faq-item-header {
    background: var(--accent-primary, #b8964f);
    color: #fff;
}

/* FAQ Icon (Arrow) */
.faq-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg); /* ▶ becomes ▼ */
}

/* FAQ Question */
.faq-question {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
}

.faq-item.active .faq-question {
    color: #fff;
}

/* FAQ Answer (Hidden by default) */
.faq-item-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: #fff;
    display: none;
}

.faq-item-answer p {
    margin: 0 0 1rem 0;
    line-height: 1.8;
    color: #555;
}

.faq-item-answer p:last-child {
    margin-bottom: 0;
}

.faq-item-answer ul,
.faq-item-answer ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
}

.faq-item-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #555;
}

.faq-item-answer strong {
    font-weight: 600;
    color: #2a2a2a;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .legal-content-title {
        font-size: 2rem;
    }
    
    .legal-text {
        font-size: 0.95rem;
    }
    
    .faq-item-header {
        padding: 1.25rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-item-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .legal-content-section,
    .faq-content-section {
        padding: 3rem 0;
    }
    
    .legal-content-title {
        font-size: 1.75rem;
    }
    
    .faq-item-header {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
    
    .faq-item-answer {
        padding: 0 1rem 1rem 1rem;
    }
}
