/* style/privacy-policy.css */

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

/* Base styles for the page content */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--bg-body); /* Set page background from custom palette */
}

/* Ensure all images are responsive by default */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slightly rounded corners for aesthetics */
    object-fit: cover;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0 60px; /* Adjusted padding to prevent header overlap, body handles top padding */
    background-color: var(--bg-body);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text-main);
    z-index: 1; /* Ensure text is above image if any overlap */
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Soft glow from Glow color */
}

.page-privacy-policy__intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* CTA Buttons in Hero */
.page-privacy-policy__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 250px; /* Max width for individual buttons on desktop */
}

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

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(17, 168, 78, 0.4);
}

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

.page-privacy-policy__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(17, 168, 78, 0.2);
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-body); /* Consistent with body background */
    color: var(--text-main);
}

.page-privacy-policy__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--color-gold); /* Gold for section titles */
    border-bottom: 2px solid var(--color-divider);
    padding-bottom: 10px;
}

.page-privacy-policy__paragraph {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
}

.page-privacy-policy__list-item strong {
    color: var(--text-main);
}

.page-privacy-policy__image-content {
    margin: 30px auto;
    max-width: 800px; /* Max width for content images */
    border: 1px solid var(--border-color);
}

.page-privacy-policy a {
    color: var(--color-glow); /* Links use glow color */
    text-decoration: underline;
}

.page-privacy-policy a:hover {
    color: var(--color-primary);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 20px;
    background-color: var(--bg-card); /* Darker background for FAQ */
    color: var(--text-main);
}

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card); /* Card background for FAQ items */
}

.page-privacy-policy__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: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    background-color: var(--bg-card);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-glow);
}

.page-privacy-policy__faq-answer {
    padding: 0 25px 18px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section at bottom */
.page-privacy-policy__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-deep-green); /* Use deep green for final CTA */
    color: var(--text-main);
}

.page-privacy-policy__cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-privacy-policy__cta-container .page-privacy-policy__section-title {
    color: var(--color-gold);
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.page-privacy-policy__cta-container .page-privacy-policy__paragraph {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-image {
        max-height: 400px;
    }
}

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

    /* All images must be responsive */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/videos/buttons */
    .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 {
        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 handles --header-offset */
        padding-bottom: 40px;
    }

    .page-privacy-policy__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

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

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

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100%; /* Allow button group to take full width */
        padding: 0; /* Remove horizontal padding as container handles it */
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item,
    .page-privacy-policy__faq-answer {
        font-size: 0.95rem;
    }

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

    .page-privacy-policy__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }
    .page-privacy-policy__intro-text {
        font-size: 0.9rem;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
}