.page-terms-conditions {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #FFFFFF; /* Explicitly set page background to match body */
}

.page-terms-conditions__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow from hero content */
}

.page-terms-conditions__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45; /* Accent color for emphasis */
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__hero-button,
.page-terms-conditions__action-button,
.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for light button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-terms-conditions__hero-button:hover,
.page-terms-conditions__action-button:hover,
.page-terms-conditions__cta-button:hover {
    background-color: #e0a53b; /* Slightly darker yellow on hover */
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Explicitly set content background */
}

.page-terms-conditions__section-wrapper {
    background-color: #f9f9f9; /* Slightly off-white for content sections */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #000000; /* Main color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45; /* Highlight with accent color */
    padding-bottom: 10px;
}

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

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

.page-terms-conditions__action-button {
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-terms-conditions__cta-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF; /* Light text */
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: 60px;
    text-align: center;
    overflow: hidden; /* Ensure image within doesn't overflow */
}

.page-terms-conditions__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover; /* Ensure image covers area without distortion */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-terms-conditions__cta-title {
    font-size: 2.2em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-terms-conditions__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile floating buttons */
.page-terms-conditions__floating-buttons-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: #000000; /* Dark background for floating bar */
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* Hidden by default, shown only on mobile */
}

.page-terms-conditions__floating-button {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__floating-button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000; /* Dark text for light button */
}

.page-terms-conditions__floating-button--register:hover {
    background-color: #f0f0f0;
}

.page-terms-conditions__floating-button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for light button */
}

.page-terms-conditions__floating-button--login:hover {
    background-color: #e0a53b;
}

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

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

    .page-terms-conditions__hero-description {
        font-size: 1em;
    }

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

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

    .page-terms-conditions__cta-banner {
        flex-direction: column;
        padding: 30px 15px;
    }

    .page-terms-conditions__cta-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__floating-buttons-mobile {
        display: flex; /* Show floating buttons on mobile */
    }

    /* Ensure images are responsive and do not overflow */
    .page-terms-conditions img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size */
        min-height: 200px; /* Enforce minimum size */
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__hero-button,
    .page-terms-conditions__action-button,
    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }

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

    .page-terms-conditions__cta-title {
        font-size: 1.5em;
    }
}