/* style/privacy-policy.css */

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Sử dụng màu chữ chính */
  background-color: var(--background); /* Sử dụng màu nền chính */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.4); /* Làm tối hình ảnh để chữ dễ đọc */
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main);
}

.page-privacy-policy__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold);
}

.page-privacy-policy__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.page-privacy-policy__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: var(--text-main);
}

.page-privacy-policy__dark-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-privacy-policy__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 15px;
}

.page-privacy-policy__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--glow);
  margin-top: 40px;
  margin-bottom: 20px;
}

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

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

.page-privacy-policy__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-privacy-policy__list-item::before {
  content: '•';
  color: var(--glow);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__contact-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-privacy-policy__contact-link:hover {
  color: #ffffff;
}

.page-privacy-policy__faq-section {
  padding: 60px 20px;
  background-color: var(--deep-green);
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1);
}

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

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

.page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  background-color: rgba(17, 168, 78, 0.15);
}

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

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

/* ==================================================================
   Responsive Styles
   ================================================================== */

/* Desktop specific styles */
@media (min-width: 769px) {
  .page-privacy-policy__hero-image {
    height: 100%;
    width: 100%;
  }
}

/* Tablet and Mobile styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-content {
    padding: 15px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-privacy-policy__description {
    font-size: 1em;
  }
  .page-privacy-policy__section-title {
    font-size: 2em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-privacy-policy__hero-content {
    padding: 10px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }
  .page-privacy-policy__description {
    font-size: 0.95em;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    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,
  .page-privacy-policy__faq-section {
    padding: 40px 15px;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__faq-question,
  .page-privacy-policy__faq-answer {
    font-size: 0.95em;
  }
  .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__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;
  }
}