/* style/privacy-policy.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* This will be used by body, so content text must be light */
    --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, considering body background is dark */
.page-privacy-policy {
    background-color: var(--background-color); /* Ensure this matches body for consistency */
    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 on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green); /* Darker green for hero background */
    overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and text */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 font size */
    font-weight: 700;
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

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

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-privacy-policy__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--primary-color); /* Primary color text on transparent/light background */
    border: 2px solid var(--primary-color);
    margin-top: 15px; /* If used standalone or below primary */
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy__section-wrapper {
    background-color: var(--card-bg); /* Darker background for content sections */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color); /* Primary color for section titles */
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 15px;
}

.page-privacy-policy__sub-title {
    font-size: 1.6em;
    color: var(--gold-color); /* Gold for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy__paragraph {
    margin-bottom: 15px;
    color: var(--text-main); /* Main text color */
}

.page-privacy-policy__list {
    list-style: disc inside;
    margin-bottom: 15px;
    padding-left: 20px;
}

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    color: var(--text-secondary); /* Secondary text color for list items */
}

.page-privacy-policy__list-item strong {
    color: var(--text-main); /* Strong text should be main text color */
}

.page-privacy-policy__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy a {
    color: var(--primary-color); /* Primary color for links */
    text-decoration: underline;
}

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

/* FAQ Section */
.page-privacy-policy__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-privacy-policy__faq-list {
    margin-top: 30px;
}

.page-privacy-policy__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-privacy-policy__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-item summary:hover {
    background-color: rgba(var(--primary-color), 0.1); /* This is incorrect. Should use rgba(17, 168, 78, 0.1) */
    background-color: rgba(17, 168, 78, 0.1); /* Corrected rgba value for var(--primary-color) */
}

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

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color); /* Gold for FAQ questions */
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    pointer-events: none; /* Ensure clicking summary toggles, not just the +/- */
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    content: "−"; /* This will not work for details tag directly, handled by JS */
}

.page-privacy-policy__faq-answer {
    padding: 15px 25px 20px;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    border-top: 1px solid var(--divider-color); /* Add border for opened state */
}
.page-privacy-policy__faq-item:not([open]) .page-privacy-policy__faq-answer {
    border-top: none; /* No border when closed */
}

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

    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding for this section */
    }

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

    .page-privacy-policy__intro-description {
        font-size: 1em;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-privacy-policy__hero-content .page-privacy-policy__btn-primary {
        margin-bottom: 10px; /* Space between buttons if stacked */
    }

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

    .page-privacy-policy__section-wrapper {
        padding: 20px;
        margin-bottom: 30px;
    }

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

    .page-privacy-policy__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__content-area,
    .page-privacy-policy__section-wrapper,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-list,
    .page-privacy-policy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Handled by parent padding */
        padding-right: 0 !important; /* Handled by parent padding */
        overflow: hidden !important;
    }

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

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

/* Ensure no image filters are used */
.page-privacy-policy img {
    filter: none !important;
}

/* Content area image size minimums for desktop */
.page-privacy-policy__content-area img,
.page-privacy-policy__section-wrapper img {
    min-width: 200px;
    min-height: 200px;
}