/* style/privacy-policy.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font-color: #FFFF00;
  --body-background-color: #FFFFFF; /* Default based on prompt */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
}

.page-privacy-policy {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-color-dark); /* Default text color for light background */
  background-color: var(--body-background-color);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #00994d 100%); /* Slightly lighter green for gradient */
  color: var(--text-color-light);
  min-height: 400px;
  box-sizing: border-box;
}

.page-privacy-policy__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-button-bg); /* Use custom color for CTA */
  color: var(--register-login-font-color); /* Use custom font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-privacy-policy__content-area {
  padding: 60px 0;
  background-color: var(--body-background-color); /* Light background for content */
  color: var(--text-color-dark);
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-privacy-policy h2 + p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.page-privacy-policy p {
    margin-bottom: 1em;
}

.page-privacy-policy__card {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-color-dark);
}

.page-privacy-policy__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.page-privacy-policy__list li strong {
    color: var(--primary-color);
}

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

.page-privacy-policy__link-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__link-button:hover {
  background: #00994d;
}

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

.page-privacy-policy__link-text:hover {
    color: #00994d;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Slightly off-white for contrast */
  color: var(--text-color-dark);
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
  color: var(--primary-color);
}

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

.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 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-color-dark);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
  background-color: #e6f7ed; /* Light green for active question */
}

.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

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

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or use '-' */
  color: #c30808; /* Red for active toggle */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.5em;
  }
  .page-privacy-policy__hero-description {
    font-size: 1.1em;
  }
  .page-privacy-policy__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding: 60px 15px;
    min-height: 300px;
  }
  .page-privacy-policy__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-privacy-policy__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    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-area {
    padding: 40px 0;
  }
  .page-privacy-policy__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-privacy-policy__card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-privacy-policy__card-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__list {
    padding-left: 20px;
  }
  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__link-button {
    padding: 10px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Mobile */
  .page-privacy-policy__faq-section {
    padding: 40px 0;
  }
  .page-privacy-policy__faq-item {
    margin-bottom: 10px;
  }
  .page-privacy-policy__faq-question {
    padding: 15px 20px;
  }
  .page-privacy-policy__faq-question h3 {
    font-size: 1em;
  }
  .page-privacy-policy__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Image color restrictions */
.page-privacy-policy img {
  filter: none !important; /* Absolutely no filter to change image color */
}

/* Ensure no content causes horizontal scroll */
.page-privacy-policy {
  overflow-x: hidden;
}
.page-privacy-policy__container,
.page-privacy-policy__hero-container {
  overflow-x: hidden;
}