/* style/privacy-policy.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --button-register-login-bg: var(--primary-color); /* Adjusted for contrast */
    --button-register-login-text: #FFFFFF; /* Adjusted for contrast */
    --dark-bg-color: #121212;
}

.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Inherited from body, but good to define for clarity */
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.page-privacy-policy__hero-content {
    max-width: 600px;
    z-index: 1;
}

.page-privacy-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-privacy-policy__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-privacy-policy__hero-image-wrapper {
    max-width: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Light background for main content */
    color: var(--text-on-light-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

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

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.page-privacy-policy__sub-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-privacy-policy__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-privacy-policy__contact-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-privacy-policy__contact-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-privacy-policy__contact-list a:hover {
    text-decoration: underline;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-privacy-policy__btn-primary {
    background-color: var(--button-register-login-bg);
    color: var(--button-register-login-text);
    border: 2px solid var(--button-register-login-bg);
}

.page-privacy-policy__btn-primary:hover {
    background-color: darken(var(--button-register-login-bg), 10%);
    border-color: darken(var(--button-register-login-bg), 10%);
}

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-privacy-policy__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--text-on-dark-bg);
}

.page-privacy-policy__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 20px;
    background-color: var(--primary-color); /* Use primary color for FAQ section background */
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

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

.page-privacy-policy__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--secondary-color);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px;
    padding-top: 0;
}

/* Global image responsiveness */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-privacy-policy__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
        text-align: center;
    }

    .page-privacy-policy__hero-title {
        font-size: 2em;
    }

    .page-privacy-policy__hero-description {
        font-size: 1em;
    }

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

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

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

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-privacy-policy__btn-secondary {
        margin-left: 0;
    }

    .page-privacy-policy__hero-image,
    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-privacy-policy__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}