/* style/terms-conditions.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07;
    --background-color: #FFFFFF;
}

/* Base styles for the page content */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Dark text for light body background */
    background-color: var(--background-color); /* Explicitly set for clarity, though body is already white */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--primary-color); /* Use brand color for hero section background */
    color: var(--text-light); /* Light text on primary color background */
    text-align: center;
    overflow: hidden;
    display: flex; /* Use flex to stack image and content vertically */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Or match the container width if desired */
    margin: 0 auto;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
    filter: none; /* No filter */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px; /* Add some space below the image */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-light); /* Light text on primary color background */
}

.page-terms-conditions__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light); /* Light color for title on primary background */
}

.page-terms-conditions__description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light); /* Light color for description on primary background */
}

/* Content Area */
.page-terms-conditions__content-area {
    padding: 40px 0;
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-terms-conditions__section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.page-terms-conditions__text-block li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-terms-conditions a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #007bb5; /* Slightly darker blue on hover */
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    filter: none; /* No filter */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* CTA Section */
.page-terms-conditions__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-terms-conditions__cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
    background-color: var(--button-login); /* Use login color for primary action */
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-terms-conditions__btn-primary:hover {
    background-color: #c96806; /* Darkened version of #EA7C07 */
    border-color: #c96806;
}

.page-terms-conditions__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-terms-conditions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-content {
        margin-top: 15px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__container {
        padding: 0 15px;
    }

    .page-terms-conditions__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 20px;
    }

    .page-terms-conditions__hero-content {
        margin-top: 15px; /* Adjust for mobile */
        padding: 15px;
    }

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

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

    .page-terms-conditions__section-title {
        font-size: 1.7rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__text-block p,
    .page-terms-conditions__text-block li {
        font-size: 0.95rem;
    }

    .page-terms-conditions__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-terms-conditions__cta-title {
        font-size: 2rem;
    }

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

    .page-terms-conditions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Generic image/video/container responsive rules for safety */
    .page-terms-conditions img,
    .page-terms-conditions video,
    .page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__video-section,
    .page-terms-conditions__video-container,
    .page-terms-conditions__video-wrapper,
    .page-terms-conditions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-terms-conditions__video-section {
        padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
    }
}