/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area if body is default */
}

/* Header offset for the first main content section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #017439, #005f2e); /* Brand colors for hero background */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden; /* Prevent content overflow */
}

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

.page-privacy-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for important titles */
    line-height: 1.2;
}

.page-privacy-policy__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-privacy-policy__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

.page-privacy-policy__btn-secondary {
    background: #ffffff;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

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

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

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Explicitly set for content area */
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    margin-top: -40px; /* Overlap with hero section slightly */
    position: relative;
    z-index: 3;
}

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

.page-privacy-policy__section-title {
    font-size: 2em;
    color: #017439; /* Brand primary color */
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
    font-size: 1.5em;
    color: #005f2e; /* Slightly darker shade of brand primary */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

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

.page-privacy-policy__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);
}

.page-privacy-policy__btn-link {
    display: inline-block;
    color: #017439;
    text-decoration: underline;
    margin-top: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-privacy-policy__btn-link:hover {
    color: #005f2e;
}

.page-privacy-policy__link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: #005f2e;
}

/* FAQ Section */
.page-privacy-policy__faq-container {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-privacy-policy__faq-item {
    border-bottom: 1px solid #eee;
}

.page-privacy-policy__faq-item:last-child {
    border-bottom: none;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: #f0f0f0;
}

.page-privacy-policy__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 25px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

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

    .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__hero-section {
        padding-bottom: 40px;
    }

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

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

    .page-privacy-policy__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-area {
        padding: 20px 15px;
        margin-top: -20px; /* Adjust overlap */
    }

    .page-privacy-policy__section-title {
        font-size: 1.6em;
    }

    .page-privacy-policy__sub-title {
        font-size: 1.2em;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card, /* Assuming cards might exist, though not explicitly used here */
    .page-privacy-policy__container { /* General container for content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ mobile adjustments */
    .page-privacy-policy__faq-question,
    .page-privacy-policy__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px 15px; /* Adjust padding for mobile */
    }
    .page-privacy-policy__faq-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__hero-title {
        font-size: 1.5em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.1em;
    }
}

/* Color Contrast Safeguards */
/* Ensure text is readable on various backgrounds */
.page-privacy-policy__dark-section {
    background: #017439;
    color: #ffffff; /* Forced white text on dark brand color */
}

/* Any text on white background should be dark */
.page-privacy-policy p,
.page-privacy-policy li,
.page-privacy-policy__faq-answer {
    color: #333333;
}

/* Buttons already have explicit colors */