/* style/gdpr.css */
:root {
  --primary-color: #FFD700; /* Vàng sang trọng */
  --secondary-color: #DC143C; /* Đỏ rực rỡ */
  --text-light: #F0F0F0; /* Màu chữ sáng cho nền tối */
  --text-dark: #333333; /* Màu chữ tối cho nền sáng */
  --bg-dark: #1a1a1a; /* Nền tối tổng thể */
  --bg-medium: #2c2c2c; /* Nền tối trung bình */
  --border-color: #444444;
  --hover-color: #FFEB3B;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  line-height: 1.6;
}

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

.page-gdpr h1, .page-gdpr h2, .page-gdpr h3, .page-gdpr h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-gdpr h1 {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-gdpr h2 {
  font-size: 2.2em;
  margin-top: 40px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  color: var(--text-light);
}

.page-gdpr h3 {
  font-size: 1.8em;
  margin-top: 30px;
  color: var(--primary-color);
}

.page-gdpr p {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-gdpr a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.page-gdpr ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-gdpr li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-gdpr .hero-gdpr {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

.page-gdpr .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-gdpr .hero-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Adjust max-width for content images */
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-gdpr .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.page-gdpr .cta-button:hover {
  background: #ff4d6a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

/* Section Styling */
.page-gdpr .section-intro, 
.page-gdpr .section-data-collection,
.page-gdpr .section-data-processing,
.page-gdpr .section-user-rights,
.page-gdpr .section-contact,
.page-gdpr .section-faq {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-gdpr .section-intro {
  background-color: var(--bg-medium);
}

.page-gdpr .section-data-collection {
  background-color: var(--bg-dark);
}

.page-gdpr .section-data-processing {
  background-color: var(--bg-medium);
}

.page-gdpr .section-user-rights {
  background-color: var(--bg-dark);
}

.page-gdpr .section-contact {
  background-color: var(--bg-medium);
}

.page-gdpr .section-faq {
  background-color: var(--bg-dark);
  border-bottom: none;
}

.page-gdpr .image-container {
  text-align: center;
  margin: 30px 0;
}

.page-gdpr .content-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* FAQ Styling */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-medium);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--bg-medium);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--hover-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr h1 {
    font-size: 2.4em;
  }
  .page-gdpr h2 {
    font-size: 2em;
  }
  .page-gdpr h3 {
    font-size: 1.6em;
  }
  .page-gdpr .hero-image {
    max-width: 700px;
  }
  .page-gdpr .content-image {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-gdpr h1 {
    font-size: 2em;
  }
  .page-gdpr h2 {
    font-size: 1.8em;
  }
  .page-gdpr h3 {
    font-size: 1.4em;
  }
  .page-gdpr .hero-gdpr {
    padding: 40px 15px;
  }
  .page-gdpr .hero-image {
    max-width: 100%;
    border-radius: 4px;
  }
  .page-gdpr .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-gdpr .container {
    padding: 15px;
  }
  .page-gdpr .content-image {
    max-width: 100%;
    border-radius: 4px;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr h1 {
    font-size: 1.8em;
  }
  .page-gdpr h2 {
    font-size: 1.6em;
  }
  .page-gdpr h3 {
    font-size: 1.3em;
  }
  .page-gdpr .hero-gdpr {
    padding: 30px 10px;
  }
  .page-gdpr .cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
}