/* style/privacy-policy.css */

/* Variables for consistency */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --text-dark-color: #000000;
    --card-bg-color: #FFFFFF;
    --background-color: #F4F7FB; /* From custom colors */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--background-color); /* Light background from custom colors */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 20px 40px; /* Small top padding for first screen, body already handles --header-offset */
    background-color: var(--primary-color); /* Use primary color for hero section background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

.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: 12px; /* Soften edges */
    object-fit: cover;
}

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

.page-privacy-policy__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff; /* White text for dark background */
}

.page-privacy-policy__hero-description {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    color: #f0f0f0; /* Slightly off-white for description */
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--background-color); /* Use specified background color */
    color: var(--text-main-color);
}

.page-privacy-policy__container {
    background-color: var(--card-bg-color); /* Card background for main content container */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__article {
    /* Styles for the article content */
}

.page-privacy-policy__section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-dark-color); /* Black text for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color); /* Border for emphasis */
    padding-bottom: 10px;
}

.page-privacy-policy__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-main-color);
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    font-size: 1em;
}

.page-privacy-policy__list-item strong {
    color: var(--text-dark-color);
}

.page-privacy-policy__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.page-privacy-policy__content-image {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure it behaves like a block element */
    margin: 0 auto; /* Center the image */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 10px 15px 30px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-privacy-policy__hero-description {
        font-size: 1em;
    }
    .page-privacy-policy__content-area {
        padding: 30px 15px;
    }
    .page-privacy-policy__container {
        padding: 30px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.6em;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 10px 10px 20px;
        flex-direction: column; /* Ensure vertical stack */
    }
    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-privacy-policy__hero-description {
        font-size: 0.9em;
    }
    .page-privacy-policy__content-area {
        padding: 20px 10px;
    }
    .page-privacy-policy__container {
        padding: 20px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.9em;
    }
    .page-privacy-policy__list {
        margin-left: 20px;
    }

    /* Mobile image adaptation - IMPORTANT */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific adjustment for hero section to prevent double padding */
    .page-privacy-policy__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Video section top padding rule (general, not specific to this page) */
    .page-privacy-policy__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Mobile button adaptation - IMPORTANT */
    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy a[class*="btn"],
    .page-privacy-policy__link { /* Include general links if they act like buttons */
        max-width: 100% !important;
        width: 100% !important; /* Ensure buttons take full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center; /* Center button text */
    }
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important; /* Allow multiple buttons to wrap */
        gap: 10px; /* Spacing between wrapped buttons */
        overflow-x: hidden !important;
    }
    .page-privacy-policy__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
    }
}