/* style/privacy-policy.css */

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

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-privacy-policy {
    background-color: var(--page-privacy-policy-main-bg); /* Ensure consistency if shared.css background is overridden */
    color: var(--page-privacy-policy-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

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

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

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-privacy-policy__hero-content {
    position: relative; /* Not absolute, to flow below image */
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2rem, 4vw, 3rem); /* Use clamp for H1 */
    color: var(--page-privacy-policy-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

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

/* Buttons */
.page-privacy-policy__btn-primary {
    display: inline-block;
    background: var(--page-privacy-policy-button-gradient);
    color: #ffffff; /* White text for gradient button */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    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);
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 60px 20px;
    background-color: var(--page-privacy-policy-main-bg); /* Dark background */
    color: var(--page-privacy-policy-text-main); /* Light text */
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for desktop */
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: 2.2rem;
    color: var(--page-privacy-policy-gold-color);
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 2px solid var(--page-privacy-policy-divider-color);
    padding-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy__sub-title {
    font-size: 1.6rem;
    color: var(--page-privacy-policy-secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-privacy-policy__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--page-privacy-policy-text-main);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

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

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

.page-privacy-policy__link {
    color: var(--page-privacy-policy-secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

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

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

.page-privacy-policy__faq-item {
    background-color: var(--page-privacy-policy-card-bg); /* Dark card background */
    border: 1px solid var(--page-privacy-policy-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-privacy-policy-text-main); /* Light text */
}

.page-privacy-policy__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-privacy-policy-gold-color);
    background-color: var(--page-privacy-policy-deep-green); /* Slightly different dark background for summary */
    transition: background-color 0.3s ease;
}

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

.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;
}

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

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

.page-privacy-policy__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--page-privacy-policy-text-secondary); /* Secondary text for answers */
    border-top: 1px solid var(--page-privacy-policy-border-color);
}

/* Ensure content area images are not too small */
.page-privacy-policy img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow CSS to control width for responsive */
    height: auto;
}

/* 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 already handles offset */
    }

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

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for mobile */
        margin-bottom: 15px;
    }

    .page-privacy-policy__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

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

    .page-privacy-policy__container {
        padding: 0; /* Remove inner padding on mobile, sections already have 15px */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-privacy-policy__sub-title {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__text-block,
    .page-privacy-policy__list-item {
        font-size: 0.95rem;
    }

    /* Mobile image responsive adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to img to match container padding */
        padding-right: 15px;
    }

    .page-privacy-policy__hero-image {
        padding-left: 0;
        padding-right: 0;
    }

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

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