/* style/gdpr.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page content */
  background-color: var(--background); /* Overall page background */
}

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

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background: var(--deep-green);
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 1200px; /* Adjust based on desired hero image display width */
  border-radius: 10px;
}

.page-gdpr__hero-content {
  text-align: center;
  color: var(--text-main);
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-gdpr__dark-section {
  background-color: var(--background);
  color: var(--text-main);
  padding: 60px 0;
}

.page-gdpr__text-block {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #333333;
}

.page-gdpr__dark-section .page-gdpr__text-block p {
  color: var(--text-secondary);
}

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

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

.page-gdpr__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-gdpr__principle-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size for content images */
  min-height: 200px;
  max-width: 100%;
  height: auto;
}

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

.page-gdpr__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-gdpr__rights-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-gdpr__rights-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size for content images */
  min-height: 200px;
  max-width: 100%;
  height: auto;
}

.page-gdpr__rights-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

.page-gdpr__rights-description {
  font-size: 0.9rem;
  color: #555555;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-gdpr__contact-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-gdpr__contact-list li a:hover {
  text-decoration: underline;
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-gdpr__contact-button {
  min-width: 200px;
}

/* Ensure light text on dark sections */
.page-gdpr__dark-section h2, .page-gdpr__dark-section h3, .page-gdpr__dark-section p {
  color: var(--text-main);
}

.page-gdpr__dark-section .page-gdpr__description {
  color: var(--text-secondary);
}

.page-gdpr__dark-section .page-gdpr__card-text {
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-image {
    max-width: 1000px;
    height: 563px;
  }
}

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

  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section,
  .page-gdpr__introduction-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-handling-section,
  .page-gdpr__contact-section,
  .page-gdpr__updates-section {
    padding: 40px 0;
  }

  .page-gdpr__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-gdpr__hero-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-gdpr__main-title {
    font-size: 2rem;
  }

  .page-gdpr__description {
    font-size: 1rem;
  }

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

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

  .page-gdpr__card,
  .page-gdpr__rights-item {
    padding: 20px;
  }

  .page-gdpr__principle-icon,
  .page-gdpr__rights-icon {
    width: 80px;
    height: 80px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__card-title {
    font-size: 1.2rem;
  }

  .page-gdpr__content-image {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure all content image containers are responsive */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__principles-grid,
  .page-gdpr__info-grid,
  .page-gdpr__rights-list,
  .page-gdpr__rights-item,
  .page-gdpr__data-handling-section,
  .page-gdpr__contact-section,
  .page-gdpr__updates-section,
  .page-gdpr__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-gdpr__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-gdpr__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

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

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

  .page-gdpr__card-title {
    font-size: 1.1rem;
  }

  .page-gdpr__rights-title {
    font-size: 1rem;
  }
}