:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --link-color: #017439;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-font-color: #FFFF00;
  --border-color: #e0e0e0;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default for light background */
  background-color: var(--secondary-color); /* Body background is default white */
  padding-top: 10px; /* Small top padding for main content below header */
}

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

.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-gdpr__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for desktop */
  overflow: hidden;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-gdpr__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
  background-color: rgba(1, 116, 57, 0.8); /* Semi-transparent primary color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-gdpr__lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--secondary-color);
}

.page-gdpr__content-section {
  padding: 60px 0;
}

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

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

.page-gdpr__dark-bg .page-gdpr__section-title,
.page-gdpr__dark-bg .page-gdpr__highlight {
  color: var(--secondary-color);
}

.page-gdpr__section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color);
}

.page-gdpr__highlight {
  color: var(--primary-color);
}

.page-gdpr__brand-name {
  font-weight: bold;
  color: var(--primary-color);
}

.page-gdpr__dark-bg .page-gdpr__brand-name {
  color: var(--secondary-color);
}

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

.page-gdpr__right-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-gdpr__right-card:hover {
  transform: translateY(-5px);
}

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

.page-gdpr__article-body {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

.page-gdpr__article-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-gdpr__dark-bg .page-gdpr__article-subtitle {
  color: var(--secondary-color);
}

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

.page-gdpr__list li {
  margin-bottom: 10px;
}

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

.page-gdpr__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-gdpr__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-gdpr__contact-info {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1rem;
}

.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-gdpr__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

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

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure wrap for multiple buttons on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: var(--button-register); /* Custom color for register/login */
  color: var(--button-font-color); /* Custom font color for register/login */
  border: 2px solid var(--button-register);
}

.page-gdpr__btn-primary:hover {
  background-color: #a30707; /* Slightly darker red */
  border-color: #a30707;
}

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-gdpr__image-container {
  margin: 40px auto;
  max-width: 800px; /* Constrain image width */
  text-align: center;
}

.page-gdpr__image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size for content images */
  min-height: 200px;
}

/* FAQ styles */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  color: var(--text-dark);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: var(--background-light);
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
}
.page-gdpr__faq-answer p {
  margin: 0;
  padding: 0;
  color: var(--text-dark);
}

/* General image and container responsive rules */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-gdpr__section,
.page-gdpr__card,
.page-gdpr__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/*
  Mobile Styles @media (max-width: 768px)
  Must include all required blocks.
*/
@media (max-width: 768px) {
  .page-gdpr {
    padding-top: 10px; /* Ensure small top padding */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__container {
    padding: 15px;
  }

  /* 1. HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-bottom: 20px;
  }
  .page-gdpr__hero-image {
    max-height: 300px;
  }
  .page-gdpr__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__hero-content {
    padding: 20px 15px;
    margin-top: -60px; /* Adjust overlap */
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for mobile */
    margin-bottom: 15px;
  }
  .page-gdpr__lead-text {
    font-size: 1rem;
  }

  /* 2. 产品展示图区域 - N/A for GDPR page, but general grid rule for safety */
  /* If there were a product grid, it would be like: */
  /* .page-gdpr__products-grid { */
  /*   grid-template-columns: repeat(2, 1fr); */
  /*   gap: 15px; */
  /*   overflow-x: hidden; */
  /* } */

  /* 3. 装饰主标题 + 长文 SEO 区 */
  .page-gdpr__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
    text-align: center; /* Ensure centering */
  }
  .page-gdpr__article-body {
    font-size: 1rem;
    max-width: 100% !important; /* Prevent overflow */
    margin: 0 auto 30px auto;
    padding: 0 10px; /* Small horizontal padding */
    box-sizing: border-box !important;
  }
  .page-gdpr__article-subtitle {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-gdpr__rights-grid,
  .page-gdpr__security-features {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
  }
  .page-gdpr__right-card,
  .page-gdpr__feature-item {
    padding: 20px;
  }
  .page-gdpr__card-title,
  .page-gdpr__feature-title {
    font-size: 1.2rem;
  }

  /* 4. 通用图片与容器 */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__image-container {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box !important;
  }
  .page-gdpr__content-section,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }

  /* 5. 按钮与按钮容器 */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* FAQ mobile styles */
  details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px; }
  .page-gdpr__faq-qtext { font-size: 15px; }
  details.page-gdpr__faq-item .page-gdpr__faq-answer { padding: 0 15px 15px; }
}

/* Ensure content area images meet min size requirements */
.page-gdpr__image-container img {
  min-width: 200px;
  min-height: 200px;
}
/* For any other general images that might appear in content areas */
.page-gdpr p img, .page-gdpr li img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
}