/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-bg-1); /* Assuming shared.css defines a dark background */
}

/* Smart text color selection based on body background */
.page-privacy-policy {
  color: #ffffff; /* For dark body background, use light text */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
  overflow: hidden;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: #EA7C07;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #d16b06;
}

.page-privacy-policy__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  filter: none; /* Ensure no CSS filter */
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.page-privacy-policy__section-intro, .page-privacy-policy__section-data-collection, .page-privacy-policy__section-data-usage, .page-privacy-policy__section-sharing, .page-privacy-policy__section-security, .page-privacy-policy__section-rights, .page-privacy-policy__section-cookies, .page-privacy-policy__section-third-party, .page-privacy-policy__section-changes, .page-privacy-policy__section-faq {
  background-color: #ffffff;
  color: #333333;
  margin-bottom: 30px;
}

.page-privacy-policy__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.page-privacy-policy__dark-bg .page-privacy-policy__section-title {
  color: #ffffff;
}

.page-privacy-policy__sub-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-privacy-policy__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-privacy-policy__numbered-list {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-privacy-policy__list-item strong {
  color: #26A9E0;
}

.page-privacy-policy__dark-bg .page-privacy-policy__list-item strong {
  color: #ffffff;
}

.page-privacy-policy__content-area a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-privacy-policy__dark-bg .page-privacy-policy__content-area a {
  color: #ffffff;
}

/* Info Cards */
.page-privacy-policy__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-privacy-policy__card {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-privacy-policy__card-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-privacy-policy__card-text {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-privacy-policy__card-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 5px;
  object-fit: cover;
  margin-top: auto; /* Pushes image to bottom of card */
  filter: none; /* Ensure no CSS filter */
}

.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

/* Security Features */
.page-privacy-policy__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-privacy-policy__feature-item {
  background-color: #e6f7ff;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  border-radius: 8px;
  color: #333333;
}

.page-privacy-policy__feature-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-privacy-policy__feature-text {
  font-size: 0.95em;
}

/* Contact List */
.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-privacy-policy__contact-list .page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-privacy-policy__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-privacy-policy__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-content {
    max-width: 600px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-privacy-policy__hero-content {
    margin-bottom: 20px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-privacy-policy__description {
    font-size: 1em;
  }
  .page-privacy-policy__btn-primary {
    padding: 10px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__section-title {
    font-size: 1.6em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__info-cards,
  .page-privacy-policy__security-features {
    grid-template-columns: 1fr;
  }

  /* Images responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Buttons responsive */
  .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-wrap: wrap !important;
    gap: 10px;
  }
  .page-privacy-policy__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

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

@media (max-width: 480px) {
  .page-privacy-policy__main-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.4em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.1em;
  }
  .page-privacy-policy__faq-item summary {
    font-size: 0.95em;
  }
}