/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background-color, #08160F); /* Body background from custom palette */
}

/* Section spacing */
.page-privacy-policy__section-spacing {
  padding: 60px 0;
}

/* Container for content width */
.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;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--card-bg, #11271B); /* Use a dark background for hero */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px; /* Limit height for hero image */
  display: block;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-privacy-policy__main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-privacy-policy__description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* General Titles */
.page-privacy-policy__section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--glow, #57E38D); /* Use a vibrant color for main section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Text Block styles */
.page-privacy-policy__text-block {
  padding: 20px;
}

.page-privacy-policy__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

.page-privacy-policy__text-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

.page-privacy-policy__text-block li {
  margin-bottom: 8px;
  color: var(--text-secondary, #A7D9B8);
}

/* Image Wrapper */
.page-privacy-policy__image-wrapper {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Content Grid */
.page-privacy-policy__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-privacy-policy__content-grid--reverse {
  grid-template-columns: 1fr 1fr; /* Default order */
}

/* Data Usage Cards */
.page-privacy-policy__usage-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-privacy-policy__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-secondary, #A7D9B8); /* Text on card */
}

.page-privacy-policy__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__card-title {
  font-size: 1.3rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-privacy-policy__card p {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Dark Sections */
.page-privacy-policy__dark-section {
  background-color: var(--deep-green, #0A4B2C); /* Use a slightly different dark tone */
  color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__dark-section .page-privacy-policy__section-title {
  color: var(--gold, #F2C14E); /* Gold title for dark sections */
}

.page-privacy-policy__dark-section p,
.page-privacy-policy__dark-section li {
  color: var(--text-secondary, #A7D9B8);
}

/* Sharing points */
.page-privacy-policy__sharing-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-privacy-policy__sharing-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary, #A7D9B8);
}

/* User Rights Grid */
.page-privacy-policy__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.page-privacy-policy__action-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
  margin-top: 40px;
}

/* Links */
.page-privacy-policy__link-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__link-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-privacy-policy__contact-link {
  color: var(--glow, #57E38D);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.page-privacy-policy__contact-link:hover {
  color: var(--gold, #F2C14E);
}


/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-privacy-policy__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  border-bottom-color: var(--divider, #1E3A2A);
  background-color: var(--deep-green, #0A4B2C);
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Hide default details marker */
.page-privacy-policy__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-privacy-policy__faq-item summary {
  list-style: none;
}

/* Changes and Contact Section */
.page-privacy-policy__changes-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  padding: 60px 20px;
}

.page-privacy-policy__changes-block,
.page-privacy-policy__contact-block {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-secondary, #A7D9B8);
}

.page-privacy-policy__changes-block .page-privacy-policy__section-title,
.page-privacy-policy__contact-block .page-privacy-policy__section-title {
  text-align: left;
  margin-bottom: 25px;
  color: var(--glow, #57E38D);
}

.page-privacy-policy__contact-info {
  font-style: normal;
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-privacy-policy__contact-image {
  margin-top: 30px;
}

/* Responsive design for mobile */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-image {
    max-height: 300px;
  }
  .page-privacy-policy__content-grid {
    grid-template-columns: 1fr;
  }
  .page-privacy-policy__content-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-privacy-policy__content-grid--reverse .page-privacy-policy__image-wrapper {
    order: -1; /* Image appears first on mobile */
  }
  .page-privacy-policy__changes-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__section-spacing {
    padding: 40px 0;
  }
  .page-privacy-policy__hero-section {
    padding-bottom: 40px;
  }
  .page-privacy-policy__hero-image {
    max-height: 250px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
  .page-privacy-policy__description {
    font-size: 1rem;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-privacy-policy__sub-title {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }
  .page-privacy-policy__usage-points,
  .page-privacy-policy__sharing-points,
  .page-privacy-policy__rights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-privacy-policy__card {
    padding: 25px;
  }
  .page-privacy-policy__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image and container responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-grid,
  .page-privacy-policy__usage-points,
  .page-privacy-policy__sharing-points,
  .page-privacy-policy__rights-grid,
  .page-privacy-policy__faq-list,
  .page-privacy-policy__changes-contact,
  .page-privacy-policy__changes-block,
  .page-privacy-policy__contact-block,
  .page-privacy-policy__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Buttons mobile responsiveness */
  .page-privacy-policy__link-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Adjust padding for full width buttons */
    padding-right: 15px;
    text-align: center;
  }

  .page-privacy-policy__action-text .page-privacy-policy__link-button {
    margin-top: 20px;
  }

  /* Video section specific padding for mobile (if any, not directly applicable here but for general rule adherence) */
  .page-privacy-policy__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}