/* style/privacy-policy.css */

/* Custom properties for colors */
:root {
  --rv66-primary-color: #11A84E; /* Main color */
  --rv66-secondary-color: #22C768; /* Auxiliary color */
  --rv66-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --rv66-card-bg: #11271B;
  --rv66-background: #08160F;
  --rv66-text-main: #F2FFF6;
  --rv66-text-secondary: #A7D9B8;
  --rv66-border: #2E7A4E;
  --rv66-glow: #57E38D;
  --rv66-gold: #F2C14E;
  --rv66-divider: #1E3A2A;
  --rv66-deep-green: #0A4B2C;
}

/* Base styles for the page, inheriting from body if needed */
.page-privacy-policy {
  background-color: var(--rv66-background); /* Dark background */
  color: var(--rv66-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Ensure content areas have appropriate background and text color for contrast */
.page-privacy-policy__dark-bg {
  background-color: var(--rv66-background);
  color: var(--rv66-text-main);
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: var(--rv66-background);
  text-align: center;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-privacy-policy__hero-content {
  max-width: 800px;
  color: var(--rv66-text-main);
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--rv66-gold); /* Using gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-privacy-policy__description {
  font-size: 1.15rem;
  color: var(--rv66-text-secondary);
  margin-bottom: 30px;
}

/* Content Area */
.page-privacy-policy__content-area {
  padding: 60px 0;
  background-color: var(--rv66-background);
  color: var(--rv66-text-main);
}

.page-privacy-policy__section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--rv66-primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 2px solid var(--rv66-divider);
  padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--rv66-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-privacy-policy__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--rv66-text-secondary);
}

.page-privacy-policy__text-block a {
  color: var(--rv66-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-privacy-policy__text-block a:hover {
  text-decoration: underline;
  color: var(--rv66-secondary-color);
}

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

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-privacy-policy__list-item strong {
  color: var(--rv66-text-main);
}

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

.page-privacy-policy__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensures it respects max-width */
  margin: 0 auto; /* Center image */
}

.page-privacy-policy__image-caption {
  font-size: 0.95rem;
  color: var(--rv66-text-secondary);
  margin-top: 10px;
  font-style: italic;
}

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

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

.page-privacy-policy__faq-item details > summary {
  list-style: none;
}

.page-privacy-policy__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--rv66-text-main);
  cursor: pointer;
  background-color: var(--rv66-deep-green);
  border-bottom: 1px solid var(--rv66-border);
}

.page-privacy-policy__faq-question:hover {
  background-color: rgba(var(--rv66-deep-green), 0.8);
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--rv66-primary-color);
}

.page-privacy-policy__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--rv66-text-secondary);
  background-color: var(--rv66-card-bg);
}

/* Call to Action Section */
.page-privacy-policy__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--rv66-deep-green); /* A slightly different dark green */
  color: var(--rv66-text-main);
  border-top: 1px solid var(--rv66-border);
}

.page-privacy-policy__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--rv66-gold);
  margin-bottom: 20px;
}

.page-privacy-policy__cta-description {
  font-size: 1.15rem;
  color: var(--rv66-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-privacy-policy__btn-primary {
  background: var(--rv66-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy__btn-secondary:hover {
  background: var(--rv66-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

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

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

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

  .page-privacy-policy__subsection-title {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__faq-question,
  .page-privacy-policy__faq-answer p {
    font-size: 0.95rem;
  }

  /* Images responsive */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-privacy-policy__cta-description {
    font-size: 1rem;
  }

  /* Buttons responsive */
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Button groups for mobile */
  .page-privacy-policy__hero-content,
  .page-privacy-policy__cta-section .page-privacy-policy__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-privacy-policy__hero-content .page-privacy-policy__btn-primary,
  .page-privacy-policy__cta-section .page-privacy-policy__btn-primary,
  .page-privacy-policy__cta-section .page-privacy-policy__btn-secondary {
    width: calc(100% - 20px) !important; /* Account for padding in container */
    margin: 5px auto !important;
  }

  /* Ensure all containers are responsive */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__cta-section,
  .page-privacy-policy__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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