/* style/terms-conditions.css */

/* Base styles for the page content, considering dark body background */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text color for dark body background */
    background-color: transparent; /* Main content area will inherit body background or have its own section background */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-terms-conditions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff; /* White text for contrast on dark overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Main Content Wrapper */
.page-terms-conditions__content-wrapper {
    padding: 60px 0;
    background-color: #0a0a0a; /* Explicitly set background to match body */
    color: #f0f0f0; /* Ensure light text on this dark background */
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(38, 169, 224, 0.5);
    padding-bottom: 10px;
}

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

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

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

.page-terms-conditions__paragraph a:hover {
    color: #4dc2f7; /* Lighter shade on hover */
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.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: #1a8ac7; /* Slightly darker */
    border-color: #1a8ac7;
}

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

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

/* Image with text block */
.page-terms-conditions__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__image-text-block--reversed {
    flex-direction: row-reverse;
}

.page-terms-conditions__image-text-block .page-terms-conditions__image {
    flex: 1;
    min-width: 300px; /* Minimum width for image before wrapping */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* No filter for colors */
    max-width: 100%; /* Ensure responsive */
    height: auto; /* Ensure responsive */
    display: block; /* Ensure responsive */
}

.page-terms-conditions__image-text-block .page-terms-conditions__text-content {
    flex: 2;
    min-width: 300px; /* Minimum width for text before wrapping */
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #f0f0f0;
    border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #ffffff;
    background-color: rgba(38, 169, 224, 0.2); /* Brand color for summary background */
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-item summary:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific image adaptation */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile specific video adaptation - if any */
    .page-terms-conditions video,
    .page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile specific button adaptation */
    .page-terms-conditions__cta-button,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary,
    .page-terms-conditions a[class*="button"],
    .page-terms-conditions a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px; /* Add padding to prevent text touching edges */
      padding-right: 15px; /* Add padding to prevent text touching edges */
    }
    
    /* Button containers for mobile */
    .page-terms-conditions__cta-buttons,
    .page-terms-conditions__button-group,
    .page-terms-conditions__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important; /* Allow multiple buttons to wrap */
      gap: 10px; /* Space between buttons */
    }
    .page-terms-conditions__cta-buttons {
      display: flex; /* Ensure flex for wrapping */
      flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* General containers for mobile */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important; /* Add padding for content */
      padding-right: 15px !important; /* Add padding for content */
      overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-terms-conditions__hero-section {
        height: 50vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }
    .page-terms-conditions__image-text-block {
        flex-direction: column; /* Stack image and text vertically */
        gap: 20px;
    }
    .page-terms-conditions__image-text-block--reversed {
        flex-direction: column; /* Stack image and text vertically */
    }
    .page-terms-conditions__image-text-block .page-terms-conditions__image {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Full width */
    }
    .page-terms-conditions__image-text-block .page-terms-conditions__text-content {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Full width */
    }
    .page-terms-conditions__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-terms-conditions__faq-answer {
        padding: 10px 20px 15px;
    }
}