/* style/gdpr.css */

/* Biến màu từ shared.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --background-card-light: #ffffff;
  --background-card-dark: rgba(255, 255, 255, 0.1);
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Màu chữ sáng cho nền tối của body */
  background-color: var(--background-dark); /* Nền tối từ shared.css */
  padding-top: var(--header-offset, 120px);
}

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

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  overflow: hidden;
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 2;
}

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

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.5;
  color: var(--text-light);
}

.page-gdpr__content-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

.page-gdpr__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-gdpr__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-light);
  text-align: justify;
}

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: #ffd700;
  text-decoration: underline;
}

.page-gdpr__list {
  list-style: disc inside;
  margin-bottom: 30px;
  padding-left: 20px;
}

.page-gdpr__list-item {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-light);
}

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

.page-gdpr__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-gdpr__image--right {
  float: right;
  margin-left: 30px;
  width: 50%;
  max-width: 600px;
  height: auto;
}

.page-gdpr__image--left {
  float: left;
  margin-right: 30px;
  width: 50%;
  max-width: 600px;
  height: auto;
}

/* Clear floats for images */
.page-gdpr__content-section::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--background-card-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a; /* Nền tối cho câu hỏi */
  color: var(--text-light);
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-question:hover {
  background: #3a3a3a;
  border-color: var(--primary-color);
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Màu chữ vàng cho câu hỏi */
  pointer-events: none;
}

.page-gdpr__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #333; /* Nền tối hơn cho câu trả lời */
  color: var(--text-light); /* Màu chữ sáng cho câu trả lời */
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #444;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-gdpr__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }
  .page-gdpr__description {
    font-size: 18px;
  }
  .page-gdpr__section-title {
    font-size: 32px;
  }
  .page-gdpr__image--right,
  .page-gdpr__image--left {
    width: 100%;
    float: none;
    margin: 0 auto 30px auto;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__hero-section {
    padding: 60px 15px;
  }
  .page-gdpr__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-gdpr__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-gdpr__content-section {
    padding: 40px 15px;
  }
  .page-gdpr__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-gdpr__paragraph,
  .page-gdpr__list-item {
    font-size: 16px;
  }
  .page-gdpr__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-gdpr__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-gdpr__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-gdpr__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 28px;
  }
  .page-gdpr__description {
    font-size: 15px;
  }
  .page-gdpr__section-title {
    font-size: 24px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 15px;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px;
  }
}