/* style/privacy-policy.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
    --background-light: #ffffff;
    --background-dark: var(--primary-color); /* Using primary color for dark background sections */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Assuming body background is light */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

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

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

.page-privacy-policy__heading {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__heading--white {
    color: var(--text-light);
}

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

.page-privacy-policy__paragraph--white {
    color: var(--text-light);
}

.page-privacy-policy__highlight {
    font-weight: bold;
    color: var(--primary-color); /* Use primary color for highlights */
}

.page-privacy-policy__dark-bg .page-privacy-policy__highlight {
    color: var(--button-register-login-text); /* Yellow for highlights on dark background */
}

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

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

.page-privacy-policy__list--white .page-privacy-policy__list-item {
    color: var(--text-light);
}

.page-privacy-policy__link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: #005f2e; /* Darker green on hover */
}

.page-privacy-policy__link--white {
    color: var(--text-light);
}

.page-privacy-policy__link--white:hover {
    color: #f0f0f0;
}

/* Hero Banner Section */
.page-privacy-policy__hero-banner {
    position: relative;
    padding: 80px 0 40px;
    text-align: center;
    overflow: hidden;
}

.page-privacy-policy__hero-title {
    font-size: 3em;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-privacy-policy__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-privacy-policy__hero-actions {
    margin-bottom: 40px;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-login-bg); /* Custom red for register/login */
    color: var(--button-register-login-text); /* Custom yellow for register/login font */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* For mobile button text wrap */
    word-wrap: break-word; /* For mobile button text wrap */
}

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

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 40px;
}

/* Image styles */
.page-privacy-policy__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Contact List */
.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Last Section - Flex Container */
.page-privacy-policy__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-privacy-policy__text-content {
    flex: 1;
}

.page-privacy-policy__image-content {
    flex: 1;
}

.page-privacy-policy__last-section .page-privacy-policy__heading {
    text-align: left;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding-bottom: 80px;
}

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

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px 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 15px;
    opacity: 0;
}

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    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;
    color: var(--text-dark);
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    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: #333;
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-title {
        font-size: 2.5em;
    }

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

    .page-privacy-policy__heading {
        font-size: 1.8em;
    }

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

    .page-privacy-policy__flex-container {
        flex-direction: column;
    }

    .page-privacy-policy__last-section .page-privacy-policy__heading {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    }

    .page-privacy-policy__container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

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

    .page-privacy-policy__hero-banner {
        padding: 60px 0 30px;
    }

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

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

    .page-privacy-policy__hero-actions {
        margin-bottom: 30px;
    }

    .page-privacy-policy__btn-primary {
        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;
        margin-left: auto;
        margin-right: auto;
        display: block; /* Ensure it takes full width */
    }

    .page-privacy-policy__heading {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item,
    .page-privacy-policy__contact-item,
    .page-privacy-policy__faq-question h3 {
        font-size: 0.95em;
    }

    /* Images responsive */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-privacy-policy__hero-image,
    .page-privacy-policy__image {
        border-radius: 4px;
    }

    /* FAQ Mobile */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
        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;
    }

    .page-privacy-policy__flex-container {
        flex-direction: column;
    }
}