/* 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; /* Dark grey text for light background */
    background-color: #ffffff; /* Explicitly set for clarity, though body is already white */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-privacy-policy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no CSS filter is applied */
}

.page-privacy-policy__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 169, 224, 0.7); /* Primary color with transparency */
    z-index: 2;
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.page-privacy-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.page-privacy-policy__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: -80px; /* Overlap with hero for visual effect */
    position: relative;
    z-index: 4;
}

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

.page-privacy-policy__section-title {
    font-size: 2em;
    color: #26A9E0; /* Primary brand color */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

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

/* Images within content */
.page-privacy-policy__image-wrapper {
    text-align: center;
    margin: 30px 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no CSS filter is applied */
}

/* Call to Action Buttons */
.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;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-privacy-policy__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #cc6a00;
    border-color: #cc6a00;
}

.page-privacy-policy__btn-secondary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: #1a8bbd;
    border-color: #1a8bbd;
}

.page-privacy-policy__cta-bottom {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-privacy-policy__cta-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #333333;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    margin-top: 60px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-privacy-policy__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #ffffff;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

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

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

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

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

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

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

/* Link styling */
.page-privacy-policy a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-title {
        font-size: 2.2em;
    }
    .page-privacy-policy__hero-description {
        font-size: 1.1em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__subsection-title {
        font-size: 1.3em;
    }
    .page-privacy-policy__content-area {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    /* Ensure content area respects padding for mobile */
    .page-privacy-policy__content-area {
        padding: 30px 15px;
        margin-top: -40px; /* Adjust overlap */
    }

    .page-privacy-policy__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

    .page-privacy-policy__hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Adjust gap for stacked buttons */
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 300px !important; /* Max width for buttons */
        padding: 12px 15px !important; /* Adjust padding */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness for mobile */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers for images, content, etc. are responsive */
    .page-privacy-policy__image-wrapper,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__content-area,
    .page-privacy-policy__container,
    .page-privacy-policy__cta-bottom,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-item,
    .page-privacy-policy__faq-question,
    .page-privacy-policy__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding adjustments for FAQ elements */
    .page-privacy-policy__faq-question,
    .page-privacy-policy__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Content area specific adjustments */
    .page-privacy-policy__section-title {
        font-size: 1.5em;
    }

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

    .page-privacy-policy__list {
        margin-left: 15px;
    }

    /* Ensure images in content area don't cause overflow */
    .page-privacy-policy__image {
        min-width: unset !important; /* Override min-width on mobile */
        min-height: unset !important; /* Override min-height on mobile */
    }
}

/* No CSS filter for images as per requirements */
.page-privacy-policy img {
    filter: none;
}