/* style/privacy-policy.css */

/* Custom Color Variables */
: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 color from custom palette */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-privacy-policy {
    background-color: var(--background-color); /* Explicitly set for content area to ensure contrast */
    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 */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 0 20px 40px; /* Adjust padding as needed, no top padding for hero */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-width: 1920px; /* Ensure it doesn't get too wide */
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 20px; /* Space between image and text */
    border-radius: 8px; /* Slightly rounded corners */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2em, 4vw, 3em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 15px;
}

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

.page-privacy-policy__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container width */
}

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

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

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

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

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--background-color); /* Ensure content area background matches body */
    color: var(--text-main);
}

.page-privacy-policy__section-intro {
    margin-bottom: 50px;
    padding-top: 10px; /* Small top padding for the first section */
}

.page-privacy-policy__section {
    margin-bottom: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--divider-color);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--gold-color); /* Use gold for main section titles */
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.page-privacy-policy__section-subtitle {
    font-size: 1.6em;
    color: var(--primary-color); /* Use primary color for subtitles */
    margin-bottom: 20px;
    font-weight: 600;
}

.page-privacy-policy__paragraph {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-privacy-policy__paragraph a {
    color: var(--gold-color);
    text-decoration: underline;
}

.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;
    font-size: 1em;
}

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

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    margin-top: 60px;
    padding-top: 40px;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-privacy-policy__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--deep-green-color); /* Darker green for summary */
}

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

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--gold-color);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    content: "−"; /* Change toggle on open */
}

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

.page-privacy-policy__faq-answer p {
    margin-bottom: 0; /* Remove bottom margin for paragraphs inside answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding-top: 10px; /* Small top padding for hero on tablets */
    }

    .page-privacy-policy__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 0 15px 30px;
    }

    .page-privacy-policy__hero-image {
        margin-bottom: 15px;
    }

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-privacy-policy__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width on mobile */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__content-area {
        padding: 20px 15px;
    }

    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__section-subtitle {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

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

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

    .page-privacy-policy__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-privacy-policy__faq-toggle {
        font-size: 1.3em;
    }

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