/* style/privacy-policy.css */

/* --- Base Styles & Color Contrast --- */
.page-privacy-policy {
    background-color: #08160F; /* Dark background */
    color: #F2FFF6; /* Light text for readability */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure all text within the page content has good contrast */
.page-privacy-policy h1,
.page-privacy-policy h2,
.page-privacy-policy h3,
.page-privacy-policy p,
.page-privacy-policy li,
.page-privacy-policy a {
    color: #F2FFF6; /* Main text color */
}

/* Secondary text color for less prominent elements */
.page-privacy-policy__description,
.page-privacy-policy__list-item strong {
    color: #A7D9B8; /* Secondary text color */
}

/* Link color - adjust for contrast, maybe use main brand color with underline */
.page-privacy-policy a {
    color: #2AD16F; /* A brighter green from the button gradient for links */
    text-decoration: underline;
}

.page-privacy-policy a:hover {
    color: #13994A; /* Darker green on hover */
    text-decoration: none;
}

/* --- Layout & Structure --- */
.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-privacy-policy__section {
    padding: 40px 0;
    border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-privacy-policy__section:last-of-type {
    border-bottom: none;
}

/* --- Hero Section --- */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px; /* Space below content */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Minimum height for hero image */
    max-height: 600px; /* Max height to prevent overly large image */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6;
    max-width: 100%;
    box-sizing: border-box;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8;
}

/* --- Call to Action Button --- */
.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* --- Section Titles --- */
.page-privacy-policy__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #F2FFF6;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- Text Blocks --- */
.page-privacy-policy__text-block {
    margin-bottom: 15px;
    font-size: 1em;
    color: #F2FFF6;
}

/* --- Lists --- */
.page-privacy-policy__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #F2FFF6;
}

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

/* --- Images in Content --- */
.page-privacy-policy__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-height: 200px;
    max-width: 800px;
}

/* --- FAQ Section --- */
.page-privacy-policy__faq-section {
    background-color: #11271B; /* Card BG color for FAQ section */
    padding: 60px 0;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-privacy-policy__faq-item {
    background-color: #08160F; /* Darker background for individual FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #11271B; /* Card BG color for question header */
    color: #F2FFF6;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #1E3A2A;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #2AD16F;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross when open */
}

.page-privacy-policy__faq-answer {
    padding: 0 25px 15px 25px;
    font-size: 0.95em;
    color: #A7D9B8;
    max-height: 0; /* For div implementation, controlled by JS */
    overflow: hidden; /* For div implementation, controlled by JS */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
    max-height: fit-content; /* For details implementation */
    padding: 15px 25px 25px 25px;
}
/* For JS-controlled div structure, the active class would manage max-height */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content, use !important for JS control */
    padding: 15px 25px 25px 25px;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
}

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

    .page-privacy-policy__container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

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

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-privacy-policy__cta-button {
        padding: 10px 20px;
        font-size: 1em;
        width: 100% !important; /* Ensure button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Containers for images, buttons, etc. */
    .page-privacy-policy__section,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__hero-content,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-item,
    .page-privacy-policy__faq-question,
    .page-privacy-policy__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust padding for sections on mobile */
    .page-privacy-policy__section {
        padding: 30px 0;
    }
    
    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

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

    .page-privacy-policy__faq-answer {
        padding: 0 20px 10px 20px;
    }
    .page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}