/* style/privacy-policy.css */

/* Biến màu sắc */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --register-login-font-color: #FFFF00;
  --dark-bg-1: #0d0d0d; /* Giả định từ shared.css */
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark-bg); /* Mặc định chữ sáng trên nền tối của body */
  background-color: var(--dark-bg-1); /* Giả định body background từ shared.css */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
  padding-bottom: 60px;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-on-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-privacy-policy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

.page-privacy-policy__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.page-privacy-policy__content-area {
  background: var(--secondary-color); /* Nền trắng cho khu vực nội dung chính */
  color: var(--text-on-light-bg); /* Chữ tối trên nền trắng */
  padding: 60px 0;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-privacy-policy__sub-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-on-light-bg);
}

.page-privacy-policy__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-privacy-policy__btn-primary {
  background: var(--primary-color);
  color: var(--text-on-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: center;
}

.page-privacy-policy__contact-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-on-light-bg);
}

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

.page-privacy-policy__contact-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  background: var(--primary-color);
  color: var(--text-on-dark-bg);
  padding: 60px 0;
  text-align: center;
}

.page-privacy-policy__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--secondary-color);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

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

.page-privacy-policy__faq-item summary:hover {
  background: rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 20px;
  font-size: 1.1em;
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.05);
}

.page-privacy-policy__faq-answer p {
  color: var(--secondary-color); /* Đảm bảo màu chữ trong FAQ là màu sáng */
}

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

  .page-privacy-policy__hero-title {
    font-size: 2em;
  }

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

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

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

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

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

  /* Mobile image 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-area,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Mobile button 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;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

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

  /* Fixed header offset for mobile, if needed for main content */
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}