/* style/privacy-policy.css */

/* Base styling for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: #ffffff; /* White background for hero section */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and text */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
    color: #26A9E0; /* Brand color */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 40px 20px;
}

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

.page-privacy-policy__section-title {
    font-size: 2em;
    color: #26A9E0; /* Brand color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

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

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px; /* Ensure images are not too wide */
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* CTA Block */
.page-privacy-policy__cta-block {
    background-color: #26A9E0; /* Brand main color */
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 50px;
}

.page-privacy-policy__cta-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

.page-privacy-policy__cta-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary:hover {
    background-color: #d16b06; /* Slightly darker on hover */
}

/* FAQ Section - Using <details> and <summary> for accessibility and native functionality */
.page-privacy-policy__faq-section {
    padding: 40px 20px;
    background-color: #ffffff;
    margin-top: 40px;
}

.page-privacy-policy__faq-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
}

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-privacy-policy__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

/* Remove default marker for Webkit browsers */
.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-privacy-policy__faq-question {
    flex-grow: 1;
}

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

.page-privacy-policy__faq-answer {
    padding: 0 20px 20px 20px;
    color: #555555;
    font-size: 0.95em;
    border-top: 1px solid #e0e0e0;
    margin-top: -1px; /* Overlap border for clean look */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 4vw, 2.8em);
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-privacy-policy__hero-content {
        padding: 0 15px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-privacy-policy__description {
        font-size: 1em;
    }

    .page-privacy-policy__content-section {
        padding: 30px 15px;
    }
    .page-privacy-policy__container {
        padding: 0 15px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }
    .page-privacy-policy__list {
        margin-left: 15px;
    }

    /* Mobile image and container responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min-size on mobile */
        min-height: 200px !important; /* Enforce min-size on mobile */
    }
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__cta-block,
    .page-privacy-policy__faq-item,
    .page-privacy-policy__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile button responsiveness */
    .page-privacy-policy__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__cta-block {
        padding: 40px 15px;
    }
    .page-privacy-policy__cta-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__cta-text {
        font-size: 1em;
    }
    .page-privacy-policy__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-privacy-policy__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.3em, 8vw, 2em);
    }
    .page-privacy-policy__section-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__cta-title {
        font-size: 1.6em;
    }
}

/* Color Contrast Enforcement */
/* Assuming a light body background, so default text is dark. */
/* Dark sections or elements with brand color background will have white text. */
.page-privacy-policy__dark-bg {
    background: #26A9E0; /* Main brand color */
    color: #ffffff;
}

.page-privacy-policy__light-bg {
    background: #ffffff;
    color: #333333;
}

/* Ensure specific elements maintain contrast */
.page-privacy-policy__hero-content .page-privacy-policy__description {
    color: #555555; /* Slightly lighter than #333333 for contrast on white bg */
}

/* FAQ text color */
.page-privacy-policy__faq-item summary {
    color: #333333;
}
.page-privacy-policy__faq-answer {
    color: #555555;
}

/* No CSS filters for images */
.page-privacy-policy img {
    filter: none; /* Explicitly ensure no filters */
}