/* 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 */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* 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); /* Fixed header offset */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Light blue to white gradient */
  color: #FFFFFF; /* White text on blue gradient */
  overflow: hidden; /* Ensure image doesn't 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: 2; /* Ensure content is above image if any overlay */
}

.page-privacy-policy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF; /* Ensure title is white */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  max-width: 900px;
}

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  color: #FFFFFF; /* Ensure description is white */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  max-width: 1000px; /* Limit hero image width */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-top: 30px;
  object-fit: cover;
  display: block;
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Ensure white background for content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: -40px; /* Overlap with hero section slightly */
  position: relative;
  z-index: 3;
}

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

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #26A9E0; /* Brand primary color for main titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

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

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #333333;
}

.page-privacy-policy ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-privacy-policy strong {
  color: #000000;
}

.page-privacy-policy__text-link {
  color: #26A9E0; /* Brand primary color for links */
  text-decoration: none;
  border-bottom: 1px solid #26A9E0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-privacy-policy__text-link:hover {
  color: #EA7C07; /* Login orange for hover */
  border-color: #EA7C07;
}

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

.page-privacy-policy__image-content {
  width: 100%;
  height: auto;
  max-width: 800px; /* Limit width for content images */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #333333;
}

.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;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333;
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Brand primary color for toggle */
  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: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e0f2f7; /* Lighter shade of primary */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #FFFFFF;
  background-color: #26A9E0;
  transform: rotate(45deg); /* Rotate to form an 'x' or '−' */
}

.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: #fcfcfc;
  color: #555555;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  color: #333333;
}

/* CTA Section */
.page-privacy-policy__cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb7); /* Darker blue gradient */
  color: #FFFFFF;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-privacy-policy__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #e0f2f7; /* Lighter white for readability */
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login orange for CTA */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  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: #d46f06; /* Slightly darker orange on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General image styling for content area to prevent small icons */
.page-privacy-policy img:not(.page-privacy-policy__hero-image) {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }

  .page-privacy-policy__sub-section-title {
    font-size: 1.3em;
  }

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

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 40px;
  }

  /* Fixed header offset for mobile */
  .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-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-privacy-policy__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-privacy-policy__content-area {
    padding: 30px 15px;
    margin-top: -30px;
  }

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

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

  .page-privacy-policy ul {
    margin-left: 20px;
  }

  .page-privacy-policy li {
    margin-bottom: 8px;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important; /* Ensure padding is included in width */
  }

  /* Containers for images and content to prevent overflow */
  .page-privacy-policy__container,
  .page-privacy-policy__hero-container,
  .page-privacy-policy__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-privacy-policy__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }
  
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px !important;
  }

  .page-privacy-policy__cta-section {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-privacy-policy__cta-title {
    font-size: 1.8em;
  }

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

  /* Mobile button responsiveness */
  .page-privacy-policy__cta-button {
    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;
    font-size: 1.1em;
  }
}