/* style/privacy-policy.css */

/* General styling for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color, ensuring contrast */
    line-height: 1.6;
    padding: 10px 15px; /* Small top padding, plus side padding for mobile */
    max-width: 1390px; /* Boxed layout */
    margin: 0 auto; /* Center the content */
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    background-color: #FFFFFF; /* Auxiliary color for the section background */
    padding: 20px 0;
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* For 1920x1080 */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.page-privacy-policy__hero-content {
    max-width: 800px;
    padding: 0 15px;
}

.page-privacy-policy__main-title {
    font-weight: bold;
    color: #26A9E0; /* Main color */
    margin-bottom: 15px;
    font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* Responsive font size */
    line-height: 1.2;
}

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

.page-privacy-policy__cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login color for CTA */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.page-privacy-policy__cta-button:hover {
    background-color: #d46c00; /* Slightly darker orange on hover */
}

.page-privacy-policy__cta-button--bottom {
    margin-top: 40px;
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 20px 15px;
    background-color: #FFFFFF; /* Ensure content background is white */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__section-title {
    font-size: clamp(1.3rem, 4vw, 2rem); /* Responsive font size for H2 */
    color: #26A9E0; /* Main color */
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e0e0e0;
}

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

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

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

.page-privacy-policy__list-item strong {
    color: #26A9E0; /* Highlight important terms with main color */
}

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

.page-privacy-policy__paragraph a:hover,
.page-privacy-policy__list-item a:hover {
    text-decoration: underline;
    color: #EA7C07; /* Login color on hover for contrast */
}

.page-privacy-policy__image-container {
    text-align: center;
    margin: 30px 0;
}

.page-privacy-policy__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
    object-fit: cover;
    object-position: center;
    filter: none; /* No CSS filter */
}

.page-privacy-policy__last-updated {
    font-style: italic;
    color: #777777;
    margin-top: 30px;
    text-align: right;
}

/* Ensure content is readable on dark backgrounds if any */
body {
    background-color: #FFFFFF; /* Global background color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-privacy-policy {
        padding: 10px 12px; /* Adjust padding for smaller screens */
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.1rem, 6vw, 1.75rem); /* Adjust clamp for mobile H1 */
    }

    .page-privacy-policy__description {
        font-size: 1rem;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem); /* Adjust clamp for mobile H2 */
    }

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.95rem;
    }

    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 15px;
    }

    .page-privacy-policy__hero-content {
        padding: 0 12px;
    }

    .page-privacy-policy__content-image {
        max-width: 100%;
        height: auto;
        /* Ensure no fixed large width/height that causes overflow */
        /* min-width and min-height are still respected */
    }
}

/* Ensure content area images are responsive and do not cause overflow */
@media (max-width: 768px) {
    .page-privacy-policy__content-area img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Still apply minimum size */
        min-height: 200px; /* Still apply minimum size */
    }
}

/* CSS for content area images, ensuring they are not smaller than 200px */
.page-privacy-policy__content-area img {
    /* Existing styles like max-width: 100%; height: auto; */
    width: auto; /* Allow natural width or max-width to take effect */
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Specific rule to prevent content area images from being too small,
   targeting any img within .page-privacy-policy__content-area */
.page-privacy-policy__content-area *:not(.page-privacy-policy__hero-section) img {
    /* This targets images not in the hero section but within the content area */
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow flexibility */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
}

/* Ensure no `filter` property is used for images */
.page-privacy-policy img {
    filter: none;
}