/* style/privacy-policy.css */

/* Custom Colors */
:root {
  --phfun-primary: #F2C14E;
  --phfun-secondary: #FFD36B;
  --phfun-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phfun-card-bg: #111111;
  --phfun-background: #0A0A0A;
  --phfun-text-main: #FFF6D6;
  --phfun-border: #3A2A12;
  --phfun-glow: #FFD36B;
  --header-offset: 122px; /* Default value, should be set by shared.css */
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-privacy-policy {
  color: var(--phfun-text-main); /* Light text for dark background */
  background: var(--phfun-background); /* Dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px; /* Adjust padding-top to avoid double counting header-offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--phfun-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-privacy-policy__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--phfun-text-main);
}

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

.page-privacy-policy__section-title {
  font-size: 2.2rem;
  color: var(--phfun-primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

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

.page-privacy-policy__section-title--light {
  color: var(--phfun-text-main);
}

.page-privacy-policy__sub-title {
  font-size: 1.6rem;
  color: var(--phfun-secondary);
  margin-top: 40px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.2);
}

.page-privacy-policy__sub-title--light {
  color: var(--phfun-text-main);
}

.page-privacy-policy__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--phfun-text-main);
}

.page-privacy-policy__text-block--light {
  color: var(--phfun-text-main);
}

.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  background: var(--phfun-button-gradient);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

/* Dark section specific styles for contrast */
.page-privacy-policy__dark-section {
  background: var(--phfun-card-bg);
  color: var(--phfun-text-main);
  padding: 60px 20px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.page-privacy-policy__dark-section .page-privacy-policy__section-title {
  color: var(--phfun-primary);
}

/* FAQ Styles */
.page-privacy-policy__faq-list {
  margin-top: 40px;
  border: 1px solid var(--phfun-border);
  border-radius: 8px;
  overflow: hidden;
}

.page-privacy-policy__faq-item {
  border-bottom: 1px solid var(--phfun-border);
}

.page-privacy-policy__faq-item:last-child {
  border-bottom: none;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--phfun-card-bg);
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.page-privacy-policy__faq-title {
  font-size: 1.2rem;
  color: var(--phfun-text-main);
  margin: 0;
}

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

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

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

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

.page-privacy-policy__faq-answer .page-privacy-policy__text-block {
  margin-bottom: 0;
  font-size: 1rem;
}

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

.page-privacy-policy__contact-item {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--phfun-text-main);
}

.page-privacy-policy__contact-item a {
  color: var(--phfun-secondary);
  text-decoration: none;
}

.page-privacy-policy__contact-item a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-content {
    max-width: 768px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-privacy-policy__content-area {
    padding: 30px 15px;
  }

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

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

  .page-privacy-policy__text-block {
    font-size: 0.95rem;
  }

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

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

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

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-privacy-policy__cta-button,
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary,
  .page-privacy-policy a[class*="button"],
  .page-privacy-policy a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-privacy-policy__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}