/* 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 the page, assuming dark body background */
}

.page-privacy-policy__hero-section {
    background-color: #26A9E0; /* Primary brand color for hero */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-privacy-policy__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background-color: #d16b06;
}

.page-privacy-policy__content-area {
    background-color: #ffffff; /* White background for content */
    color: #333333; /* Dark text for light background */
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Primary brand color for titles */
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.page-privacy-policy__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-privacy-policy__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
}

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

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

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

/* FAQ Section */
.page-privacy-policy__faq-list {
    margin-top: 40px;
}

.page-privacy-policy__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-privacy-policy__faq-item details > summary {
    list-style: none; /* Hide default marker */
}
.page-privacy-policy__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
}

.page-privacy-policy__faq-answer {
    padding: 0 25px 15px;
    font-size: 0.95em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
    max-height: 2000px; /* Sufficiently large to show content */
    padding-top: 15px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important;
    padding-top: 15px;
}

/* Links within content */
.page-privacy-policy__paragraph a,
.page-privacy-policy__list-item a {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__paragraph a:hover,
.page-privacy-policy__list-item a:hover {
    color: #1a7bb7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }

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

    .page-privacy-policy__intro-text {
        font-size: 1em;
    }

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

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

    .page-privacy-policy__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    /* Images responsive */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__container,
    .page-privacy-policy__content-area,
    .page-privacy-policy__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Content area images CSS dimensions lower bound */
    .page-privacy-policy__content-area img {
        min-width: 200px !important; /* Minimum width for content images */
        min- /* Minimum height for content images (aspect ratio dependent) */
    }
}

/* Ensure no filter is used on images */
.page-privacy-policy img {
    filter: none !important;
}

/* FAQ Toggle for DETAILS tag */
.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}
.page-privacy-policy__faq-toggle {
    transition: transform 0.3s ease;
}