/* style/terms-conditions.css */

/* --- General Styles for page-terms-conditions scope --- */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Body background color */
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-terms-conditions__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
    font-weight: bold;
    color: #11A84E; /* Brand primary color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-terms-conditions__description {
    font-size: clamp(16px, 2vw, 18px);
    color: #333333;
    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;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-terms-conditions__cta-button--large {
    font-size: 20px;
    padding: 18px 35px;
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-terms-conditions__section-wrapper {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.page-terms-conditions__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__dark-bg {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main for dark background */
}

.page-terms-conditions__section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: inherit; /* Inherit color from parent wrapper */
}

.page-terms-conditions__dark-bg .page-terms-conditions__section-title {
    color: #F2FFF6; /* Ensure title is light on dark background */
}

.page-terms-conditions__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #11A84E; /* Primary color for sub-titles */
}

.page-terms-conditions__dark-bg .page-terms-conditions__sub-title {
    color: #22C768; /* Secondary color for sub-titles on dark background */
}

.page-terms-conditions__text-block {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.7;
    color: inherit; /* Inherit color from parent wrapper */
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 25px 0;
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
    object-fit: cover;
}

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

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

.page-terms-conditions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #11A84E; /* Primary color for question */
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-terms-conditions__faq-item summary:hover {
    background-color: #e5e5e5;
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: #22C768; /* Secondary color for toggle icon */
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    content: "−"; /* Change to minus when open (handled by JS for non-details) */
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 16px;
    color: #333333;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.page-terms-conditions__faq-answer p {
    margin: 0;
}

/* --- Call to Action Section --- */
.page-terms-conditions__call-to-action {
    text-align: center;
    padding: 50px 20px;
    background-color: #08160F; /* Background color */
    color: #F2FFF6; /* Text Main */
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__call-to-action .page-terms-conditions__section-title {
    color: #F2FFF6; /* Light title on dark background */
    margin-bottom: 20px;
}

.page-terms-conditions__call-to-action .page-terms-conditions__text-block {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #A7D9B8; /* Text Secondary */
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-section {
        padding: 10px 15px 40px;
    }

    .page-terms-conditions__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__hero-content {
        padding: 0 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__cta-button,
    .page-terms-conditions__cta-button--large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }

    .page-terms-conditions__section-wrapper {
        padding: 20px;
        margin-bottom: 30px;
    }

    .page-terms-conditions__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__image {
        margin: 20px 0;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ mobile adjustments */
    .page-terms-conditions__faq-section {
        padding: 30px 15px;
    }

    .page-terms-conditions__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    .page-terms-conditions__call-to-action {
        padding: 30px 15px;
    }

    .page-terms-conditions__call-to-action .page-terms-conditions__text-block {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* Ensure all image containers are responsive */
    .page-terms-conditions__section-wrapper,
    .page-terms-conditions__card, /* Although no direct card, good to have */
    .page-terms-conditions__container { /* General container, if any */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__faq-list,
    .page-terms-conditions__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}