/* style/privacy-policy.css */

/* --- General Styles --- */
.page-privacy-policy {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background #FFFFFF */
}

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

.page-privacy-policy__hero-banner {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
    background: linear-gradient(180deg, rgba(245,245,245,1) 0%, rgba(255,255,255,1) 100%);
}

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

.page-privacy-policy__dark-section {
    background-color: var(--primary-color); /* #017439 */
    color: #ffffff; /* White text for dark background */
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color); /* #017439 */
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__dark-section .page-privacy-policy__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-privacy-policy__main-title {
    font-size: 3em;
    color: var(--primary-color); /* #017439 */
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__intro-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555555;
}

.page-privacy-policy__dark-section .page-privacy-policy__paragraph,
.page-privacy-policy__dark-section .page-privacy-policy__list-item {
    color: #f0f0f0;
}

.page-privacy-policy__sub-title {
    font-size: 1.5em;
    color: var(--primary-color); /* #017439 */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy__dark-section .page-privacy-policy__sub-title {
    color: #ffffff; /* White sub-title for dark background */
}

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

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

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

.page-privacy-policy__list-item p {
    margin-top: 5px;
    margin-bottom: 0;
}

.page-privacy-policy__content-block {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.page-privacy-policy__dark-section .page-privacy-policy__content-block {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-privacy-policy__dark-section .page-privacy-policy__content-block p {
    color: #f0f0f0;
}

/* --- Image Styles --- */
.page-privacy-policy__image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.page-privacy-policy__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%; /* Ensure images are responsive by default */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* --- CTA Button Styles --- */
.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
    background-color: var(--primary-color); /* #017439 */
    color: #ffffff; /* White text for contrast */
    border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-primary:hover {
    background-color: #005f2c; /* Darken primary color on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__contact-cta {
    text-align: center;
    padding: 60px 0;
}

.page-privacy-policy__contact-cta .page-privacy-policy__container {
    background-color: var(--primary-color); /* Use primary color for CTA background */
    padding: 40px;
    border-radius: 10px;
    color: #ffffff; /* White text for this section */
}

.page-privacy-policy__contact-cta .page-privacy-policy__section-title,
.page-privacy-policy__contact-cta .page-privacy-policy__paragraph {
    color: #ffffff;
}

/* --- FAQ Section Styles (Mandatory) --- */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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 20px;
    opacity: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e0e0;
}

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

.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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color); /* #017439 */
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    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: 28px;
    height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    color: var(--primary-color); /* #017439 */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* --- Responsive Design --- *
/* Ensure body padding for header offset is handled by shared.css, so main content starts below it */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.5em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__container {
        padding: 15px;
    }

    .page-privacy-policy__hero-banner {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
        padding-bottom: 30px;
    }

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

    .page-privacy-policy__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .page-privacy-policy__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item p {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }
    
    .page-privacy-policy__image-wrapper,
    .page-privacy-policy__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsiveness */
    .page-privacy-policy__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-privacy-policy__contact-cta .page-privacy-policy__container {
        padding: 30px 15px;
    }

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

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.4em;
    }
}