/* style/privacy-policy.css */

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

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--phjoy-text-main); /* Ensure text is visible against dark background */
  background-color: var(--phjoy-bg-dark); /* Assume body background is dark from shared */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 400px;
  overflow: hidden;
  background-color: var(--phjoy-card-bg); /* Dark background for hero */
  color: var(--phjoy-text-main);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-privacy-policy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--phjoy-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-privacy-policy__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--phjoy-text-main);
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--phjoy-bg-dark);
  color: var(--phjoy-text-main);
}

.page-privacy-policy__section-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-privacy-policy__paragraph {
  margin-bottom: 20px;
  font-size: 1em;
  color: var(--phjoy-text-main);
}

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

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  color: var(--phjoy-text-main);
}

.page-privacy-policy__list-item strong {
  color: var(--phjoy-secondary);
}

.page-privacy-policy__content-area a {
  color: var(--phjoy-secondary);
  text-decoration: underline;
}

.page-privacy-policy__content-area a:hover {
  color: var(--phjoy-primary);
}

/* Call to Action Wrapper */
.page-privacy-policy__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: var(--phjoy-card-bg);
  border-radius: 10px;
  border: 1px solid var(--phjoy-border);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

.page-privacy-policy__cta-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: var(--phjoy-text-main);
}

/* Buttons */
.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--phjoy-button-gradient);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

/* Last Updated Section */
.page-privacy-policy__last-updated {
  text-align: right;
  margin-top: 40px;
  font-size: 0.9em;
  color: #888888;
}

/* Image specific styles */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images behave as blocks for responsiveness */
}

/* Ensure content area images are not too small */
.page-privacy-policy__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    min-height: 300px;
  }

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

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

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

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

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

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

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

  .page-privacy-policy__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-privacy-policy__content-area img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }

  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .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;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
}