:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #f9f9f9;
  --bg-color-white: #ffffff;
  --border-color: #e0e0e0;
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background-color: var(--bg-color-white); /* Assuming shared body is white */
  padding-bottom: 60px; /* Space above footer */
}

/* --- Hero Section --- */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Brand colors for hero background */
  color: var(--text-color-light); /* Light text on dark/colored background */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-privacy-policy__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
}

.page-privacy-policy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Enhance readability */
}

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

.page-privacy-policy__hero-image {
  width: 100%;
  max-width: 800px; /* Constrain image width */
  margin-top: 30px; /* Space between content and image */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styling --- */
.page-privacy-policy__section {
  padding: 60px 20px;
  margin-bottom: 0; /* Remove default margin */
}

.page-privacy-policy__section:nth-of-type(even) {
  background-color: var(--bg-color-light); /* Alternate background for readability */
}

.page-privacy-policy__dark-section {
  background-color: var(--secondary-color); /* Dark red background */
  color: var(--text-color-light); /* Light text on dark background */
}

.page-privacy-policy__light-bg {
  background-color: var(--bg-color-white); /* White background */
  color: var(--text-color-dark); /* Dark text on light background */
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-privacy-policy__dark-section .page-privacy-policy__section-title {
  color: var(--text-color-light); /* Light title on dark background */
}

.page-privacy-policy__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-color-dark);
}

.page-privacy-policy__dark-section .page-privacy-policy__section-description {
  color: var(--text-color-light);
}

.page-privacy-policy__subsection-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-privacy-policy__dark-section .page-privacy-policy__subsection-title {
  color: var(--text-color-light);
}

.page-privacy-policy__grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-privacy-policy__grid-item {
  background: var(--bg-color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-color-dark);
}

.page-privacy-policy__dark-section .page-privacy-policy__grid-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.page-privacy-policy__dark-section .page-privacy-policy__grid-item .page-privacy-policy__subsection-title {
  color: var(--primary-color); /* Highlight titles in dark sections */
}


.page-privacy-policy__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-privacy-policy__image--right {
  float: right;
  margin-left: 20px;
  max-width: 400px; /* Specific width for floating image */
}

.page-privacy-policy__image--center {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 800px;
  min-width: 200px;
}

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

.page-privacy-policy__list li {
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.page-privacy-policy__dark-section .page-privacy-policy__list li {
  color: var(--text-color-light);
}

.page-privacy-policy__list--contact {
  list-style: none;
  margin-left: 0;
  padding: 0;
  text-align: center;
}

.page-privacy-policy__list--contact li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

.page-privacy-policy__list--contact a:hover {
  text-decoration: underline;
}

.page-privacy-policy__contact-info {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.page-privacy-policy__contact-info p {
  margin-bottom: 25px;
  font-size: 1.1em;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Data Security Section Specifics --- */
.page-privacy-policy__security-details {
  text-align: center;
}

.page-privacy-policy__list--centered {
  list-style: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  text-align: left;
  padding: 0;
}

.page-privacy-policy__list--centered li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__list--centered li::before {
  content: '✓'; /* Checkmark icon */
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* --- FAQ Section --- */
.page-privacy-policy__faq-section {
  background-color: var(--bg-color-light);
  padding: 60px 20px;
}

.page-privacy-policy__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* FAQ默认状态 - 答案隐藏 */
.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjust padding */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important; /* Adjust padding */
  opacity: 1;
  background: var(--bg-color-white); /* White background for answer */
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--border-color); /* Separator line */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Question styling */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjust padding */
  background: var(--bg-color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-question:hover {
  background: var(--bg-color-light);
  border-color: var(--primary-color); /* Highlight border on hover */
}

.page-privacy-policy__faq-question:active {
  background: #eeeeee;
}

/* Question title styling */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-color-dark);
}

/* Toggle icon */
.page-privacy-policy__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Brand color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Adjust margin */
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--secondary-color); /* Change color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__hero-description {
    font-size: 1em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__subsection-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile Hero Section Styles */
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__hero-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-privacy-policy__hero-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  .page-privacy-policy__hero-image {
    margin-top: 20px;
    border-radius: 8px;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
    max-width: 100% !important; /* Ensure button fits */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 🚨 Mobile General Section & Image Styles */
  .page-privacy-policy__section {
    padding: 40px 15px;
  }
  .page-privacy-policy__container {
    padding: 0; /* Remove horizontal padding, allow grid items to handle it */
  }
  .page-privacy-policy__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-privacy-policy__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-privacy-policy__subsection-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-privacy-policy__grid-row {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-privacy-policy__grid-item {
    padding: 20px;
  }
  .page-privacy-policy__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
    min-width: 200px; /* Maintain minimum size */
    min-height: 150px; /* Adjust height for mobile */
  }
  .page-privacy-policy__image--right {
    float: none;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .page-privacy-policy__list {
    margin-left: 15px;
    font-size: 0.95em;
  }
  .page-privacy-policy__list--contact li {
    font-size: 1em;
  }
  .page-privacy-policy__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-privacy-policy__contact-info {
    padding-top: 20px;
  }
  .page-privacy-policy__contact-info p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 🚨 Mobile FAQ Styles */
  .page-privacy-policy__faq-section {
    padding: 40px 15px;
  }
  .page-privacy-policy__faq-question {
    padding: 15px 20px;
  }
  .page-privacy-policy__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-privacy-policy__content-area,
  .page-privacy-policy__section,
  .page-privacy-policy__grid-item,
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Handled by inner container */
    padding-right: 0; /* Handled by inner container */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-privacy-policy__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy p,
  .page-privacy-policy li {
    font-size: 15px;
  }
}

/* Ensure no image filters are used */
.page-privacy-policy img {
  filter: none !important; /* Explicitly disable any potential filter */
}