.page-terms-conditions {
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Small padding bottom for main content */
    /* Rely on body for padding-top from header */
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    background-color: #2F6BFF; /* Primary color for hero background */
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto; /* Ensure image scales */
    max-height: 600px; /* Limit height on large screens */
    object-fit: cover;
    object-position: center;
    display: block;
    filter: none; /* No filter */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 20px;
    color: #FFFFFF; /* White text on dark hero background */
}

.page-terms-conditions__main-title {
    font-size: clamp(2rem, 4vw, 3rem); /* Clamp for responsive H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for H1 */
    letter-spacing: -0.5px;
}

.page-terms-conditions__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-terms-conditions__content-area {
    padding: 40px 0;
}

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

.page-terms-conditions__section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: bold;
    color: #2F6BFF; /* Primary color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.page-terms-conditions__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 25px;
    color: #1F2D3D; /* Text Main */
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max-width, adjust as needed */
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* No filter */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-terms-conditions__cta-group {
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.page-terms-conditions__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    max-width: 300px; /* Limit button width */
    width: 100%; /* Make buttons full width on smaller screens */
    box-sizing: border-box;
}

.page-terms-conditions__button--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    border: none;
}

.page-terms-conditions__button--primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-terms-conditions__button--secondary {
    background-color: #FFFFFF;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-terms-conditions__button--secondary:hover {
    background-color: #F0F5FF;
    color: #1F2D3D;
    border-color: #1F2D3D;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: 8px; /* Reduce top padding for mobile */
        padding-bottom: 30px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-terms-conditions__description {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .page-terms-conditions__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95rem;
    }

    .page-terms-conditions__image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min image size */
        min-height: 200px; /* Enforce min image size */
    }
    
    .page-terms-conditions__content-area {
        padding: 30px 0;
    }

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

    .page-terms-conditions__cta-group {
        gap: 15px;
    }

    .page-terms-conditions__button {
        padding: 10px 20px;
        font-size: 1rem;
        min-height: 44px; /* Touch target size */
    }
}

/* Ensure content images are not too small on desktop either */
.page-terms-conditions__content-area img {
    width: 100%;
    max-width: 800px; /* Example, adjust to fit container */
    height: auto;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

/* Prevent horizontal overflow for main content on small screens */
@media (max-width: 768px) {
    .page-terms-conditions {
        overflow-x: hidden;
    }
    .page-terms-conditions__container {
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-terms-conditions__content-area img {
        max-width: 100%; /* Important for mobile overflow */
        height: auto;
    }
}