/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Explicitly set for clarity, though body handles it */
  padding-bottom: 40px;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5; /* Light background for hero section */
  margin-bottom: 40px;
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.page-gdpr__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff; /* White background for content block */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-50px); /* Overlap with image slightly for visual flow */
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Primary color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

.page-gdpr__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary color */
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8ccb;
  border-color: #1a8ccb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Content Section */
.page-gdpr__content-section {
  padding: 20px 0 60px;
  margin-top: -50px; /* Adjust for hero overlap */
}

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

.page-gdpr__section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  line-height: 1.3;
}

.page-gdpr__sub-title {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-gdpr__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #555555;
}

.page-gdpr__highlight {
  font-weight: bold;
  color: #26A9E0;
}

.page-gdpr__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-gdpr__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #555555;
}

.page-gdpr__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #26A9E0;
  font-weight: bold;
  font-size: 20px;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 40px 0 60px;
  background-color: #f9f9f9;
}

.page-gdpr__faq-list {
  margin-top: 30px;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 25px 20px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}
.page-gdpr__faq-answer p {
  margin-bottom: 10px;
}
.page-gdpr__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Media Queries for Responsiveness */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
  .page-gdpr__container {
    padding: 0 25px;
  }

  .page-gdpr__hero-content {
    padding: 30px 20px;
    transform: translateY(-40px);
  }

  .page-gdpr__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }

  .page-gdpr__description {
    font-size: 17px;
  }

  .page-gdpr__section-title {
    font-size: clamp(22px, 3.5vw, 34px);
  }

  .page-gdpr__sub-title {
    font-size: clamp(18px, 2.8vw, 28px);
  }
}


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

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

  .page-gdpr__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio or be controlled by height auto */
    height: auto !important;
  }

  .page-gdpr__hero-content {
    padding: 25px 15px;
    transform: translateY(-30px);
    margin: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .page-gdpr__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-gdpr__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

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

  /* 通用图片与容器 */
  .page-gdpr__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__image-wrapper {
    margin: 30px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-gdpr__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
  }

  .page-gdpr__sub-title {
    font-size: clamp(18px, 5vw, 24px);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr__text-block {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .page-gdpr__list-item {
    font-size: 16px;
    padding-left: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__list-item::before {
    font-size: 18px;
  }

  /* FAQ Section */
  .page-gdpr__faq-section {
    padding: 30px 0;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px 20px;
  }
  .page-gdpr__faq-qtext {
    font-size: 16px;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
}