/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default to dark text for light background */
  background-color: var(--site-bg, #F5F7FA); /* Ensure body background is respected */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-privacy-policy__hero-content {
  background: var(--card-bg, #FFFFFF);
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
  position: relative;
  z-index: 1;
}

.page-privacy-policy__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  color: var(--text-main, #333333);
  margin-bottom: 25px;
}

/* General Section Styling */
.page-privacy-policy__section {
  padding: 60px 0;
}

.page-privacy-policy__section-intro {
  padding-top: 20px;
}

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

.page-privacy-policy__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main, #333333);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__content-block p {
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--text-main, #333333);
}

.page-privacy-policy__content-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-main, #333333);
}

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

.page-privacy-policy__content-block strong {
  font-weight: 700;
}

.page-privacy-policy__content-block a {
  color: var(--primary-color, #E53935);
  text-decoration: underline;
}

/* Image within content */
.page-privacy-policy__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-privacy-policy__btn-contact {
  margin-top: 20px;
}

/* Color Schemes for Sections */
.page-privacy-policy__light-bg {
  background-color: var(--card-bg, #FFFFFF);
  color: var(--text-main, #333333);
}

.page-privacy-policy__dark-bg {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
}

.page-privacy-policy__dark-bg .page-privacy-policy__section-title,
.page-privacy-policy__dark-bg .page-privacy-policy__sub-title,
.page-privacy-policy__dark-bg .page-privacy-policy__content-block p,
.page-privacy-policy__dark-bg .page-privacy-policy__content-block ul li,
.page-privacy-policy__dark-bg .page-privacy-policy__content-block strong {
  color: #ffffff;
}

.page-privacy-policy__dark-bg .page-privacy-policy__content-block a {
  color: var(--secondary-color, #FF5A4F);
}

/* Contact List */
.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

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

/* FAQ Section */
details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: var(--card-bg, #fff);
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}

.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333);
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-main, #333333);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__container {
    padding: 20px 30px;
  }

  .page-privacy-policy__hero-content {
    padding: 25px 30px;
    max-width: 700px;
  }

  .page-privacy-policy__main-title {
    font-size: 2.4em;
  }

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

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

@media (max-width: 768px) {
  .page-privacy-policy__container {
    padding: 0 15px !important; /* Force padding for mobile content */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Main Image Area */
  .page-privacy-policy__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

  .page-privacy-policy__hero-image-wrapper {
    max-height: 300px;
  }

  .page-privacy-policy__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-privacy-policy__hero-content {
    padding: 20px;
    margin-top: -50px; /* Adjust overlap */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    line-height: 1.3;
  }

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

  /* General content sections */
  .page-privacy-policy__section {
    padding: 40px 0;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

  .page-privacy-policy__content-block p,
  .page-privacy-policy__content-block ul,
  .page-privacy-policy__content-block ul li {
    font-size: 0.95em;
    padding: 0 10px;
  }

  .page-privacy-policy__content-block ul {
    margin-left: 15px;
  }

  /* General Images and Containers */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-privacy-policy__section,
  .page-privacy-policy__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Buttons and Button Containers */
  .page-privacy-policy__btn-primary {
    max-width: calc(100% - 30px) !important; /* Account for 15px padding on each side */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 15px;
    margin-right: 15px;
    padding: 12px 15px;
  }
  
  .page-privacy-policy__btn-contact {
    margin-top: 20px;
  }

  /* FAQ specific mobile styles */
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    padding: 15px;
  }
  .page-privacy-policy__faq-qtext {
    font-size: 15px;
  }
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 15px 15px;
  }

  .page-privacy-policy__contact-list {
    padding: 0 10px;
  }
}