/* style/gdpr.css */

/* Định nghĩa biến màu */
:root {
  --primary-color: #007bff; /* Xanh đậm */
  --secondary-color: #28a745; /* Xanh lá */
  --accent-color: #FFD700; /* Vàng kim */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #007bff; /* Dùng màu chủ đạo làm nền cho phần tối */
  --border-color: #e0e0e0;
}

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Mặc định chữ tối trên nền sáng */
  background-color: #ffffff; /* Nền trắng mặc định của body */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px 40px; /* Padding-bottom nhỏ hơn */
  background-color: var(--primary-color); /* Nền xanh đậm */
  color: var(--text-color-light); /* Chữ trắng */
  text-align: center;
  overflow: hidden;
  /* 🚨 Cần padding-top để tránh bị header cố định che mất */
  padding-top: var(--header-offset, 120px);
}

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

.page-gdpr__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-light);
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  display: block; /* Đảm bảo hình ảnh là block để canh giữa dễ hơn */
  margin-left: auto;
  margin-right: auto;
  filter: none; /* 🚨 Không dùng filter để thay đổi màu */
}

/* Content Sections */
.page-gdpr__content-section {
  padding: 60px 20px;
}

.page-gdpr__content-section.page-gdpr__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.page-gdpr__content-section.page-gdpr__light-bg {
  background-color: var(--bg-light);
  color: var(--text-color-dark);
}

.page-gdpr__content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Kế thừa màu từ phần cha (dark/light bg) */
}

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

.page-gdpr__content-section.page-gdpr__light-bg .page-gdpr__section-title {
  color: var(--primary-color); /* Tiêu đề màu xanh đậm trên nền sáng */
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.8;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* 🚨 Không dùng filter để thay đổi màu */
  filter: none;
}

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

.page-gdpr__principle-item,
.page-gdpr__right-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.page-gdpr__content-section.page-gdpr__dark-bg .page-gdpr__principle-item {
  background-color: rgba(255, 255, 255, 0.1); /* Nền hơi trong suốt trên nền tối */
  color: var(--text-color-light);
  border-left-color: var(--accent-color); /* Viền vàng kim trên nền tối */
}

.page-gdpr__principle-item:hover,
.page-gdpr__right-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-gdpr__principle-title,
.page-gdpr__right-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-gdpr__content-section.page-gdpr__dark-bg .page-gdpr__principle-title {
  color: var(--accent-color); /* Tiêu đề vàng kim trên nền tối */
}

.page-gdpr__principle-text,
.page-gdpr__right-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Security List */
.page-gdpr__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-gdpr__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__security-heading {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.page-gdpr__security-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-light);
}

/* Contact Info */
.page-gdpr__contact-info {
  margin-top: 40px;
  text-align: center;
}

.page-gdpr__contact-item {
  font-size: 1.1em;
  margin-bottom: 15px;
}

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

.page-gdpr__content-section.page-gdpr__dark-bg .page-gdpr__contact-link {
  color: var(--accent-color); /* Liên kết vàng kim trên nền tối */
}

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

/* Call to Action Area */
.page-gdpr__cta-area {
  text-align: center;
  margin-top: 50px;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.15); /* Nền hơi trong suốt trên nền tối */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-gdpr__cta-text {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color); /* Nút CTA màu vàng kim */
  color: var(--primary-color); /* Chữ xanh đậm trên nút vàng */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* 🚨 Responsive button */
  box-sizing: border-box; /* 🚨 Responsive button */
  white-space: normal; /* 🚨 Responsive button */
  word-wrap: break-word; /* 🚨 Responsive button */
}

.page-gdpr__cta-button:hover {
  background: #e6c200; /* Làm tối màu vàng khi hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__hero-title {
    font-size: 2.5em;
  }

  .page-gdpr__section-title {
    font-size: 2em;
  }

  .page-gdpr__principle-grid,
  .page-gdpr__rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* 🚨 Mobile header offset */
  }

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

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

  .page-gdpr__content-section {
    padding: 40px 15px;
  }

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

  .page-gdpr__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-gdpr__principle-grid,
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__principle-item,
  .page-gdpr__right-item {
    padding: 20px;
  }

  .page-gdpr__principle-title,
  .page-gdpr__right-title {
    font-size: 1.2em;
  }

  .page-gdpr__security-item {
    padding: 20px 25px;
  }

  .page-gdpr__security-heading {
    font-size: 1.1em;
  }

  .page-gdpr__contact-item {
    font-size: 1em;
  }

  .page-gdpr__cta-area {
    padding: 30px 15px;
  }

  .page-gdpr__cta-text {
    font-size: 1.3em;
    margin-bottom: 20px;
  }

  .page-gdpr__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    width: 100% !important; /* 🚨 Mobile button full width */
    max-width: 100% !important; /* 🚨 Mobile button full width */
    box-sizing: border-box !important; /* 🚨 Mobile button full width */
    white-space: normal !important; /* 🚨 Mobile button text wrap */
    word-wrap: break-word !important; /* 🚨 Mobile button text wrap */
  }

  /* 🚨 Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__hero-image,
  .page-gdpr__content-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 🚨 Ensure content containers do not overflow on mobile */
  .page-gdpr__content-section,
  .page-gdpr__hero-container,
  .page-gdpr__content-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Ensure principle and rights grids don't overflow */
  .page-gdpr__principle-grid,
  .page-gdpr__rights-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.8em;
  }

  .page-gdpr__section-title {
    font-size: 1.5em;
  }

  .page-gdpr__cta-text {
    font-size: 1.1em;
  }
}