/* 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; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

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

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
    overflow: hidden;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #FFFF00; /* Yellow for prominence */
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #017439; /* Brand primary color */
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-terms-conditions a {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Call to Action Section */
.page-terms-conditions__cta-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for prominence */
}

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

/* Buttons */
.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Red for action */
    color: #FFFF00; /* Yellow for text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for questions */
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-section {
        padding-bottom: 40px;
    }

    .page-terms-conditions__hero-content {
        padding: 30px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__content-area {
        padding: 40px 0;
    }

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

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

    .page-terms-conditions p, .page-terms-conditions li {
        font-size: 0.95em;
    }

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

    /* Video section padding-top (if video exists, ensure it's not covered by header) */
    .page-terms-conditions__video-section {
        padding-top: var(--header-offset, 120px) !important; 
    }

    /* Buttons */
    .page-terms-conditions__btn-primary, 
    .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: 12px 15px;
        font-size: 1em;
    }
    .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;
        gap: 10px;
        overflow: hidden !important;
    }
    .page-terms-conditions__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* CTA Section */
    .page-terms-conditions__cta-section {
        padding: 30px 20px;
        margin-top: 40px;
    }

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

    .page-terms-conditions__cta-description {
        font-size: 0.95em;
    }

    /* FAQ */
    .page-terms-conditions__faq-question {
        font-size: 1.05em;
        padding: 15px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 15px;
    }
}

/* Body background is #0a0a0a (dark), so text color should be light #ffffff */
/* This is already handled by the top-level .page-terms-conditions selector */

/* Ensure contrast for specific elements */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep dark background, so light text */
}

.page-terms-conditions__light-bg {
  color: #ffffff; /* This section also uses dark background, so light text */
  background: #0a0a0a;
}

/* Specific contrast fixes if needed for brand colors */
.page-terms-conditions__btn-primary {
  background: #C30808;
  color: #FFFF00; /* Yellow text on red button for high contrast */
}

.page-terms-conditions__faq-question {
  color: #FFFF00; /* Yellow text on dark background */
}