/* style/gdpr.css */

/* Biến CSS cho màu sắc */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #333;
  --hover-color-primary: #0056b3;
  --hover-color-secondary: #e0a800;
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-gdpr__hero-section {
  padding-top: 120px; /* Desktop: Điều chỉnh dựa trên chiều cao header thực tế */
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding-bottom: 60px;
}

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

.page-gdpr__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-gdpr__cta-button:hover {
  background: var(--hover-color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

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

.page-gdpr__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-gdpr__section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-gdpr__section:nth-of-type(odd) {
  background: #1a1a1a; /* Slightly different dark background */
}

.page-gdpr__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-gdpr__text-intro {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

.page-gdpr__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-gdpr__content-block p {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

.page-gdpr__content-block .page-gdpr__image {
  flex: 0 0 450px; /* Fixed width for desktop */
  max-width: 450px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-gdpr__image--left {
  margin-right: 40px;
}

.page-gdpr__image--right {
  margin-left: 40px;
  order: 2; /* For reversed layout */
}

.page-gdpr__content-block--reversed .page-gdpr__image {
  order: 2;
}

.page-gdpr__content-block--reversed p {
  order: 1;
}

.page-gdpr__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-gdpr__card {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-gdpr__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-gdpr__card p {
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

.page-gdpr__list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-gdpr__list-item {
  background: var(--bg-light-card);
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-gdpr__list-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-gdpr__list-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #bbbbbb;
}

.page-gdpr__action-area {
  text-align: center;
  margin-top: 60px;
}

.page-gdpr__action-area p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-gdpr__contact-info {
  background: var(--bg-light-card);
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-gdpr__contact-info p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #cccccc;
}

.page-gdpr__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-gdpr__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 80px auto 0 auto;
  max-width: 1000px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-gdpr__dark-section .page-gdpr__text-intro {
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* FAQ Section Styles */
.page-gdpr__section--faq {
  padding-bottom: 80px;
}

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  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: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-light);
}

.page-gdpr__faq-question:hover {
  background: #3a3a3a;
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-light);
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

.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: #1e1e1e;
  color: #cccccc;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-gdpr__faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 38px;
  }
  .page-gdpr__section-title {
    font-size: 32px;
  }
  .page-gdpr__content-block .page-gdpr__image {
    flex: 0 0 350px;
    max-width: 350px;
  }
  .page-gdpr__card-title {
    font-size: 20px;
  }
  .page-gdpr__list-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 100px !important; /* Mobile: Điều chỉnh dựa trên chiều cao header thực tế */
    padding-bottom: 40px;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__main-title {
    font-size: 32px;
  }
  .page-gdpr__description {
    font-size: 16px;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-gdpr__cta-button--large {
    padding: 15px 25px;
    font-size: 18px;
  }
  .page-gdpr__section {
    padding: 60px 0;
  }
  .page-gdpr__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-gdpr__text-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-gdpr__content-block {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }
  .page-gdpr__content-block p {
    font-size: 15px;
  }
  .page-gdpr__content-block .page-gdpr__image {
    flex: none;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
    order: 1;
    box-sizing: border-box !important;
  }
  .page-gdpr__content-block--reversed .page-gdpr__image {
    order: 1;
  }
  .page-gdpr__content-block--reversed p {
    order: 2;
  }
  .page-gdpr__sub-title {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-gdpr__card {
    padding: 25px;
  }
  .page-gdpr__card-title {
    font-size: 18px;
  }
  .page-gdpr__card p {
    font-size: 15px;
  }
  .page-gdpr__list-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__list-item {
    padding: 20px;
  }
  .page-gdpr__list-title {
    font-size: 17px;
  }
  .page-gdpr__action-area {
    margin-top: 40px;
  }
  .page-gdpr__action-area p {
    font-size: 16px;
  }
  .page-gdpr__contact-info {
    padding: 30px;
  }
  .page-gdpr__contact-info p {
    font-size: 15px;
  }
  .page-gdpr__dark-section {
    padding: 40px 15px;
    margin-top: 60px;
  }
  .page-gdpr__dark-section .page-gdpr__section-title {
    font-size: 24px;
  }
  .page-gdpr__dark-section .page-gdpr__text-intro {
    font-size: 15px;
  }
  /* FAQ Mobile Styles */
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 15px;
  }
  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-gdpr__faq-answer {
    padding: 15px 20px !important;
  }
  .page-gdpr__faq-answer p {
    font-size: 14px;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__faq-list,
  .page-gdpr__contact-info,
  .page-gdpr__dark-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 28px;
  }
  .page-gdpr__section-title {
    font-size: 24px;
  }
  .page-gdpr__cta-button {
    font-size: 15px;
    padding: 10px 15px;
  }
  .page-gdpr__cta-button--large {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-gdpr__section {
    padding: 40px 0;
  }
  .page-gdpr__sub-title {
    font-size: 18px;
  }
  .page-gdpr__card-grid {
    gap: 20px;
  }
  .page-gdpr__card {
    padding: 20px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 14px;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
}