/* Base styles for the page-terms-conditions */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background-color: #F5F7FA; /* Background color for the page content */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    padding-bottom: 40px;
    text-align: center;
}

.page-terms-conditions__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

.page-terms-conditions__heading-primary {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Primary Button */
.page-terms-conditions__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

/* Content Section */
.page-terms-conditions__content-section {
    padding: 40px 0;
    background-color: #ffffff; /* Card BG color */
    border-bottom: 1px solid #E0E0E0; /* Border color */
}

.page-terms-conditions__heading-secondary {
    font-size: 2em;
    font-weight: 700;
    color: #E53935; /* Main brand color */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF5A4F; /* Auxiliary brand color */
}

.page-terms-conditions__heading-tertiary {
    font-size: 1.5em;
    font-weight: 600;
    color: #333333; /* Main text color */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333333;
}

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

.page-terms-conditions__list li {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #333333;
}

.page-terms-conditions a {
    color: #E53935; /* Link color */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #FF5A4F; /* Hover link color */
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 40px 0;
    background-color: #F5F7FA; /* Background color for this section */
}

.page-terms-conditions__faq-list {
    margin-top: 30px;
}

.page-terms-conditions__faq-item {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #fcfcfc;
    position: relative;
    list-style: none; /* For details/summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
    display: none;
}

.page-terms-conditions__faq-question::marker {
    display: none;
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #E53935;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

/* Ensure no filter on images */
.page-terms-conditions img {
    filter: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__container {
        padding: 20px 30px;
    }

    .page-terms-conditions__heading-primary {
        font-size: 2.5em;
    }

    .page-terms-conditions__heading-secondary {
        font-size: 1.8em;
    }

    .page-terms-conditions__heading-tertiary {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 主图区域 */
    .page-terms-conditions__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        padding-bottom: 30px;
    }
    .page-terms-conditions__hero-content {
        padding: 0 15px;
    }
    .page-terms-conditions__heading-primary {
        font-size: 2em;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .page-terms-conditions__intro-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* 2. 长文金框区 - This page uses content-section as main text area */
    .page-terms-conditions__content-section {
        padding: 30px 0;
    }
    .page-terms-conditions__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__heading-secondary {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-terms-conditions__heading-tertiary {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-terms-conditions p,
    .page-terms-conditions li {
        font-size: 0.95em;
        line-height: 1.6;
    }

    /* 3. 游戏轮播 (Placeholder for checklist, not used on this page) */
    .page-terms-conditions__slider-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-terms-conditions__slider-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding-bottom: 10px; /* For scrollbar */
    }
    .page-terms-conditions__game-slide {
        flex: 0 0 180px; /* Adjust width for mobile */
        max-width: 180px;
    }

    /* 4. 合作品牌六宫格 (Placeholder for checklist, not used on this page) */
    .page-terms-conditions__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for mobile */
        gap: 8px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__banner-item img {
         /* Smaller images for mobile */
        
        width: auto !important;
        height: auto !important;
    }

    /* 5. 博客卡片区 (Placeholder for checklist, not used on this page) */
    .page-terms-conditions__blog-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-terms-conditions__blog-card-link {
        width: 100%;
    }
    .page-terms-conditions__blog-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-terms-conditions__blog-slider-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding-bottom: 10px; /* For scrollbar */
    }
    .page-terms-conditions__blog-slide {
        flex: 0 0 90%; /* Allow horizontal scroll, show most of one card */
        max-width: 90%;
    }

    /* 6. 通用图片与容器 */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Reset min-width for mobile */
        min-height: unset !important; /* Reset min-height for mobile */
    }
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 7. 按钮与按钮容器 */
    .page-terms-conditions__btn-primary,
    .page-terms-conditions a[class*="button"],
    .page-terms-conditions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1em;
    }
    .page-terms-conditions__cta-buttons, /* Assuming a container for multiple buttons */
    .page-terms-conditions__button-group,
    .page-terms-conditions__btn-container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section Mobile */
    .page-terms-conditions__faq-section {
        padding: 30px 0;
    }
    .page-terms-conditions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px 15px;
    }
}