/* style/terms-conditions.css */

/* Base styles for the page, inheriting body's dark background and light text */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Ensure consistent background */
}

/* Container for main content, often centered with a max-width */
.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    overflow: hidden; /* Ensure no overflow from images */
    background-color: #121212; /* Ensure consistent background */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-terms-conditions__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 30px;
    border-radius: 12px;
    background-color: rgba(38, 169, 224, 0.15); /* Semi-transparent brand color for contrast */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-terms-conditions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-terms-conditions__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Content Sections */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for content contrast */
    color: #f0f0f0;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: #26A9E0; /* Brand color for titles */
    text-align: left;
    padding-top: 20px;
}

.page-terms-conditions p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-terms-conditions p a,
.page-terms-conditions li a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-terms-conditions p a:hover,
.page-terms-conditions li a:hover {
    color: #1a8cc4;
    text-decoration: none;
}

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

.page-terms-conditions__list li {
    margin-bottom: 10px;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Example max-width for content images */
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    object-fit: cover;
}

.page-terms-conditions__image--left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.page-terms-conditions__image--right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Clear floats */
.page-terms-conditions__content-section::after {
    content: "";
    display: table;
    clear: both;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: #121212; /* Darker background for FAQ section */
    color: #ffffff;
}

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

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    background-color: rgba(38, 169, 224, 0.08); /* Subtle background for FAQ item */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(38, 169, 224, 0.2);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(38, 169, 224, 0.15); /* Slightly darker for question area */
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.25);
}

/* Hide default details marker */
.page-terms-conditions__faq-item summary {
    list-style: none;
}
.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
    border-top: 1px solid rgba(38, 169, 224, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-content {
        max-width: 90%;
    }
}

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

    .page-terms-conditions__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-terms-conditions__hero-content {
        padding: 20px;
        max-width: 100%;
        margin: 0 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 2em; /* Adjust for mobile */
    }

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

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-terms-conditions__content-section,
    .page-terms-conditions__faq-section {
        padding: 40px 0;
    }

    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

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

    .page-terms-conditions__list {
        margin-left: 35px; /* Adjust for padding + list-style */
        padding-right: 15px;
    }

    .page-terms-conditions__image {
        float: none;
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-terms-conditions__image--left,
    .page-terms-conditions__image--right {
        margin-left: auto;
        margin-right: auto;
    }

    .page-terms-conditions__content-section .page-terms-conditions__container {
        padding: 0; /* Remove container padding as text/titles/lists will have it */
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-terms-conditions__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__video-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
}