/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body or shared.css */
}

.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;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    text-align: center;
    background: #26A9E0; /* Brand primary color for hero */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure hero section has some height */
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-terms-conditions__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Call to action button */
.page-terms-conditions__btn-primary {
    display: inline-block;
    background: #EA7C07; /* Login/promotion color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #c76a06;
}

/* Content Area */
.page-terms-conditions__content-area {
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-terms-conditions__content-area .page-terms-conditions__container {
    max-width: 1000px; /* Slightly narrower content for readability */
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333333; /* Ensure readability */
}

.page-terms-conditions a {
    color: #26A9E0; /* Brand primary color for links */
    text-decoration: none;
}

.page-terms-conditions a:hover {
    text-decoration: underline;
}

.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-terms-conditions__faq-list {
    margin-top: 40px;
}

.page-terms-conditions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #26A9E0; /* Brand primary color for question background */
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #1e87b7;
}

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

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

.page-terms-conditions__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0;
}

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

    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-terms-conditions__main-title {
        font-size: 2.2em;
    }

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

    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.3em;
    }

    /* Images */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Containers for images */
    .page-terms-conditions__content-area,
    .page-terms-conditions__hero-section,
    .page-terms-conditions__faq-list,
    .page-terms-conditions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are handled by .page-terms-conditions__container */
    }

    /* Buttons */
    .page-terms-conditions__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

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

/* No CSS filters allowed on images */
.page-terms-conditions img {
  filter: none;
}