.page-terms-conditions {
    background-color: #FFFFFF; /* Main background as specified */
    color: #333333; /* Default text color for contrast on white background */
    font-family: Arial, sans-serif; /* Roboto气质 - Arial is a common sans-serif */
    line-height: 1.6;
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex; /* For stacking image and content */
    flex-direction: column; /* Image on top, content below */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #100224; /* Dark background for hero section */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Minimum image size */
    max-height: 600px; /* Cap height for desktop hero */
}

.page-terms-conditions__hero-content {
    position: relative; /* Not absolute, for "上图下文" */
    z-index: 1;
    padding: 40px 20px;
    text-align: center;
    color: #FFFFFF;
    background-color: #100224; /* Dark background for text area */
}

.page-terms-conditions__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* H1 font size clamp, not fixed large */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF; /* White text on dark background */
}

.page-terms-conditions__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #E0E0E0; /* Slightly off-white for description */
}

.page-terms-conditions__cta-button {
    display: inline-flex;
    background: linear-gradient(to right, #ff9500, #ff5e3a); /* Orange-red gradient CTA */
    color: #FFFFFF;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 44px; /* Touch target size */
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center button */
    border: none;
}

.page-terms-conditions__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--secondary {
    background: #26A9E0; /* Main brand color for secondary CTA */
    color: #FFFFFF;
    font-weight: 600;
}

.page-terms-conditions__cta-button--secondary:hover {
    background: #1e87b8; /* Slightly darker blue on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__introduction-section,
.page-terms-conditions__key-terms-section,
.page-terms-conditions__responsible-gaming-section,
.page-terms-conditions__contact-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Default background */
}

.page-terms-conditions__introduction-section {
    background-color: #f8f8f8; /* Light grey for intro section */
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #100224; /* Dark title color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-terms-conditions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0; /* Accent line */
    border-radius: 2px;
}

.page-terms-conditions__paragraph {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.page-terms-conditions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-terms-conditions__card {
    background-color: #f0f8ff; /* Light blue background for cards */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure cards have a decent height */
}

.page-terms-conditions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-terms-conditions__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0; /* Main brand color for card titles */
    margin-bottom: 15px;
}

.page-terms-conditions__card-text {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

.page-terms-conditions__card-link {
    display: inline-block;
    color: #EA7C07; /* Login/CTA color for card links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-terms-conditions__card-link:hover {
    color: #d16b06; /* Slightly darker orange on hover */
    text-decoration: underline;
}

.page-terms-conditions__responsible-gaming-section {
    background-color: #e6f7ff; /* Even lighter blue background for this section */
    text-align: center;
}

.page-terms-conditions__image-content {
    width: 100%;
    max-width: 800px; /* Max width for content images */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-terms-conditions__contact-section {
    background-color: #100224; /* Dark background for contact section */
    color: #FFFFFF;
    text-align: center;
}

.page-terms-conditions__contact-section .page-terms-conditions__section-title {
    color: #FFFFFF; /* White title on dark background */
}

.page-terms-conditions__contact-section .page-terms-conditions__section-title::after {
    background-color: #ff9500; /* Orange accent line */
}

.page-terms-conditions__contact-section .page-terms-conditions__paragraph {
    color: #E0E0E0; /* Light text on dark background */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 849px) {
    .page-terms-conditions__hero-section {
        padding-top: 0; /* Remove top padding for smaller screens if header is smaller */
    }

    .page-terms-conditions__hero-image {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

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

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

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

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

    .page-terms-conditions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

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

    .page-terms-conditions__card {
        padding: 25px;
    }

    .page-terms-conditions__card-title {
        font-size: 1.2rem;
    }

    .page-terms-conditions__card-text {
        font-size: 0.9rem;
    }

    .page-terms-conditions__cta-button {
        width: 100%;
        max-width: 320px; /* Max width for mobile CTA */
        font-size: 1rem;
        padding: 12px 20px;
    }

    .page-terms-conditions__image-content {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Ensure content images are fluid */
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-terms-conditions__hero-image {
        max-height: 300px;
    }

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

    .page-terms-conditions__section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
}

/* Ensure all content images adhere to min size and responsive rules */
.page-terms-conditions img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Include padding/border in width */
}

/* Specific rule to prevent content images from being too small in CSS */
.page-terms-conditions__introduction-section img,
.page-terms-conditions__key-terms-section img,
.page-terms-conditions__responsible-gaming-section img,
.page-terms-conditions__contact-section img {
    min-width: 200px;
    min-height: 200px;
}
/* Mobile specific overflow prevention */
@media (max-width: 768px) {
    .page-terms-conditions {
        overflow-x: hidden;
    }
    .page-terms-conditions img {
        max-width: 100% !important;
        height: auto !important;
    }
}