/* style/gdpr.css */

/* Variables (if any, but generally use shared.css for common ones) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
}

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background: var(--secondary-color); /* Body background is white */
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
}

.page-gdpr__text-block {
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-gdpr__list li {
  margin-bottom: 10px;
}

.page-gdpr__list li strong {
  color: var(--primary-color);
}

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__link:hover {
  color: #1a8cc4; /* Darken primary color */
}

/* Hero Section */
.page-gdpr__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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #26A9E0 50%, #1a8cc4 100%);
  color: var(--text-light);
  min-height: 450px;
}

.page-gdpr__hero-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-gdpr__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login/promotion color */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button:hover {
  background: #d46f06; /* Darken #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* Section styling */
.page-gdpr__content-section {
  padding: 80px 0;
}

.page-gdpr__light-bg {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark);
}

.page-gdpr__dark-bg {
  background-color: var(--primary-color); /* Brand primary color */
  color: var(--text-light);
}

.page-gdpr__dark-bg .page-gdpr__section-title {
  color: var(--text-light);
}

.page-gdpr__dark-bg .page-gdpr__list li strong {
  color: var(--text-light);
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-gdpr__contact-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-gdpr__contact-list li strong {
  min-width: 120px;
  display: inline-block;
}

.page-gdpr__policy-link {
  margin-top: 40px;
  text-align: center;
  font-size: 1.1em;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding-bottom: 80px;
}

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

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

/* FAQ默认状态 - 答案隐藏 */
.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo luôn mở rộng */
.page-gdpr__faq-item.active .page-gdpr__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;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 8px 8px;
}

/* Vấn đề phong cách */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  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-gdpr__faq-item.active .page-gdpr__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Vấn đề tiêu đề phong cách */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Thay đổi thành X hoặc xoay để hiển thị dấu trừ */
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    padding-top: 40px;
    margin-bottom: 30px;
  }

  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
    min-height: auto;
  }

  .page-gdpr__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-gdpr__cta-button {
    padding: 12px 30px;
    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-gdpr__contact-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-gdpr__contact-list li strong {
    min-width: unset;
    margin-bottom: 5px;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }

  .page-gdpr__content-section,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }

  /* FAQ mobile styles */
  .page-gdpr__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-gdpr__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-gdpr__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure no image filters are used */
.page-gdpr img {
  filter: none !important;
}

/* Global mobile overflow prevention */
.page-gdpr {
  overflow-x: hidden;
}

.page-gdpr__section,
.page-gdpr__card,
.page-gdpr__container {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Button responsive styles */
.page-gdpr__cta-button,
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr a[class*="button"],
.page-gdpr a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__cta-buttons,
.page-gdpr__button-group,
.page-gdpr__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-gdpr__cta-button,
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr 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-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__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-gdpr__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}