/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area if needed */
}

/* 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;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #a8dcf0); /* Blend primary color with a lighter shade */
  color: #ffffff; /* White text for dark background */
  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;
  width: 100%;
}

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

.page-privacy-policy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

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

.page-privacy-policy__hero-content h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-privacy-policy__hero-content .page-privacy-policy__intro-text {
  font-size: 1.2em;
  line-height: 1.8;
  color: #f0f0f0;
}

/* Content Area */
.page-privacy-policy__content-area {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-privacy-policy__content-area:nth-of-type(odd) {
  background-color: #f9f9f9; /* Light grey background for alternating sections */
}

.page-privacy-policy__dark-section {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff; /* White text for dark background */
}

.page-privacy-policy__dark-section h2,
.page-privacy-policy__dark-section h3 {
  color: #ffffff;
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-privacy-policy__heading {
  font-size: 2.2em;
  color: #26A9E0; /* Primary color for main headings */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-privacy-policy__dark-section .page-privacy-policy__heading {
    color: #ffffff;
}

.page-privacy-policy__sub-heading {
  font-size: 1.6em;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__dark-section .page-privacy-policy__sub-heading {
    color: #f0f0f0;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.7;
}

.page-privacy-policy ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-privacy-policy ul li {
  margin-bottom: 10px;
  font-size: 1em;
}

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

.page-privacy-policy__image--center {
    text-align: center;
}

/* Buttons */
.page-privacy-policy__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-privacy-policy__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-privacy-policy__dark-section .page-privacy-policy__contact-list li {
    color: #ffffff;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  background-color: #f0f8ff; /* Light blue background for FAQ */
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
  color: #1e87c0;
}

.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 20px;
  opacity: 0;
  background: #ffffff;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-privacy-policy__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__hero-content h1 {
    font-size: 1.8em;
  }

  .page-privacy-policy__hero-content .page-privacy-policy__intro-text {
    font-size: 1em;
  }

  .page-privacy-policy__content-area {
    padding: 40px 15px;
  }

  .page-privacy-policy__heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__sub-heading {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-privacy-policy p,
  .page-privacy-policy ul li {
    font-size: 0.95em;
  }

  .page-privacy-policy__image {
    margin: 30px auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Buttons */
  .page-privacy-policy__button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    margin-top: 15px;
  }

  /* FAQ */
  .page-privacy-policy__faq-question {
    padding: 15px;
  }

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

  .page-privacy-policy__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }

  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure all images and containers are responsive and do not cause horizontal scroll */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-privacy-policy__section,
.page-privacy-policy__card,
.page-privacy-policy__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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;
  }

  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .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;
  }
}