/* style/terms-conditions.css */

/* Base styles for the terms-conditions page */
.page-terms-conditions {
    color: #f0f0f0; /* Light text for dark body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    background-color: transparent; /* Inherit from body or shared.css */
}

.page-terms-conditions__hero-section {
    position: relative;
    padding: 0; /* Assuming shared.css handles body padding-top */
    background-color: #003366; /* Main brand color for hero background */
    color: #ffffff; /* White text for dark blue background */
    text-align: center;
    padding-top: 60px; /* Adjusted padding for content */
    padding-bottom: 60px;
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    line-height: 1.2;
}

.page-terms-conditions__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #000000; /* Dark text for gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

.page-terms-conditions__cta-button--secondary {
    background-color: #003366; /* Dark blue button */
    color: #ffffff; /* White text for dark blue button */
    border: 2px solid #FFD700; /* Gold border */
}

.page-terms-conditions__cta-button--secondary:hover {
    background-color: #002244; /* Darker blue on hover */
    transform: translateY(-2px);
}

.page-terms-conditions__content-section {
    padding: 60px 0;
}

.page-terms-conditions__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body for contrast, but still dark */
    color: #f0f0f0;
}

.page-terms-conditions__light-bg {
    background-color: #f8f8f8; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #FFD700; /* Gold for section titles */
    text-align: center;
}

.page-terms-conditions__section-title--dark {
    color: #003366; /* Dark blue for titles on light background */
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffffff; /* White for sub-titles on dark background */
}

.page-terms-conditions__light-bg .page-terms-conditions__sub-title {
    color: #003366; /* Dark blue for sub-titles on light background */
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    /* No filter allowed */
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
    padding: 60px 0;
}

.page-terms-conditions__faq-list {
    margin-top: 30px;
}

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff; /* White background for FAQ item */
    color: #333333; /* Dark text for FAQ item */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Ensure enough height */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #003366; /* Dark blue for question text */
}

.page-terms-conditions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-terms-conditions__faq-question:active {
    background: #eeeeee;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #003366; /* Dark blue for question title */
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: #003366; /* Dark blue when active */
    transform: rotate(45deg); /* Rotate for minus sign */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    /* Mobile content overflow prevention */
    .page-terms-conditions {
        font-size: 15px;
    }
    .page-terms-conditions__hero-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-terms-conditions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-terms-conditions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-terms-conditions__content-section,
    .page-terms-conditions__faq-section {
        padding: 40px 0;
    }
    .page-terms-conditions__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-terms-conditions p,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }
    .page-terms-conditions__list {
        margin-left: 20px;
    }
    .page-terms-conditions__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Mobile */
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }
}