/* style/privacy-policy.css */

/* Global styles for the page content, ensuring contrast with body background */
.page-privacy-policy {
    background-color: var(--bg-color, #08160F); /* Fallback to default if var not set */
    color: var(--text-main, #F2FFF6); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom before footer */
}

/* Section styling */
.page-privacy-policy__section {
    padding: 60px 0;
    position: relative;
}

.page-privacy-policy__section:nth-of-type(even) {
    background-color: var(--card-bg, #11271B); /* Alternate background for readability */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    position: relative;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly dim the image for text readability */
    max-height: 600px; /* Ensure image doesn't stretch too much */
}

.page-privacy-policy__hero-content-wrapper {
    position: absolute; /* Position content over the image, but not covering the whole image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 800px;
    color: var(--text-main, #F2FFF6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
    line-height: 1.2;
}

.page-privacy-policy__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary, #A7D9B8);
    max-width: 700px;
    margin: 0 auto;
}

/* Titles */
.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--glow, #57E38D); /* Using Glow for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Text blocks */
.page-privacy-policy__text-block {
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    color: var(--text-secondary, #A7D9B8);
}

.page-privacy-policy__list-item strong {
    color: var(--text-main, #F2FFF6);
}

/* Links */
.page-privacy-policy a {
    color: var(--glow, #57E38D); /* Links use glow color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--main-color, #11A84E); /* Hover with main brand color */
    text-decoration: underline;
}

/* Images within content */
.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Image with text layout */
.page-privacy-policy__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.page-privacy-policy__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-privacy-policy__image-text-block .page-privacy-policy__content-image {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

.page-privacy-policy__image-text-block .page-privacy-policy__text-content {
    flex: 1.5;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: var(--bg-color, #08160F);
}

.page-privacy-policy__faq-list {
    margin-top: 30px;
}

.page-privacy-policy__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C); /* Darker background for summary */
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--main-color, #11A84E);
}

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

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-privacy-policy__hero-content-wrapper {
        width: 85%;
    }
    .page-privacy-policy__image-text-block {
        flex-direction: column;
        text-align: center;
    }
    .page-privacy-policy__image-text-block--reverse {
        flex-direction: column; /* Maintain column order for reverse too */
    }
    .page-privacy-policy__image-text-block .page-privacy-policy__content-image {
        max-width: 80%;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__section {
        padding: 40px 0;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-privacy-policy__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-privacy-policy__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    /* Images responsiveness */
    .page-privacy-policy img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Content area and containers responsiveness */
    .page-privacy-policy__section,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__image-text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }

    .page-privacy-policy__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 15px 15px 15px;
    }
    .page-privacy-policy__list {
        margin-left: 20px;
    }
    .page-privacy-policy__image-text-block .page-privacy-policy__content-image {
        max-width: 100%;
        margin: 0 auto 20px auto;
    }
    /* Mobile button responsiveness */
    .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"] {
      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-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;
    }
    /* Video responsiveness (general, if any video were added) */
    .page-privacy-policy video,
    .page-privacy-policy__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-privacy-policy__video-section,
    .page-privacy-policy__video-container,
    .page-privacy-policy__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-privacy-policy__video-section {
      padding-top: 10px !important;
    }
    .page-privacy-policy__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__hero-content-wrapper {
        width: 95%;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }
    .page-privacy-policy__hero-description {
        font-size: clamp(0.8rem, 4vw, 1rem);
    }
}