/* style/privacy-policy.css */

/* Variables for consistent styling */
:root {
  --phdream-primary: #F2C14E;
  --phdream-secondary: #FFD36B;
  --phdream-card-bg: #111111;
  --phdream-body-bg: #0A0A0A;
  --phdream-text-main: #FFF6D6;
  --phdream-border: #3A2A12;
  --phdream-glow: #FFD36B;
  --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  color: var(--phdream-text-main); /* Text Main for all page content */
  background-color: var(--phdream-body-bg); /* Body background */
  line-height: 1.6;
  /* padding-top is handled by body in shared.css; this is for first section's internal spacing */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  background-color: var(--phdream-body-bg);
  color: var(--phdream-text-main);
  padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-privacy-policy__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  margin-top: 20px; /* Separates content from image */
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: var(--phdream-secondary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-privacy-policy__subtitle {
  font-size: 1.1em;
  color: var(--phdream-text-main);
  max-width: 800px;
  margin: 0 auto;
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--phdream-body-bg);
  color: var(--phdream-text-main);
}

.page-privacy-policy__text-block {
  margin-bottom: 30px;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: var(--phdream-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--phdream-border);
  padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
  font-size: 1.5em;
  color: var(--phdream-secondary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  color: var(--phdream-text-main);
}

.page-privacy-policy ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--phdream-text-main);
}

.page-privacy-policy li {
  margin-bottom: 10px;
  color: var(--phdream-text-main);
}

.page-privacy-policy strong {
  color: var(--phdream-secondary);
}

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

.page-privacy-policy__inline-link:hover {
  color: var(--phdream-primary);
}

.page-privacy-policy__image-block {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-privacy-policy__faq-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--phdream-border);
}

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

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

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

.page-privacy-policy__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--phdream-secondary);
}

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--phdream-primary);
  transition: transform 0.3s ease;
}

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--phdream-text-main);
}

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

.page-privacy-policy__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--phdream-text-main);
}

.page-privacy-policy__contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: var(--phdream-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--phdream-border);
}

.page-privacy-policy__contact-content {
  margin-bottom: 30px;
}

.page-privacy-policy__contact-cta .page-privacy-policy__section-title {
  color: var(--phdream-secondary);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.page-privacy-policy__contact-cta p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 20px auto;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--phdream-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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__contact-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-content,
  .page-privacy-policy__content-area,
  .page-privacy-policy__contact-cta {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

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

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

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

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

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

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

  .page-privacy-policy__subsection-title {
    font-size: 1.3em;
  }

  .page-privacy-policy p,
  .page-privacy-policy li {
    font-size: 1em;
  }

  .page-privacy-policy__image-block {
    margin: 20px auto;
  }

  .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,
  .page-privacy-policy__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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__faq-question {
    padding: 15px;
  }

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

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

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

  .page-privacy-policy__contact-cta {
    padding: 30px 15px;
    margin: 40px auto;
  }

  .page-privacy-policy__contact-cta p {
    font-size: 1em;
  }
}