/* style/privacy-policy.css */

/* --- General Styles --- */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Slightly off-white for sections, body is pure white */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-privacy-policy__section-title {
    color: #017439; /* Primary brand color for titles */
    font-size: 28px;
    margin-bottom: 25px;
    padding-top: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-privacy-policy__section-title--light {
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.page-privacy-policy__paragraph {
    margin-bottom: 15px;
    font-size: 16px;
}

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

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

.page-privacy-policy a {
    color: #017439; /* Primary brand color for links */
    text-decoration: underline;
}

.page-privacy-policy a:hover {
    color: #005f2e;
    text-decoration: none;
}

/* --- 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;
    background: linear-gradient(135deg, #017439, #005f2e); /* Gradient background with primary color */
    color: #ffffff; /* White text for dark background */
    overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.page-privacy-policy__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-privacy-policy__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom red for CTA */
    color: #FFFF00; /* Custom yellow for CTA font */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-privacy-policy__cta-button:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-width: 1000px; /* Limit image width in hero for better composition */
    margin-top: 30px;
}

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

/* --- Content Area --- */
.page-privacy-policy__content-area {
    padding: 40px 0;
    background-color: #ffffff; /* Explicitly white background for content for contrast */
    color: #333333;
}

.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center image */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-privacy-policy__contact-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    border-radius: 0 5px 5px 0;
}

/* --- FAQ Section --- */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background for FAQ */
    color: #ffffff;
}

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

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* !important to ensure priority, large value for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333; /* Dark text for light answer background */
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Dark text for question */
}

.page-privacy-policy__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-privacy-policy__faq-question:active {
    background: #eeeeee;
}

.page-privacy-policy__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Increased font size for better readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-privacy-policy__faq-toggle {
    font-size: 28px; /* Increased font size */
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease; /* Keep transition for color change */
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Increased size */
    height: 32px; /* Increased size */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    color: #C30808; /* Red for active toggle */
    /* transform: rotate(45deg); Removed to rely on JS text content change for + to - */
}


/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    }

    .page-privacy-policy__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        min-width: 200px !important; /* Enforce minimum size on mobile too */
        min-height: 200px !important;
    }

    .page-privacy-policy__image-wrapper {
        padding: 0 10px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Hero Section Mobile */
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
    }

    .page-privacy-policy__main-title {
        font-size: 30px;
    }

    .page-privacy-policy__intro-text {
        font-size: 16px;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Section Titles Mobile */
    .page-privacy-policy__section-title {
        font-size: 24px;
        padding-top: 25px;
        margin-bottom: 20px;
    }

    /* FAQ Mobile */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-privacy-policy__faq-answer {
        padding: 0 15px;
    }
    
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
    }
}