/* style/gdpr.css */
:root {
  --gdpr-primary-color: #11A84E;
  --gdpr-secondary-color: #22C768;
  --gdpr-background-color: #08160F;
  --gdpr-card-bg: #11271B;
  --gdpr-text-main: #F2FFF6;
  --gdpr-text-secondary: #A7D9B8;
  --gdpr-border-color: #2E7A4E;
  --gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  text-align: center;
  background-color: var(--gdpr-background-color);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-gdpr__main-title {
  color: var(--gdpr-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.page-gdpr__section {
  padding: 80px 0;
  background-color: var(--gdpr-background-color);
}

.page-gdpr__introduction-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

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

.page-gdpr__section-title {
  color: var(--gdpr-text-main);
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-gdpr__text-block {
  color: var(--gdpr-text-secondary);
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-gdpr__grid-layout--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-gdpr__card--small .page-gdpr__card-image {
  width: 300px;
  height: 200px;
}

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

.page-gdpr__card-text {
  color: var(--gdpr-text-secondary);
  font-size: 0.95em;
  text-align: justify;
}

.page-gdpr__cta-button {
  display: inline-block;
  background: var(--gdpr-button-gradient);
  color: var(--gdpr-text-main);
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-gdpr__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--gdpr-primary-color);
  color: var(--gdpr-primary-color);
  box-shadow: none;
}

.page-gdpr__cta-button--secondary:hover {
  background: rgba(var(--gdpr-primary-color), 0.1);
  transform: translateY(-2px);
}

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

.page-gdpr__feature-item {
  background-color: var(--gdpr-card-bg);
  border: 1px solid var(--gdpr-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__feature-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Min size requirement, though styled smaller */
  min-height: 150px; /* Min size requirement, though styled smaller */
}

.page-gdpr__feature-title {
  color: var(--gdpr-text-main);
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-gdpr__feature-description {
  color: var(--gdpr-text-secondary);
  font-size: 0.9em;
}

.page-gdpr__contact-info {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__contact-text {
  color: var(--gdpr-text-secondary);
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-gdpr__contact-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: var(--gdpr-card-bg);
  border: 1px solid var(--gdpr-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--gdpr-text-main);
  font-weight: bold;
  font-size: 1.1em;
  background-color: var(--gdpr-card-bg);
  border-bottom: 1px solid var(--gdpr-border-color);
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom: none;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gdpr-primary-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--gdpr-text-secondary);
  font-size: 0.95em;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-gdpr__grid-layout--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px; /* Maintain small top padding */
  }
  .page-gdpr__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-gdpr__main-title {
    font-size: 2em; /* Using em for relative sizing */
  }
  .page-gdpr__description {
    font-size: 1em;
  }
  .page-gdpr__section {
    padding: 50px 0;
  }
  .page-gdpr__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-gdpr__text-block {
    font-size: 0.95em;
  }
  .page-gdpr__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-gdpr__grid-layout--two-cols {
    grid-template-columns: 1fr;
  }
  .page-gdpr__card {
    padding: 20px;
  }
  .page-gdpr__card-title {
    font-size: 1.2em;
  }
  .page-gdpr__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__card--small .page-gdpr__card-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }
  .page-gdpr__contact-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsiveness */
  .page-gdpr__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}