.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #FFFFFF */
    background-color: #ffffff; /* Explicitly set for clarity, though body is already white */
}

.page-terms-conditions__hero-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    margin: 10px;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__cta-button--primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-terms-conditions__cta-button--primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-terms-conditions__cta-button--secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-terms-conditions__cta-button--secondary:hover {
    background-color: #f0f0f0;
    color: #1e87bb;
    border-color: #1e87bb;
}

.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-terms-conditions__section {
    margin-bottom: 40px;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__section-title--light {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.page-terms-conditions__sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-terms-conditions__text-block ul li {
    margin-bottom: 8px;
}

.page-terms-conditions__text-block a {
    color: #26A9E0; /* Brand primary color for links */
    text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
    color: #1e87bb;
}

.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-terms-conditions__faq-section {
    background-color: #26A9E0; /* Dark section for contrast */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-terms-conditions__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #333333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #e0e0e0;
}

.page-terms-conditions__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0; /* Brand primary color */
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
    color: #EA7C07; /* Login color for active toggle */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Important for override */
    padding: 15px 25px;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 10px;
    color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-terms-conditions__main-title {
        font-size: 2em;
    }

    .page-terms-conditions__intro-text {
        font-size: 1em;
    }

    .page-terms-conditions__section-title {
        font-size: 1.6em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.3em;
    }

    .page-terms-conditions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .page-terms-conditions__text-block,
    .page-terms-conditions__faq-section .page-terms-conditions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__button-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-terms-conditions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0; /* Remove horizontal margin for full width */
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
    }

    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 20px;
    }
}