.page-terms-conditions {
    background-color: #F4F7FB;
    color: #1F2D3D;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-terms-conditions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background-color: #2F6BFF;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* To prevent image from being too wide */
    margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.page-terms-conditions__hero-content {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-terms-conditions__description-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #E0E0E0;
}

.page-terms-conditions__content-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-terms-conditions__container {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF;
}

.page-terms-conditions__section-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #2F6BFF;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #D6E2FF;
    padding-bottom: 10px;
}

.page-terms-conditions__section-title:first-of-type {
    margin-top: 0;
}

.page-terms-conditions__text-block {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #1F2D3D;
}

.page-terms-conditions__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #1F2D3D;
}

.page-terms-conditions__image-wrapper {
    margin: 25px 0;
    text-align: center;
}

.page-terms-conditions__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    /* Ensure content images are not smaller than 200px */
    min-width: 200px;
    min-height: 200px;
}

.page-terms-conditions__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-right: 15px;
}

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

.page-terms-conditions__button--primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

.page-terms-conditions__button--secondary {
    background: #6FA3FF;
    color: #FFFFFF;
    border: 1px solid #6FA3FF;
}

.page-terms-conditions__button--secondary:hover {
    background: #2F6BFF;
    border-color: #2F6BFF;
    box-shadow: 0 4px 12px rgba(111, 163, 255, 0.4);
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-bottom: 20px;
    }

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

    .page-terms-conditions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-terms-conditions__description-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

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

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

    .page-terms-conditions__section-title {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__text-block,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }

    .page-terms-conditions__content-image {
        max-width: 100%;
        height: auto;
    }

    .page-terms-conditions__button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-terms-conditions__button:last-of-type {
        margin-bottom: 0;
    }
}