/* style/privacy-policy.css */
:root {
  --ph365-primary-color: #F2C14E;
  --ph365-secondary-color: #FFD36B;
  --ph365-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --ph365-card-bg: #111111;
  --ph365-background-color: #0A0A0A;
  --ph365-text-main: #FFF6D6;
  --ph365-border-color: #3A2A12;
  --ph365-glow-color: #FFD36B;
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--ph365-text-main); /* Light text on dark body background */
  background-color: var(--ph365-background-color);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-privacy-policy__hero-section {
  background: var(--ph365-background-color);
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-privacy-policy__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--ph365-secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-privacy-policy__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: rgba(255, 246, 214, 0.8);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-privacy-policy__hero-image-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.page-privacy-policy__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
  display: block; /* Ensures max-width works correctly */
}

.page-privacy-policy__content-area {
  padding: 60px 0;
}

.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--ph365-primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.3;
}

.page-privacy-policy__sub-section-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--ph365-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__text-block p {
  margin-bottom: 15px;
  font-size: clamp(0.95em, 1.2vw, 1.1em);
  color: rgba(255, 246, 214, 0.85);
}

.page-privacy-policy__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: rgba(255, 246, 214, 0.85);
}

.page-privacy-policy__list li {
  margin-bottom: 8px;
  font-size: clamp(0.95em, 1.2vw, 1.1em);
}

.page-privacy-policy__list li strong {
  color: var(--ph365-secondary-color);
}

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

.page-privacy-policy__link:hover {
  color: var(--ph365-primary-color);
  text-decoration: none;
}

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

.page-privacy-policy__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
  display: block; /* Ensures max-width works correctly */
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

.page-privacy-policy__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background: var(--ph365-card-bg);
  border-radius: 10px;
  border: 1px solid var(--ph365-border-color);
  box-shadow: 0 0 25px rgba(255, 211, 107, 0.1);
}

.page-privacy-policy__cta-text {
  font-size: clamp(1.1em, 1.5vw, 1.3em);
  margin-bottom: 20px;
  color: var(--ph365-text-main);
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0 10px 15px 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
  background: var(--ph365-button-gradient);
  color: var(--ph365-text-main);
  border: none;
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-privacy-policy__btn-secondary {
  background: var(--ph365-card-bg);
  color: var(--ph365-primary-color);
  border: 2px solid var(--ph365-primary-color);
}

.page-privacy-policy__btn-secondary:hover {
  background: var(--ph365-primary-color);
  color: var(--ph365-card-bg);
  box-shadow: 0 5px 15px rgba(255, 195, 77, 0.3);
  transform: translateY(-2px);
}

.page-privacy-policy__faq-list {
  margin-top: 40px;
}

.page-privacy-policy__faq-item {
  background: var(--ph365-card-bg);
  border: 1px solid var(--ph365-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  font-size: clamp(1.1em, 1.5vw, 1.3em);
  color: var(--ph365-text-main);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.8em;
  color: var(--ph365-secondary-color);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
  content: '−'; /* Change content for active state */
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: rgba(255, 246, 214, 0.7);
}

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

.page-privacy-policy__faq-answer p {
  margin-bottom: 0;
  font-size: clamp(0.9em, 1.1vw, 1em);
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 100px) !important; /* Adjust for mobile header */
  }

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

  .page-privacy-policy__hero-title {
    font-size: 2.2em;
  }

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

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

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

  .page-privacy-policy__text-block p,
  .page-privacy-policy__list li {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }

  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-privacy-policy__cta-section {
    padding: 20px 15px;
  }

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

  .page-privacy-policy__faq-question h3 {
    font-size: 1.05em;
  }

  .page-privacy-policy__faq-toggle {
    font-size: 1.5em;
  }

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

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