/* style/privacy-policy.css */

/* Custom Properties based on provided color scheme */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Auxiliary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Page specific 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, ensuring contrast with body background */
.page-privacy-policy {
    background-color: var(--background-color-page); /* Use custom background color */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Minimal top padding, more bottom padding */
    text-align: center;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    margin-bottom: 20px; /* Space between image and content */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin-top: 20px; /* Space from image */
}

.page-privacy-policy__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.page-privacy-policy__tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure minimum width for buttons */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-privacy-policy__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-privacy-policy__content-area,
.page-privacy-policy__faq-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--card-bg); /* Use card background for content areas */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-privacy-policy__section-title {
    font-size: 2rem;
    color: var(--gold-color); /* Gold for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__sub-section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--text-main); /* Ensure text is main color */
}

.page-privacy-policy strong {
    color: var(--gold-color);
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-privacy-policy__contact-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-privacy-policy__contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-privacy-policy__contact-item a:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

/* Call to Action Section */
.page-privacy-policy__cta-section {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.page-privacy-policy__cta-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy__cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-privacy-policy__faq-item details {
    border-radius: 8px; /* Ensure details element also has border-radius */
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for summary */
}

/* Hide default marker for details/summary */
.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-privacy-policy__faq-item summary::marker {
    display: none;
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-privacy-policy__faq-question:hover .page-privacy-policy__faq-toggle {
    color: #ffffff;
}

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or similar */
    color: #ffffff;
}

.page-privacy-policy__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-privacy-policy__faq-answer p {
    margin-bottom: 0;
    color: var(--text-secondary); /* Ensure text is secondary color */
}

/* Responsive design for tablets and smaller desktops */
@media (max-width: 1024px) {
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section {
        margin: 30px 15px;
        padding: 15px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .page-privacy-policy__tagline {
        font-size: 1.1rem;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 160px;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-privacy-policy__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-privacy-policy__hero-content {
        padding: 0 15px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-privacy-policy__tagline {
        font-size: 1rem;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add horizontal padding to container */
    }

    /* Mobile forced styles for images, videos, buttons, and containers */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy video,
    .page-privacy-policy__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all content containers are responsive */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__cta-section,
    .page-privacy-policy__video-section,
    .page-privacy-policy__video-container,
    .page-privacy-policy__video-wrapper,
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-privacy-policy__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-privacy-policy__section-title {
        font-size: 1.7rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-section-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__list {
        margin-left: 20px;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-privacy-policy__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .page-privacy-policy__cta-title {
        font-size: 1.5rem;
    }

    .page-privacy-policy__cta-description {
        font-size: 1rem;
    }
}