/* style/privacy-policy.css */

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

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Main text color, light for dark background */
    background-color: var(--background); /* Dark background */
    padding-bottom: 50px; /* Ensure space above footer */
}

/* 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 */
    text-align: center;
    background-color: var(--card-bg); /* Darker section background */
    border-bottom: 1px solid var(--divider);
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary); /* Secondary text color */
}

/* CTA Button */
.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--button-gradient); /* Button gradient */
    color: #ffffff; /* White text for button */
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

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

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

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

.page-privacy-policy__section-title {
    font-size: 2em;
    color: var(--gold); /* Gold for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--divider);
    padding-bottom: 10px;
}

.page-privacy-policy__section-title:first-of-type {
    margin-top: 0;
}

.page-privacy-policy__paragraph {
    margin-bottom: 1em;
    font-size: 1em;
    color: var(--text-secondary); /* Secondary text color for paragraphs */
}

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

.page-privacy-policy__list-item {
    margin-bottom: 0.5em;
}

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

.page-privacy-policy__link {
    color: var(--glow); /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Image with text block */
.page-privacy-policy__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-privacy-policy__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-privacy-policy__image-text-block .page-privacy-policy__content-image {
    flex: 1 1 40%; /* Adjust flex basis */
    min-width: 300px; /* Minimum width for image */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__image-text-block .page-privacy-policy__text-content {
    flex: 1 1 55%; /* Adjust flex basis */
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-privacy-policy__content-image--right {
    margin-left: auto; /* Align to right */
    margin-right: 0;
    max-width: 600px; /* Max width for content images */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: var(--deep-green); /* Dark green background for FAQ */
    padding: 60px 20px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title--light {
    color: var(--text-main); /* Light text for dark section titles */
    text-align: center;
    border-bottom: 2px solid var(--divider);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--card-bg); /* Card background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

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

.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome/Safari marker */
}

.page-privacy-policy__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Hover effect using border color */
}

.page-privacy-policy__faq-qtext {
    font-size: 1.1em;
    color: var(--gold); /* Gold for question text */
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow); /* Glow color for toggle */
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-privacy-policy__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Ensure content images are not too small in content area */
.page-privacy-policy__content-area img {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
    }
    .page-privacy-policy__content-area {
        padding: 30px 15px;
    }
    .page-privacy-policy__section-wrapper {
        padding: 25px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__image-text-block {
        flex-direction: column;
        align-items: center;
    }
    .page-privacy-policy__image-text-block--reverse {
        flex-direction: column; /* Consistent direction on mobile */
    }
    .page-privacy-policy__image-text-block .page-privacy-policy__content-image,
    .page-privacy-policy__image-text-block .page-privacy-policy__text-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-privacy-policy__content-image--right {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-privacy-policy__hero-section {
        padding: 20px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is small decoration */
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-privacy-policy__description {
        font-size: 1em;
    }
    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .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__image-text-block .page-privacy-policy__content-image,
    .page-privacy-policy__content-image--right {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-privacy-policy__content-area,
    .page-privacy-policy__section-wrapper,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-privacy-policy__section-title {
        font-size: 1.5em;
    }
    .page-privacy-policy__paragraph {
        font-size: 0.95em;
    }
    .page-privacy-policy__faq-qtext {
        font-size: 1em;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 1.2em;
    }
}