/* ==========================================
   PAGE CONTENT CENTERING & LAYOUT WRAPPERS
   ========================================== */

/* Main Section Wrappers */
.legal-content-section,
.faq-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0 80px;
}

.legal-content-section .container,
.faq-section .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Row Centering */
.legal-content-section .row,
.faq-section .row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Headings & Subtitles (Centered Headers) */
.s-sub-title {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-align: center;
}

.s-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.25;
}

.faq-section p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 30px auto;
    text-align: center;
    line-height: 1.6;
}

/* ==========================================
   TERMS & PRIVACY MAIN CARD (Centered Outer Card, Left-Aligned Content)
   ========================================== */

.legal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    text-align: left; /* Outer text flow set to Left-to-Right */
    margin: 0 auto;
    max-width: 920px;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInCard 0.6s ease-out forwards;
}

.legal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.legal-card .s-sub-title,
.legal-card .s-title,
.legal-card .legal-updated {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.legal-updated {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 30px;
}

.legal-text {
    text-align: left; /* Left-to-Right text layout */
    word-wrap: break-word;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-text h3 {
    text-align: left; /* Left-aligned subheadings */
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
    position: relative;
    padding-bottom: 10px;
}

/* Subtle line separator under left-aligned section headings */
.legal-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2563eb;
    margin: 8px 0 0 0;
    border-radius: 2px;
}

.legal-text p {
    text-align: left; /* Left-aligned paragraph content */
    margin-bottom: 18px;
}

/* Left-Aligned Bullet Lists & Icons */
.legal-text .i-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: block;
    text-align: left;
    width: 100%;
}

.legal-text .i-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    text-align: left;
}

.legal-text .i-list .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.legal-text .i-list li:hover .icon {
    transform: scale(1.15);
}

.legal-text .i-list .text {
    text-align: left;
    color: #334155;
}

/* Left-Aligned Highlight Cards & Info Boxes */
.legal-text .info-box,
.legal-text .contact-highlight {
    margin: 35px 0;
    padding: 28px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: left;
    display: block;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.legal-text .info-box:hover,
.legal-text .contact-highlight:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.legal-text .contact-highlight p {
    text-align: left;
    margin-bottom: 6px;
}

/* ==========================================
   STANDARD FAQ ACCORDION CARDS (Left-to-Right Content)
   ========================================== */

.custom-accordion {
    max-width: 820px;
    margin: 35px auto 0 auto;
    width: 100%;
}

.custom-faq-item {
    background: #ffffff;
    border-radius: 14px;
    margin: 0 auto 18px auto;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-align: left;
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: fadeInCard 0.6s ease-out forwards;
}

.custom-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.custom-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 20px 28px;
    border: none;
    cursor: pointer;
    background: #ffffff;
    font-size: 1.08rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-faq-btn span {
    text-align: left;
    width: calc(100% - 30px);
}

/* Expand / Collapse Indicator Icon */
.custom-faq-btn::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 500;
    color: #2563eb;
    position: absolute;
    right: 24px;
    transition: transform 0.3s ease;
}

.custom-faq-btn:not(.collapsed) {
    background-color: #f8fafc;
    color: #2563eb;
}

.custom-faq-btn:not(.collapsed)::after {
    content: '−';
    transform: rotate(180deg);
}

.custom-faq-body {
    text-align: left; /* Left-aligned answer body */
    padding: 8px 28px 24px 28px;
    line-height: 1.7;
    color: #475569;
    font-size: 0.98rem;
    background-color: #f8fafc;
    animation: slideDown 0.3s cubic-bezier(0, 1, 0, 1);
}

/* ==========================================
   ANIMATION KEYFRAMES
   ========================================== */

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

@media (max-width: 991px) {
    .legal-card {
        padding: 35px 24px;
    }

    .s-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 767px) {
    .legal-content-section,
    .faq-section {
        padding: 30px 0 50px;
    }

    .legal-card {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .s-title {
        font-size: 1.6rem;
    }

    .legal-text h3 {
        font-size: 1.25rem;
        margin-top: 30px;
    }

    .legal-text .i-list li {
        flex-direction: row; /* Keeps icon and text side-by-side */
        align-items: flex-start;
    }

    .legal-text .info-box,
    .legal-text .contact-highlight {
        padding: 18px 14px;
    }

    .custom-faq-btn {
        font-size: 0.98rem;
        padding: 16px 18px;
        padding-right: 42px;
    }

    .custom-faq-btn::after {
        right: 14px;
    }

    .custom-faq-body {
        font-size: 0.92rem;
        padding: 4px 18px 18px 18px;
    }
}