/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
}

.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;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background-color: var(--card-b-g); /* Fallback dark background */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure min size */
}

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

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-privacy-policy__last-updated {
  font-size: 0.9em;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Content Area */
.page-privacy-policy__content-area {
  padding: 60px 0;
  background-color: var(--background);
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.page-privacy-policy__list-item {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

.page-privacy-policy__link:hover {
  color: var(--gold);
}

.page-privacy-policy__image-block {
  margin: 40px 0;
  text-align: center;
}

.page-privacy-policy__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin: 0 auto;
}

.page-privacy-policy__image-caption {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-top: 15px;
  opacity: 0.9;
}

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

.page-privacy-policy__faq-item {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green);
  color: var(--text-main);
  border-bottom: 1px solid var(--divider);
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  border-bottom: 1px solid var(--border);
}

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

.page-privacy-policy__faq-question::marker {
  display: none;
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
  color: var(--glow);
}

.page-privacy-policy__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--card-b-g);
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-privacy-policy__container,
  .page-privacy-policy__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__hero-section {
    padding-bottom: 40px;
  }

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

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

  .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__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__faq-answer {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__image-block,
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll from padding */
  }

  .page-privacy-policy__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Ensure FAQ item also respects padding */
  .page-privacy-policy__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__hero-section {
    padding-bottom: 30px;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }

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

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

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

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