/* style/privacy-policy.css */

/* Custom CSS Variables based on provided color scheme */
:root {
  --primary-color: #FF8C1A;
  --auxiliary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
  padding-bottom: 60px; /* 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;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--background-color);
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-privacy-policy__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--auxiliary-color) 0%, var(--deep-orange-color) 100%); /* Button gradient */
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button:hover {
  background: linear-gradient(180deg, var(--deep-orange-color) 0%, var(--auxiliary-color) 100%);
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--background-color); /* Ensure consistency */
  border-radius: 8px;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: var(--primary-color); /* Use primary color for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-privacy-policy__sub-title {
  font-size: 1.4em;
  color: var(--text-main-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

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

.page-privacy-policy__list-item strong {
  color: var(--primary-color); /* Highlight strong text */
}

.page-privacy-policy a {
  color: var(--glow-color); /* Use Glow color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: var(--auxiliary-color);
}

/* Ensure content area images are not small */
.page-privacy-policy__content-area img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 30px;
}

.page-privacy-policy__faq-item {
  background-color: var(--card-bg-color); /* Card BG color */
  border: 1px solid var(--border-color); /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color); /* Question text in primary color */
  background-color: var(--card-bg-color);
}

/* Details tag specific styles for FAQ */
.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  color: var(--auxiliary-color); /* Change color when open */
}

.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}

.page-privacy-policy__faq-question::marker {
  display: none;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-privacy-policy__faq-answer {
  padding: 0 20px 15px;
  font-size: 1em;
  color: var(--text-main-color);
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0;
}

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

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

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

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  .page-privacy-policy__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    display: block !important; /* Ensure it takes full width */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

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

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

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

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-privacy-policy__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-left: 0 !important; /* Remove section padding, content-area handles it */
    padding-right: 0 !important; /* Remove section padding, content-area handles it */
  }

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