/* style/privacy-policy.css */

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

/* Base styles for the page content, considering dark body background */
.page-privacy-policy {
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--bg); /* Ensure consistency, though body handles main bg */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-green); /* A darker green for the hero section background */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size with clamp */
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* General Section Styles */
.page-privacy-policy__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider);
}

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

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

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-privacy-policy__text-block h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    color: var(--gold);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-privacy-policy__list a,
.page-privacy-policy__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__list a:hover,
.page-privacy-policy__text-block a:hover {
    color: var(--gold);
}

/* Image with Content Block */
.page-privacy-policy__image-content-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

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

.page-privacy-policy__image-content-block .page-privacy-policy__content-image {
    flex: 1;
    min-width: 200px; /* Minimum size for content images */
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-privacy-policy__image-content-block .page-privacy-policy__text-block {
    flex: 1.5;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: var(--card-bg); /* Darker background for FAQ */
    padding: 80px 0;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-privacy-policy__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--gold);
    outline: none;
    list-style: none; /* Remove default marker */
}

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

.page-privacy-policy__faq-question {
    flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.page-privacy-policy__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-privacy-policy__faq-answer p {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 40px 20px;
    }

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

    .page-privacy-policy__description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

    .page-privacy-policy__image-content-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-privacy-policy__image-content-block--reversed {
        flex-direction: column; /* Revert to column for reversed block on smaller screens */
    }

    .page-privacy-policy__image-content-block .page-privacy-policy__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific overrides for images, buttons, and sections */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .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: 12px 20px !important;
        font-size: 1rem !important;
    }

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

    .page-privacy-policy__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    .page-privacy-policy__section {
        padding: 40px 0;
    }

    .page-privacy-policy__faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}