/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css defines body */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  background: linear-gradient(135deg, #26A9E0, #E0F2F7); /* Light blue gradient */
  padding: 60px 20px;
  text-align: center;
  color: #FFFFFF; /* White text for hero section */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
  line-height: 1.2;
}

.page-privacy-policy__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F8FF; /* Slightly off-white for contrast */
}

.page-privacy-policy__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons don't exceed container width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
  background: #EA7C07; /* Login/Register color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-privacy-policy__btn-primary:hover {
  background: #D46F00;
  border-color: #D46F00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-privacy-policy__btn-secondary:hover {
  background: #F0F8FF;
  border-color: #1E8CBF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Content Section */
.page-privacy-policy__content-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #26A9E0; /* Primary color for main titles */
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-privacy-policy__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #26A9E0;
  border-radius: 2px;
}

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

.page-privacy-policy__content-section p {
  margin-bottom: 15px;
  color: #333333;
}

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

.page-privacy-policy__content-section ul li {
  margin-bottom: 8px;
}

.page-privacy-policy__content-section a {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__content-section a:hover {
  color: #1e8cbf;
}

.page-privacy-policy__content-image {
  max-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;
}

.page-privacy-policy__last-updated {
  font-style: italic;
  text-align: right;
  margin-top: 40px;
  color: #666666;
}

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

.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 25px;
  background: #FFFFFF;
  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;
  color: #333333;
}

.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;
  pointer-events: none;
  color: #333333;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.8em;
  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: 30px;
  height: 30px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(0deg); /* '+' to '-' rotation, if desired, but here just change text */
  color: #EA7C07; /* Highlight color when active */
}

.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: #F9F9F9;
  border-left: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
  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 25px !important;
  opacity: 1;
}

/* 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__main-title {
    font-size: 2em;
  }

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

  .page-privacy-policy__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-privacy-policy__hero-image {
    border-radius: 8px;
  }

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

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

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

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

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

  .page-privacy-policy__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-privacy-policy__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 1.5em;
  }

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

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

  /* Ensure all images are responsive */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-privacy-policy__content-section,
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}