/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming dark body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Or responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    background-color: #017439; /* Fallback for image loading */
}

.page-privacy-policy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-privacy-policy__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-privacy-policy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-privacy-policy__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for main content */
    color: #333333; /* Dark text for light background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap with hero for visual flow */
    position: relative;
    z-index: 4;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-privacy-policy h3 {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

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

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

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

.page-privacy-policy__contact-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-privacy-policy__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #017439;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-privacy-policy__faq-section {
    background-color: #017439; /* Dark background for FAQ section */
    color: #ffffff; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 40px;
}

.page-privacy-policy__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-privacy-policy__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Custom color for toggle icon */
}

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

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

.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; /* Adjust padding for smooth transition */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        height: 500px;
    }
    .page-privacy-policy__main-title {
        font-size: 2.8em;
    }
    .page-privacy-policy__intro-text {
        font-size: 1.1em;
    }
    .page-privacy-policy__content-area {
        padding: 50px 20px;
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
    .page-privacy-policy h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        height: 400px;
    }
    .page-privacy-policy__hero-content {
        padding: 15px;
    }
    .page-privacy-policy__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-privacy-policy__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important; /* Button responsive requirement */
        width: 100% !important; /* Button responsive requirement */
        box-sizing: border-box !important; /* Button responsive requirement */
        white-space: normal !important; /* Button responsive requirement */
        word-wrap: break-word !important; /* Button responsive requirement */
    }
    .page-privacy-policy__contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-privacy-policy__content-area {
        padding: 30px 15px;
        margin-top: -60px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-privacy-policy h3 {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-privacy-policy p,
    .page-privacy-policy li {
        font-size: 0.95em;
    }
    .page-privacy-policy ul {
        margin-left: 20px;
    }

    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-privacy-policy__faq-question h3 {
        font-size: 1.1em;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__hero-section {
        height: 300px;
    }
    .page-privacy-policy__main-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__intro-text {
        font-size: 0.9em;
    }
    .page-privacy-policy__content-area {
        padding: 20px 10px;
        margin-top: -40px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.5em;
    }
    .page-privacy-policy h3 {
        font-size: 1.2em;
    }
}