/* style/privacy-policy.css */

:root {
  --niceph-primary-color: #F2C14E;
  --niceph-secondary-color: #FFD36B;
  --niceph-card-bg: #111111;
  --niceph-background: #0A0A0A;
  --niceph-text-main: #FFF6D6;
  --niceph-border: #3A2A12;
  --niceph-glow: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--niceph-text-main); /* Default text color for the page */
  background-color: var(--niceph-background); /* Matches body bg from shared.css */
  line-height: 1.6;
}

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

/* Header spacing */
.page-privacy-policy__hero-section {
  padding-top: var(--header-offset, 120px);
  background-color: var(--niceph-background);
  position: relative;
  overflow: hidden;
}

.page-privacy-policy__hero-image-container {
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-privacy-policy__hero-content {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  background-color: rgba(10, 10, 10, 0.7); /* Semi-transparent background for text */
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--niceph-secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-privacy-policy__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--niceph-text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  background: var(--btn-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__content-section {
  padding: 60px 20px;
  background-color: var(--niceph-card-bg);
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--niceph-border);
}

.page-privacy-policy__section-title {
  font-size: 2.2rem;
  color: var(--niceph-primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  border-bottom: 2px solid var(--niceph-border);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.6rem;
  color: var(--niceph-secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  color: var(--niceph-text-main);
  font-size: 1rem;
}

.page-privacy-policy p a {
  color: var(--niceph-secondary-color);
  text-decoration: underline;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 30px;
  margin-bottom: 20px;
  color: var(--niceph-text-main);
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-privacy-policy__list li strong {
  color: var(--niceph-primary-color);
}

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

/* FAQ Section */
.page-privacy-policy__faq-item {
  background-color: var(--niceph-background);
  border: 1px solid var(--niceph-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--niceph-card-bg);
  color: var(--niceph-primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: rgba(var(--niceph-primary-color-rgb), 0.1);
}

.page-privacy-policy__faq-title {
  margin: 0;
  color: inherit;
  font-size: 1.1rem;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--niceph-secondary-color);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: var(--niceph-background);
  color: var(--niceph-text-main);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    height: auto;
  }

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

  .page-privacy-policy__hero-content {
    padding: 20px 15px;
    margin-top: -50px;
  }

  .page-privacy-policy__main-title {
    font-size: 2rem;
  }

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

  .page-privacy-policy__btn-primary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }

  .page-privacy-policy__content-section {
    padding: 30px 15px;
    margin: 10px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 0.95rem;
  }

  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

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

  .page-privacy-policy__faq-title {
    font-size: 1rem;
  }

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

  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 10px 20px;
  }

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

@media (max-width: 480px) {
  .page-privacy-policy__main-title {
    font-size: 1.8rem;
  }
  .page-privacy-policy__section-title {
    font-size: 1.6rem;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.2rem;
  }
}