.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
    padding-bottom: 40px;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default column for mobile, desktop will be row */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 40px; /* Small top padding, no var(--header-offset) here */
    background-color: #E53935; /* Main color as background */
    color: #ffffff;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    margin-bottom: 30px; /* Space between content and image on desktop */
}

.page-terms-conditions__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

.page-terms-conditions__hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    margin-top: 20px; /* Space between content and image */
    position: relative;
    z-index: 1;
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover; /* Default for desktop */
}

/* General Section Styles */
.page-terms-conditions__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F5F7FA; /* Background */
}

.page-terms-conditions__section:nth-of-type(odd) {
    background-color: #F5F7FA; /* Background */
}

.page-terms-conditions__section:nth-of-type(even) {
    background-color: #ffffff; /* Card BG */
}

.page-terms-conditions__section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    color: #E53935; /* Main color */
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF5A4F; /* Auxiliary color */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__content-block {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto;
    color: #333333; /* Text Main */
}

.page-terms-conditions__content-block p {
    margin-bottom: 15px;
}

.page-terms-conditions__content-block ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-terms-conditions__content-block li {
    margin-bottom: 8px;
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-terms-conditions__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

.page-terms-conditions__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #E53935; /* Main color */
    border: 2px solid #E53935; /* Main color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.page-terms-conditions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #333333; /* Text Main */
    font-weight: 600;
}

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

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
    background: #f5f5f5;
}

.page-terms-conditions__faq-qtext {
    flex: 1;
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Text Main */
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #E53935; /* Main color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: #333333; /* Text Main */
    font-size: 16px;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-terms-conditions__hero-section {
        flex-direction: row;
        padding: 10px 20px 40px;
        text-align: left;
        justify-content: space-between;
        align-items: flex-start;
    }

    .page-terms-conditions__hero-content {
        margin-right: 40px;
        margin-bottom: 0;
        flex: 1;
        padding: 20px 0;
    }

    .page-terms-conditions__hero-image {
        flex: 1;
        margin-top: 0;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.65;
    }

    /* HERO 主图区域 */
    .page-terms-conditions__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }

    .page-terms-conditions__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__hero-image {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to image container */
    }

    .page-terms-conditions__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        border-radius: 4px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-terms-conditions__section {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__section-title {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 25px;
        padding-bottom: 8px;
        border-bottom-width: 1px;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-terms-conditions__content-block {
        font-size: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-terms-conditions__content-block p {
        margin-bottom: 12px;
    }

    .page-terms-conditions__content-block ul {
        margin-left: 20px;
    }

    .page-terms-conditions__content-block li {
        margin-bottom: 6px;
    }

    /* 通用图片与容器 */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 按钮与按钮容器 */
    .page-terms-conditions__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button group */
    }

    .page-terms-conditions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 40px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section Mobile */
    details.page-terms-conditions__faq-item {
        margin-bottom: 12px;
        border-radius: 6px;
    }

    details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
        padding: 15px;
    }

    .page-terms-conditions__faq-qtext {
        font-size: 16px;
    }

    .page-terms-conditions__faq-toggle {
        font-size: 20px;
        margin-left: 10px;
        width: 24px;
        height: 24px;
    }

    details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }
}