/* style/privacy-policy.css */
/* Custom CSS for the Privacy Policy page */

/* Variables from shared.css and custom colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-dark: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-privacy-policy {
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--background-dark); /* Ensure consistency if main has its own background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Page sections styling */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-privacy-policy__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--text-main);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
}

.page-privacy-policy__btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: var(--text-main);
}


.page-privacy-policy__introduction-section,
.page-privacy-policy__data-collection-section,
.page-privacy-policy__data-usage-section,
.page-privacy-policy__data-sharing-section,
.page-privacy-policy__security-section,
.page-privacy-policy__user-rights-section,
.page-privacy-policy__cookies-section,
.page-privacy-policy__changes-section,
.page-privacy-policy__contact-section,
.page-privacy-policy__faq-section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--divider-color);
}

.page-privacy-policy__dark-section {
    background-color: var(--card-bg); /* Darker background for contrast */
    color: var(--text-main);
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.page-privacy-policy__text-block strong {
    color: var(--text-main);
}

.page-privacy-policy__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-privacy-policy__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-privacy-policy__list li::before {
    content: '✅'; /* Green checkmark for list items */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.9em;
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding-bottom: 80px;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--background-dark); /* Match body background for FAQ item */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-item[open] {
    background-color: var(--card-bg); /* Slightly different background when open */
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.page-privacy-policy__faq-item:hover .page-privacy-policy__faq-question {
    color: var(--gold-color);
}

.page-privacy-policy__faq-question::-webkit-details-marker {
    display: none;
}

.page-privacy-policy__faq-question::marker {
    display: none;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-privacy-policy__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--text-secondary);
}

.page-privacy-policy__contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-privacy-policy__contact-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.page-privacy-policy__contact-list strong {
    color: var(--text-main);
}

.page-privacy-policy__contact-button {
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding-bottom: 40px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-privacy-policy__hero-description {
        font-size: 1.1em;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 10px 15px 30px;
    }
    .page-privacy-policy__hero-image-wrapper {
        max-height: 300px;
    }
    .page-privacy-policy__hero-content {
        padding: 0 15px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-privacy-policy__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-privacy-policy__introduction-section,
    .page-privacy-policy__data-collection-section,
    .page-privacy-policy__data-usage-section,
    .page-privacy-policy__data-sharing-section,
    .page-privacy-policy__security-section,
    .page-privacy-policy__user-rights-section,
    .page-privacy-policy__cookies-section,
    .page-privacy-policy__changes-section,
    .page-privacy-policy__contact-section,
    .page-privacy-policy__faq-section {
        padding: 40px 15px;
    }
    .page-privacy-policy__container {
        padding: 0 15px; /* Add horizontal padding for mobile */
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
        margin-bottom: 25px;
    }
    .page-privacy-policy__text-block p,
    .page-privacy-policy__list li,
    .page-privacy-policy__contact-list li,
    .page-privacy-policy__faq-answer {
        font-size: 0.95em;
    }
    .page-privacy-policy__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-privacy-policy__content-image {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Ensure all containing elements also adapt */
    .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;
    }
    /* No video section on this page, but if it were, this would apply */
    /* .page-privacy-policy__video-section { 
        padding-top: 10px !important; 
    } */
    .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;
    }
}

/* Ensure images meet minimum size requirements for content area */
.page-privacy-policy img:not(.page-privacy-policy__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* No filter on images */
.page-privacy-policy img {
    filter: none;
}