.page-terms-conditions {
    background-color: #140C0C;
    color: #FFF1E8;
    line-height: 1.6;
    font-family: sans-serif; /* Roboto-like font */
}

.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: #140C0C; /* Ensure consistency with main background */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
    order: 1; /* Image first */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum height for hero image */
}

.page-terms-conditions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    order: 2; /* Text second */
}

.page-terms-conditions__main-title {
    font-weight: bold;
    color: #F3C54D; /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 3.2rem); /* Example clamp for h1 */
}

.page-terms-conditions__intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF1E8;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #FFF1E8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Ensure button is not too small */
    text-align: center;
    /* Contrast check: FFb04a on #140C0C is not direct, but text is #FFF1E8 on gradient */
    /* Text #FFF1E8 on gradient #FFB04A to #D86A14 should be good */
}

.page-terms-conditions__cta-button:hover {
    transform: translateY(-2px);
}

.page-terms-conditions__cta-button--small {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 150px;
}

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

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

.page-terms-conditions__section-title {
    font-size: 2.2rem;
    color: #F3C54D; /* Gold */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-terms-conditions__table-of-contents {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
}

.page-terms-conditions__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.page-terms-conditions__toc-item {
    margin-bottom: 5px;
}

.page-terms-conditions__toc-link {
    color: #FFF1E8;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.page-terms-conditions__toc-link:hover {
    background-color: #C61F1F; /* Primary color */
    color: #FFF1E8;
}

.page-terms-conditions__article {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
}

.page-terms-conditions__section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #6A1E1E; /* Border */
}

.page-terms-conditions__section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-terms-conditions__section-heading {
    font-size: 1.8rem;
    color: #E53030; /* Secondary color */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-terms-conditions__link {
    color: #F3C54D; /* Gold */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.page-terms-conditions__link:hover {
    color: #FFB04A; /* Lighter gold/orange from button gradient */
}

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

.page-terms-conditions__list-item {
    margin-bottom: 8px;
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto; /* Center image */
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}

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

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

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

    .page-terms-conditions__cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: unset;
        width: 100%;
        max-width: 250px;
    }

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

    .page-terms-conditions__section-title {
        font-size: 1.8rem;
    }

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

    .page-terms-conditions__toc-list {
        grid-template-columns: 1fr; /* Single column for TOC on mobile */
    }

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

    .page-terms-conditions__content-image {
        max-width: 100%; /* Important for mobile overflow prevention */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }
}

/* Global image rules for content area, ensuring minimum sizes */
.page-terms-conditions img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensure images are responsive by default */
    height: auto;
}

/* Specific override for content images to ensure they meet minimums if their display area is constrained */
.page-terms-conditions__content-image {
    min-width: 200px;
    min-height: 200px;
}