/* style/gdpr.css */

/* Cài đặt chung cho trang GDPR, đảm bảo màu chữ sáng trên nền tối */
.page-gdpr {
  background-color: #000;
  color: #f0f0f0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Khoảng cách top cho nội dung chính để tránh bị header cố định che */
.page-gdpr__hero-section {
  padding-top: 120px; /* Desktop padding */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Màu xanh đậm hơn */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-gdpr__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-gdpr__hero-button {
  display: inline-block;
  background-color: #ffc107;
  color: #333333;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-gdpr__hero-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Các Section chung */
.page-gdpr__section {
  padding: 60px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

.page-gdpr__container {
  max-width: 1100px;
  margin: 0 auto;
}

.page-gdpr__heading {
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 30px;
  color: #ffc107;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-gdpr__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #e0e0e0;
}

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

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-gdpr__list-item strong {
  color: #ffc107;
}

/* Data Collection Grid */
.page-gdpr__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-gdpr__card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-gdpr__card-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.page-gdpr__card-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-gdpr__card-title {
  font-size: 1.5em;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
}

/* User Rights Grid */
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-gdpr__card--right {
  background: rgba(0, 123, 255, 0.15); /* Nền xanh nhẹ */
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.page-gdpr__card--right:hover {
  background: rgba(0, 123, 255, 0.25);
}

/* Contact Info */
.page-gdpr__contact-info {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-gdpr__contact-detail {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-gdpr__contact-detail strong {
  color: #ffc107;
}

.page-gdpr__contact-detail a {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__contact-detail a:hover {
  color: #e0a800;
  text-decoration: underline;
}

/* Buttons */
.page-gdpr__button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
  margin-top: 20px;
}

.page-gdpr__button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  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: rgba(255, 255, 255, 0.12);
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffc107;
  pointer-events: none;
}

.page-gdpr__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 30px;
  height: 30px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #ffc107;
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu + */
}

.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;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.8em;
  }
  .page-gdpr__heading {
    font-size: 2em;
  }
  .page-gdpr__content-grid,
  .page-gdpr__rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 100px; /* Mobile padding */
    padding: 60px 15px;
  }
  .page-gdpr__hero-title {
    font-size: 2.2em;
  }
  .page-gdpr__hero-description {
    font-size: 1.1em;
  }
  .page-gdpr__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-gdpr__section {
    padding: 40px 15px;
  }
  .page-gdpr__heading {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-gdpr__paragraph,
  .page-gdpr__list-item,
  .page-gdpr__card-description,
  .page-gdpr__contact-detail {
    font-size: 1em;
  }
  .page-gdpr__content-grid,
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__card {
    padding: 25px;
  }
  .page-gdpr__card-title {
    font-size: 1.3em;
  }
  .page-gdpr__card-img {
    width: 80px;
    height: 80px;
  }
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 1.1em;
  }
  .page-gdpr__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 20px !important;
  }
  /* Ảnh di động phải luôn full width và không gây scroll ngang */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}