/* style/privacy-policy.css */

/* Variables */
:root {
    --vz88-primary-color: #E53935;
    --vz88-secondary-color: #FF5A4F;
    --vz88-card-bg: #FFFFFF;
    --vz88-background: #F5F7FA;
    --vz88-text-main: #333333;
    --vz88-border-color: #E0E0E0;
    --header-offset: 122px; /* Default if not set in shared, but will use 10px for first section */
}

.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--vz88-text-main);
    background-color: var(--vz88-background);
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    background-color: var(--vz88-primary-color);
    padding-bottom: 40px; /* Space for content below image */
    padding-top: 10px; /* Adhering to fixed header spacing rule */
    overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
}

.page-privacy-policy__hero-content {
    text-align: center;
    padding: 20px;
    background-color: var(--vz88-primary-color);
    color: #ffffff;
    position: relative; /* Ensure content is above the image if any layering occurs */
    z-index: 1;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

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

/* General Headings */
.page-privacy-policy__heading {
    font-size: 2.2em;
    color: var(--vz88-primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__sub-heading {
    font-size: 1.5em;
    color: var(--vz88-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Paragraphs and Lists */
.page-privacy-policy__paragraph {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--vz88-text-main);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    color: var(--vz88-text-main);
}

/* Sections */
.page-privacy-policy__section {
    padding: 40px 0;
    background-color: var(--vz88-card-bg); /* Default light background for sections */
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-privacy-policy__section:nth-child(even) {
    background-color: var(--vz88-background); /* Alternate background for readability */
}

/* Content Layout with Image */
.page-privacy-policy__content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-privacy-policy__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-privacy-policy__text-block {
    flex: 2;
}

.page-privacy-policy__image-block {
    flex: 1;
    min-width: 200px; /* Ensure images are not too small */
}

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

/* Buttons */
.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, var(--vz88-secondary-color) 0%, var(--vz88-primary-color) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__btn-primary:hover {
    background: linear-gradient(180deg, var(--vz88-primary-color) 0%, var(--vz88-secondary-color) 100%);
}

/* Links within content */
.page-privacy-policy__paragraph a,
.page-privacy-policy__list-item a {
    color: var(--vz88-primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-privacy-policy__paragraph a:hover,
.page-privacy-policy__list-item a:hover {
    color: var(--vz88-secondary-color);
}

/* FAQ Section (if applicable, using details/summary for native experience) */
.page-privacy-policy__faq-item {
    background-color: var(--vz88-card-bg);
    border: 1px solid var(--vz88-border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--vz88-text-main);
}

.page-privacy-policy__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--vz88-text-main);
    list-style: none; /* Hide default marker */
}

.page-privacy-policy__faq-item summary::-webkit-details-marker,
.page-privacy-policy__faq-item summary::marker {
    display: none; /* Hide default marker for Firefox/Edge */
}

.page-privacy-policy__faq-question {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: var(--vz88-text-main);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-privacy-policy__container {
        padding: 15px;
    }

    /* Hero Section */
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
        padding-bottom: 20px;
    }

    .page-privacy-policy__hero-image-wrapper {
        max-height: 300px;
    }

    .page-privacy-policy__hero-image {
        object-fit: contain !important; /* Mobile: contain to show full image, prevent cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    /* General Headings */
    .page-privacy-policy__heading {
        font-size: 1.8em;
    }

    .page-privacy-policy__sub-heading {
        font-size: 1.3em;
    }

    /* Content Layout with Image */
    .page-privacy-policy__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-privacy-policy__content-wrapper--reverse {
        flex-direction: column; /* Stacks normally on mobile */
    }

    .page-privacy-policy__image-block {
        flex: none;
        width: 100%;
    }

    .page-privacy-policy__text-block {
        flex: none;
        width: 100%;
    }

    /* Images */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All containers with images */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Buttons */
    .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;
    }

    /* Button containers (if any horizontal groups exist) */
    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-privacy-policy__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Other content modules (e.g., FAQ) for mobile */
    .page-privacy-policy__faq-item summary {
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-privacy-policy__faq-answer {
        padding: 0 15px 12px;
    }
}