.page-terms-conditions {
    background-color: #FFFFFF; /* Background color for the main content area */
    color: #333333; /* Default text color for readability */
    padding-bottom: 40px;
    line-height: 1.6;
}

.page-terms-conditions__hero-section {
    background-color: #017439; /* Main color for the hero section */
    color: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding for internal pages */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Use the yellow for emphasis */
}

.page-terms-conditions__description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

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

.page-terms-conditions__container {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-terms-conditions__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #017439; /* Main color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-terms-conditions__paragraph {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #333333;
}

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

.page-terms-conditions__list-item a,
.page-terms-conditions__paragraph a {
    color: #017439; /* Link color */
    text-decoration: underline;
}

.page-terms-conditions__list-item a:hover,
.page-terms-conditions__paragraph a:hover {
    color: #005f2e; /* Darker green on hover */
    text-decoration: none;
}

.page-terms-conditions__image {
    width: 100%;
    max-width: 800px; /* Max width for content images */
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no CSS filters are applied */
}

/* Ensure images are not smaller than 200px */
.page-terms-conditions__content-area img {
    min-width: 200px;
    min-height: 200px;
}

.page-terms-conditions__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    margin-right: 15px;
    text-align: center;
    white-space: nowrap;
}

.page-terms-conditions__button--register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
}

.page-terms-conditions__button--register:hover {
    background-color: #a00606; /* Darker red on hover */
    color: #FFFFFF;
}

.page-terms-conditions__button--promotions,
.page-terms-conditions__button--contact {
    background-color: #017439; /* Main color for other buttons */
    color: #FFFFFF;
}

.page-terms-conditions__button--promotions:hover,
.page-terms-conditions__button--contact:hover {
    background-color: #005f2e; /* Darker green on hover */
    color: #FFFFFF;
}

.page-terms-conditions__last-updated {
    font-style: italic;
    text-align: right;
    margin-top: 30px;
    color: #555555;
    font-size: 0.95rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 20px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-terms-conditions__description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

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

    .page-terms-conditions__section-title {
        font-size: clamp(1.3rem, 4.5vw, 1.8rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-title {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    .page-terms-conditions__image {
        margin: 20px auto;
    }

    .page-terms-conditions__button {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%; /* Full width buttons on mobile */
        margin-right: 0;
        margin-bottom: 10px;
    }

    .page-terms-conditions__content-area img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }
}

/* Ensure content area does not cause horizontal scroll */
@media (max-width: 768px) {
    .page-terms-conditions {
        overflow-x: hidden;
    }
    .page-terms-conditions__container {
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* CSS for image width/height attributes vs CSS properties */
/* For example, if HTML has width="800" height="600" for an image */
/* CSS should not make it smaller than 200x200, but can make it responsive */
.page-terms-conditions__image[width][height] {
    /* The HTML width/height attributes provide an aspect ratio */
    /* This CSS ensures it's responsive and doesn't get too small */
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Ensure contrast for text on various backgrounds */
/* Default text color #333333 on #FFFFFF background has good contrast */
/* Main title #FFFF00 on #017439 background has good contrast */
/* Buttons have good contrast by design */