/* style/terms-conditions.css */
/* Base styles for the terms-conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Default text color for the page, assuming a dark background for body overall. */
    background-color: #08160F; /* Overall background for the main content area */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #08160F; /* Ensure hero section also has a background */
    padding-bottom: 60px; /* Add padding at the bottom for separation */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for visual depth */
}

.page-terms-conditions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-terms-conditions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-terms-conditions__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Border color with opacity */
    transform: translateY(-2px);
}

/* General Section Styling */
.page-terms-conditions__section {
    padding: 60px 20px;
    background-color: #0A4B2C; /* Deep Green for alternating sections */
    color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__section:nth-of-type(even) {
    background-color: #08160F; /* Background for alternating sections */
}

.page-terms-conditions__dark-bg {
    background-color: #11271B; /* Card BG for dark sections */
    color: #F2FFF6; /* Text Main */
}

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

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions strong {
    color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-terms-conditions__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-terms-conditions__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.page-terms-conditions__content-grid > div {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border color */
}

/* FAQ Section */
.page-terms-conditions__faq {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
}

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

.page-terms-conditions__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: #F2C14E; /* Gold */
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #2E7A4E; /* Divider */
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.3); /* Border color with opacity */
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-question {
    border-bottom: 1px solid #2E7A4E;
}

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

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-terms-conditions__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
    background-color: #0A4B2C; /* Deep Green */
    border-top: none;
}

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

/* Links */
.page-terms-conditions a {
    color: #57E38D; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #F2C14E; /* Gold */
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: clamp(2em, 6vw, 3em);
    }

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

    .page-terms-conditions__hero-image-wrapper {
        max-width: 100%;
    }
    .page-terms-conditions__hero-image {
        max-height: 400px;
    }
}

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

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

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

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

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

    .page-terms-conditions__section {
        padding: 40px 15px;
    }

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

    .page-terms-conditions p,
    .page-terms-conditions__list li,
    .page-terms-conditions__ordered-list li,
    .page-terms-conditions__faq-answer {
        font-size: 0.95em;
    }

    .page-terms-conditions__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-terms-conditions__content-grid > div {
        min-width: unset;
        width: 100%;
    }

    .page-terms-conditions__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-terms-conditions__container {
        padding: 0; /* Remove horizontal padding, handled by section */
    }
    
    /* Mobile image and video responsiveness (mandatory) */
    .page-terms-conditions img {
        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__content-grid,
    .page-terms-conditions__cta-buttons,
    .page-terms-conditions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-terms-conditions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-terms-conditions video,
    .page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-terms-conditions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}