/* style/privacy-policy.css */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F3F8FF); /* Default text color for the page */
  background-color: var(--deep-navy, #08162B); /* Inherited from body via shared.css */
  padding-bottom: 40px; /* Add some padding at the bottom before footer */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first, then row for desktop */
  align-items: center;
  gap: 30px;
  padding: 10px 20px 40px; /* Top padding 10px as per rule, no var(--header-offset) here */
  max-width: 1200px;
  margin: 0 auto;
}

.page-privacy-policy__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-privacy-policy__hero-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Use clamp for H1 */
  color: var(--text-main, #F3F8FF);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-privacy-policy__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 30px;
}

.page-privacy-policy__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
  width: 100%; /* Important for mobile button responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary,
.page-privacy-policy a[class*="button"],
.page-privacy-policy a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Crucial for button responsiveness */
  box-sizing: border-box;
  text-align: center;
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: var(--text-main, #F3F8FF);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-privacy-policy__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-privacy-policy__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--deep-navy, #08162B);
  transform: translateY(-2px);
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center; /* Center image if it's smaller than wrapper */
}

.page-privacy-policy__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain; /* Ensure image is fully visible, not cropped */
}

/* General Section Styling */
.page-privacy-policy__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--deep-navy, #08162B); /* Ensure consistency with body BG */
  border-radius: 10px;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: var(--gold, #F2C14E);
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid var(--divider, #1B3357);
  padding-bottom: 15px;
}

.page-privacy-policy__text-block {
  font-size: 1.05em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 20px;
  text-align: justify;
}

/* Content Grid for Cards */
.page-privacy-policy__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-privacy-policy__card {
  background-color: var(--card-bg, #10233F);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #F3F8FF);
  border: 1px solid var(--border, #244D84);
}

.page-privacy-policy__card-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-privacy-policy__card p {
  color: var(--text-secondary, #AFC4E8);
  font-size: 1em;
  line-height: 1.7;
}

/* List Styling */
.page-privacy-policy__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-privacy-policy__list-item {
  background-color: var(--card-bg, #10233F);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--border, #244D84);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__list-title {
  font-size: 1.3em;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-privacy-policy__list-item p {
  color: var(--text-secondary, #AFC4E8);
  font-size: 0.95em;
}

.page-privacy-policy__image-block {
  margin: 30px 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;
  object-fit: cover; /* Default cover, but mobile will override to contain for hero-like images */
}

/* Link Styling within content */
.page-privacy-policy a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: var(--glow, #4FA8FF);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  max-width: 900px;
}

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

.page-privacy-policy__faq-item {
  background-color: var(--card-bg, #10233F);
  border: 1px solid var(--border, #244D84);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main, #F3F8FF);
  cursor: pointer;
  list-style: none; /* Remove default marker */
  outline: none;
}

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

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--gold, #F2C14E);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #AFC4E8);
  line-height: 1.7;
  border-top: 1px solid var(--divider, #1B3357);
  margin-top: 10px;
}
.page-privacy-policy__faq-answer p {
  margin-top: 10px;
  color: var(--text-secondary, #AFC4E8);
}

/* Desktop Styles (min-width: 769px) */
@media (min-width: 769px) {
  .page-privacy-policy__hero-section {
    flex-direction: row; /* Desktop: image and content side-by-side */
    text-align: left;
    padding: 10px 40px 60px;
  }

  .page-privacy-policy__hero-content {
    flex: 1;
    padding-right: 40px;
    text-align: left;
  }
  
  .page-privacy-policy__hero-title {
    text-align: left;
  }

  .page-privacy-policy__hero-description {
    text-align: left;
  }

  .page-privacy-policy__cta-buttons {
    justify-content: flex-start;
  }

  .page-privacy-policy__hero-image-wrapper {
    flex: 1;
    max-width: 50%;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  /* General mobile padding */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important; /* For hero-like images, ensure they fit */
  }
  
  .page-privacy-policy__content-image {
    object-fit: contain !important; /* Ensure content images also fit */
  }

  /* Buttons responsiveness */
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  /* Text sizes for mobile */
  .page-privacy-policy__hero-title {
    font-size: 2em;
    text-align: center;
  }

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

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

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

  .page-privacy-policy__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  
  .page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
  }

  /* Content grid */
  .page-privacy-policy__content-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  /* List item padding */
  .page-privacy-policy__list-item {
    padding: 15px;
  }
}