/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Inherit from body var(--dark-bg) */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Blend of brand colors */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* For image positioning */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f8ff; /* Slightly lighter white for readability */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle background */
    z-index: 0;
    filter: none; /* Ensure no filter is used */
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* A darker background for content sections, contrasting with white text */
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for main titles */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(38, 169, 224, 0.3);
    padding-bottom: 15px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: #f0f8ff; /* Slightly off-white for sub-titles */
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    color: #e0e0e0; /* Light gray for body text */
}

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

.page-terms-conditions__list-item {
    margin-bottom: 8px;
    color: #e0e0e0;
}

/* Images within content */
.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    filter: none; /* Ensure no filter is used */
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    margin-right: 15px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 60px 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__faq-item {
    background-color: #222222; /* Slightly lighter dark background for FAQ items */
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #e0e0e0;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for questions */
    cursor: pointer;
    background-color: #2a2a2a;
    border-bottom: 1px solid rgba(38, 169, 224, 0.2);
    list-style: none; /* For details/summary */
}

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

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

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: #cccccc;
    background-color: #222222;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding: 30px 15px;
        margin: 15px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Allow smaller images if needed, but still >= 200px */
        min-height: unset; /* Allow smaller images if needed, but still >= 200px */
    }

    /* Ensure image containers also adapt */
    .page-terms-conditions__content-area,
    .page-terms-conditions__container,
    .page-terms-conditions__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0;
        margin-bottom: 15px; /* Stack buttons vertically */
    }
    
    .page-terms-conditions__hero-content .page-terms-conditions__btn-primary {
        margin-bottom: 0; /* Adjust if only one button in hero */
    }

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

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

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