.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
}

.page-terms-conditions__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for image then text */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: #F4F7FB; /* Background */
}

.page-terms-conditions__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover; /* Default to cover for desktop */
}

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

.page-terms-conditions__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Using clamp for H1 */
    color: #2F6BFF; /* Primary color */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-terms-conditions__description {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button fits container */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button Gradient */
    color: #FFFFFF;
    border: none;
    margin-right: 15px;
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-terms-conditions__btn-secondary {
    background: #FFFFFF; /* Card BG */
    color: #2F6BFF; /* Primary color */
    border: 2px solid #2F6BFF; /* Primary color border */
}

.page-terms-conditions__btn-secondary:hover {
    transform: translateY(-2px);
    background: #F4F7FB; /* Background color on hover */
}

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

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-terms-conditions__sub-title {
    font-size: 1.5em;
    color: #1F2D3D; /* Text Main */
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

.page-terms-conditions__dark-bg {
    background-color: #2F6BFF; /* Primary color as dark background */
    color: #FFFFFF;
}

.page-terms-conditions__dark-bg .page-terms-conditions__section-title,
.page-terms-conditions__dark-bg .page-terms-conditions__sub-title,
.page-terms-conditions__dark-bg .page-terms-conditions__paragraph {
    color: #FFFFFF; /* White text on dark background */
}

.page-terms-conditions__light-bg {
    background-color: #F4F7FB; /* Background color as light background */
    color: #1F2D3D; /* Text Main */
}

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

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

.page-terms-conditions__faq-list {
    margin-top: 40px;
    border-top: 1px solid #D6E2FF; /* Border color */
}

.page-terms-conditions__faq-item {
    background-color: #FFFFFF; /* Card BG */
    margin-bottom: 15px;
    border-bottom: 1px solid #D6E2FF; /* Border color */
    border-radius: 8px; /* Added for visual separation */
    overflow: hidden; /* To contain answer when closed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Soft shadow for cards */
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    background-color: #FFFFFF; /* Card BG */
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome/Safari marker */
}

.page-terms-conditions__faq-item summary:hover {
    background-color: #F0F5FF; /* Light hover effect */
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
    color: #1F2D3D; /* Text Main */
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2F6BFF; /* Primary color */
}

.page-terms-conditions__faq-answer {
    padding: 0 20px 20px 20px;
    color: #1F2D3D; /* Text Main */
    font-size: 0.95em;
}

/* CTA Section */
.page-terms-conditions__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container fills width */
    max-width: 600px; /* Limit max width for desktop */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: clamp(2em, 4vw, 2.5em);
    }

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

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

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

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

    /* Hero Section */
    .page-terms-conditions__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles header offset */
    }

    .page-terms-conditions__hero-image {
        object-fit: contain !important; /* Mobile hero image: contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
}