/* style/terms-conditions.css */

/* Variables from color scheme */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* This is the body background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body has dark background */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--background-color); /* Ensure this matches body for consistency */
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--deep-green); /* A darker shade for the hero background */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-terms-conditions__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-terms-conditions__intro-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* General Content Sections */
.page-terms-conditions__content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-terms-conditions__content-section:last-of-type {
    border-bottom: none;
}

/* Backgrounds for content sections for contrast */
.page-terms-conditions__dark-bg {
    background-color: var(--card-bg); /* Darker background, use light text */
    color: var(--text-main);
}

.page-terms-conditions__light-bg {
    background-color: #1A3528; /* Slightly lighter dark background for contrast */
    color: var(--text-main); /* Still use light text */
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
    background-color: var(--deep-green);
    padding: 80px 0;
    text-align: center;
}

.page-terms-conditions__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-terms-conditions__cta-section .page-terms-conditions__section-title {
    color: var(--gold-color);
    margin-bottom: 20px;
}

.page-terms-conditions__cta-section .page-terms-conditions__paragraph {
    max-width: 800px;
    margin-bottom: 40px;
    color: var(--text-main);
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-terms-conditions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-terms-conditions__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--deep-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: #1A3528; /* Light background for contrast */
    color: var(--text-main);
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    margin-bottom: 40px;
    color: var(--gold-color);
}

.page-terms-conditions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
}

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

.page-terms-conditions__faq-question:hover {
    background-color: var(--deep-green);
}

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

.page-terms-conditions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-terms-conditions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    max-height: 0; /* For JS based accordion, but details handles this */
    overflow: hidden; /* For JS based accordion */
    transition: max-height 0.3s ease-out; /* For JS based accordion */
}

/* When details is open */
.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
    max-height: fit-content; /* Override for details, or remove this rule if not using JS max-height */
    padding-top: 10px;
}

/* Copyright Info */
.page-terms-conditions__copyright-info {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--background-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

    .page-terms-conditions__hero-section {
        padding-top: 10px !important; /* Small top padding, not --header-offset */
        padding-bottom: 40px;
    }

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

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

    .page-terms-conditions__section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .page-terms-conditions__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    /* Images responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min-size on mobile too */
        min-height: 200px !important; /* Enforce min-size on mobile too */
    }

    /* Video responsiveness (if any, though not for this page) */
    .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-section {
      padding-top: 10px !important;
    }
    
    .page-terms-conditions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Button 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;
        padding: 12px 20px; /* Adjust padding for mobile */
        font-size: 1rem;
    }

    .page-terms-conditions__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-terms-conditions__cta-container {
        padding: 0 15px; /* Adjust padding for CTA container on mobile */
    }

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

    .page-terms-conditions__faq-toggle {
        font-size: 1.2rem;
    }
    
    /* Ensure content sections and cards respect mobile width */
    .page-terms-conditions__content-section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

/* Contrast Fix (as per instructions, though applied by design already) */
.page-terms-conditions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-terms-conditions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}