/* style/privacy-policy.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-color-register: #C30808;
  --accent-color-login: #C30808;
  --text-color-register-login: #FFFF00;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --border-color: #e0e0e0;
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Body background is white, so text is dark */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-privacy-policy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: var(--accent-color-login); /* Use red for CTA as per custom color */
  color: var(--text-color-register-login); /* Yellow text for login/register buttons */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #a30707; /* Darken on hover */
  transform: translateY(-2px);
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  font-size: 1em;
}

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

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

.page-privacy-policy__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum width for content images */
  min-height: 200px; /* Minimum height for content images */
}

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

.page-privacy-policy__link:hover {
  color: #005a2e;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 40px 20px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.page-privacy-policy__faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.page-privacy-policy__faq-item:last-child {
  border-bottom: none;
}

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

.page-privacy-policy__faq-question:hover {
  color: #005a2e;
}

.page-privacy-policy__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: inherit; /* Inherit color from parent question */
}

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

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

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
  }

  .page-privacy-policy__hero-title {
    font-size: 2em;
  }

  .page-privacy-policy__hero-description {
    font-size: 1em;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

  .page-privacy-policy__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-privacy-policy__list,
  .page-privacy-policy__faq-container {
    padding-left: 0;
    margin-left: 15px;
  }

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

  .page-privacy-policy__faq-title {
    font-size: 1em;
  }

  .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: 12px 20px;
  }
}