/* style/gdpr.css */
.page-gdpr {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

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

.page-gdpr__dark-bg {
  background-color: #000000; /* Ensuring sections on dark background have light text */
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #1a1a1a; /* A slightly lighter dark for contrast */
  color: #f0f0f0;
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for better text readability */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly without overlapping text */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  padding: 30px;
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-gdpr__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-gdpr__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__subsection-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-gdpr__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark/slightly lighter dark backgrounds */
}

.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-gdpr__rights-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly visible cards on dark background */
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-gdpr__rights-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-gdpr__rights-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-gdpr__purpose-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-gdpr__purpose-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

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

.page-gdpr__grid-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  height: auto;
}

.page-gdpr a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr a:hover {
  color: #1e87b7;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-gdpr__container {
    padding: 30px 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-gdpr__hero-description {
    font-size: 1rem;
  }

  .page-gdpr__section-title {
    font-size: 1.8rem;
  }

  .page-gdpr__subsection-title {
    font-size: 1.5rem;
  }

  .page-gdpr__text-block,
  .page-gdpr__rights-description,
  .page-gdpr__purpose-item {
    font-size: 0.95rem;
  }

  .page-gdpr__hero-content {
    margin-top: -100px; /* Adjust for smaller screens */
    padding: 20px;
  }

  .page-gdpr__image-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  .page-gdpr__hero-content {
    margin-top: -60px !important; /* Further adjust for smaller screens */
    padding: 15px !important;
    width: calc(100% - 30px); /* Account for padding */
    box-sizing: border-box;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

  .page-gdpr__hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }

  /* 按钮与按钮容器 */
  .page-gdpr__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  /* 通用图片与容器 */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__container,
  .page-gdpr__intro-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-processing-section,
  .page-gdpr__security-section,
  .page-gdpr__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }

  /* 其他内容模块 */
  .page-gdpr__section-title {
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
  }

  .page-gdpr__subsection-title {
    font-size: 1.3rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
  }

  .page-gdpr__text-block,
  .page-gdpr__rights-description,
  .page-gdpr__purpose-item {
    font-size: 0.9rem !important;
  }

  .page-gdpr__rights-item {
    padding: 15px !important;
  }

  .page-gdpr__rights-title {
    font-size: 1.2rem !important;
  }

  .page-gdpr__grid-image {
    height: 200px !important;
  }
}