.page-terms-conditions {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--bg-color, #F4F7FB);
    color: var(--text-main-color, #1F2D3D);
    font-family: Arial, sans-serif;
}

.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--main-color, #2F6BFF); /* Use main color as background for hero section */
    color: #FFFFFF; /* White text on blue background */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-terms-conditions__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px; /* Space between image and text */
}

.page-terms-conditions__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-terms-conditions__main-title {
    /* No fixed font-size, rely on clamp if necessary, or just other properties */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 15px;
    max-width: 100%; /* Ensure it doesn't overflow */
}

.page-terms-conditions__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #E0E0E0; /* Slightly lighter white for description */
    margin-bottom: 30px;
}

.page-terms-conditions__content-section {
    padding: 40px 20px;
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg-color, #FFFFFF);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__heading {
    color: var(--custom-color-1776249996415, #000000);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid var(--border-color, #D6E2FF);
    padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-main-color, #1F2D3D);
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color, #1F2D3D);
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-terms-conditions__image {
    width: 100%;
    max-width: 600px; /* Example max-width for content images */
    height: auto;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__paragraph--footer {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 30px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem); /* Example clamp for h1 */
    }

    .page-terms-conditions__description {
        font-size: 1rem;
    }

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

    .page-terms-conditions__container {
        padding: 20px;
    }

    .page-terms-conditions__heading {
        font-size: 1.5rem;
    }

    .page-terms-conditions__image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto; /* Maintain aspect ratio */
    }
    
    /* Enforce min-size for content images if selected by any selector */
    .page-terms-conditions img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min width */
        min-height: 200px; /* Enforce min height */
        object-fit: cover; /* Helps with min-height if aspect ratio changes */
    }
}