:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #017439; /* Using primary color for dark sections */
    --border-color: #e0e0e0;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFF00;
}

.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light); /* Default body background is light */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00994d 100%); /* Green gradient */
    color: var(--text-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-privacy-policy__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects if added */
}

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

.page-privacy-policy__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-privacy-policy__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg); /* Using custom color for register/login */
    color: var(--button-text-color); /* Using custom color for register/login text */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-privacy-policy__cta-button:hover {
    background: #e00b0b; /* Slightly darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 60px 0;
    margin-bottom: 0; /* Remove default margin */
}

.page-privacy-policy__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-privacy-policy__dark-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-privacy-policy__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-privacy-policy__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-privacy-policy__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: inherit;
}

.page-privacy-policy__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: inherit;
}

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

.page-privacy-policy__list-item strong {
    color: inherit;
}

.page-privacy-policy a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__dark-section a {
    color: var(--secondary-color);
}

.page-privacy-policy a:hover {
    color: #004d26; /* Darker green */
}

.page-privacy-policy__dark-section a:hover {
    color: #f0f0f0; /* Lighter white */
}

.page-privacy-policy__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 800px;
}

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

.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-privacy-policy__contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-privacy-policy__contact-item strong {
    min-width: 120px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ default state - answer hidden */
.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - ⚠️ Use !important and sufficiently large max-height */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
  color: var(--text-light); /* Ensure text is light on dark background */
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color); /* Use primary color for question background */
  border: 1px solid #005a2e; /* Darker green border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light); /* Ensure question text is light */
}

.page-privacy-policy__faq-question:hover {
  background: #006633; /* Slightly lighter green on hover */
  border-color: #004d26;
}

.page-privacy-policy__faq-question:active {
  background: #004d26;
}

/* Question title style */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: inherit;
}

/* Toggle icon */
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* White icon on dark background */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--secondary-color); /* Keep white when active */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.8em;
    }
    .page-privacy-policy__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-privacy-policy__hero-section {
        padding: 40px 15px;
    }

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

    .page-privacy-policy__hero-image img {
        border-radius: 4px;
    }

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

    .page-privacy-policy__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-section {
        padding: 40px 0;
    }

    .page-privacy-policy__container {
        padding: 0 15px; /* Apply padding to container on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-privacy-policy__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
}