/* style/gdpr.css */

:root {
  --page-gdpr-primary-color: #017439;
  --page-gdpr-secondary-color: #FFFFFF;
  --page-gdpr-text-color: #333333;
  --page-gdpr-dark-text-color: #000000;
  --page-gdpr-light-text-color: #FFFFFF;
  --page-gdpr-bg-light: #FFFFFF;
  --page-gdpr-bg-dark: #017439;
  --page-gdpr-btn-register: #C30808;
  --page-gdpr-btn-login: #C30808;
  --page-gdpr-btn-font-color: #FFFF00;
  --page-gdpr-border-color: #e0e0e0;
  --page-gdpr-spacing-md: 20px;
  --page-gdpr-spacing-lg: 40px;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-gdpr-text-color);
  background-color: var(--page-gdpr-bg-light);
}

.page-gdpr__section {
  padding: var(--page-gdpr-spacing-lg) 0;
  margin-bottom: var(--page-gdpr-spacing-md);
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-gdpr-spacing-md);
  box-sizing: border-box;
}

.page-gdpr__container--flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--page-gdpr-spacing-md);
}

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

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

.page-gdpr__hero-section {
  padding-top: 10px; /* Minimal top padding if body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  max-width: 900px;
  padding: var(--page-gdpr-spacing-lg) var(--page-gdpr-spacing-md);
  z-index: 1;
  position: relative;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--page-gdpr-spacing-md);
  color: var(--page-gdpr-light-text-color);
}

.page-gdpr__intro-description {
  font-size: 1.1em;
  margin-bottom: var(--page-gdpr-spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--page-gdpr-spacing-md);
  flex-wrap: wrap;
}

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

.page-gdpr__btn-primary {
  background-color: var(--page-gdpr-btn-register);
  color: var(--page-gdpr-light-text-color);
  border: 2px solid var(--page-gdpr-btn-register);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--page-gdpr-btn-register), 10%);
  border-color: darken(var(--page-gdpr-btn-register), 10%);
}

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--page-gdpr-light-text-color);
  color: var(--page-gdpr-dark-text-color);
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: var(--page-gdpr-spacing-md);
  text-align: center;
}

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

.page-gdpr__subsection-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: var(--page-gdpr-spacing-lg);
  margin-bottom: var(--page-gdpr-spacing-md);
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: var(--page-gdpr-spacing-md);
  padding-left: 0;
  margin-bottom: var(--page-gdpr-spacing-md);
}

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

.page-gdpr__link {
  color: var(--page-gdpr-primary-color);
  text-decoration: underline;
}

.page-gdpr__dark-section .page-gdpr__link {
  color: var(--page-gdpr-secondary-color);
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--page-gdpr-spacing-md) auto;
  border-radius: 8px;
}

.page-gdpr__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__image--right {
  float: right;
  margin-left: var(--page-gdpr-spacing-md);
  margin-bottom: var(--page-gdpr-spacing-md);
  max-width: 50%; /* Adjust as needed for layout */
}

.page-gdpr__cookie-policy::after {
  content: '';
  display: table;
  clear: both;
}

.page-gdpr__faq-list {
  margin-top: var(--page-gdpr-spacing-lg);
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px var(--page-gdpr-spacing-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--page-gdpr-light-text-color);
  list-style: none;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
  padding: 0 var(--page-gdpr-spacing-md) 15px;
  font-size: 0.95em;
  line-height: 1.5;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
}

.page-gdpr__contact-cta {
  padding-top: var(--page-gdpr-spacing-lg);
  padding-bottom: var(--page-gdpr-spacing-lg);
  text-align: center;
}

.page-gdpr__contact-content {
  flex-grow: 1;
  text-align: left;
}

.page-gdpr__contact-buttons {
  display: flex;
  gap: var(--page-gdpr-spacing-md);
  flex-shrink: 0;
  flex-wrap: wrap;
}

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

@media (max-width: 1024px) {
  .page-gdpr__container {
    padding: 0 15px;
  }

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

  .page-gdpr__intro-description {
    font-size: 1em;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }

  .page-gdpr__subsection-title {
    font-size: clamp(1.2em, 2.8vw, 1.8em);
  }

  .page-gdpr__image--right {
    max-width: 100%;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Ensures minimal top padding */
    flex-direction: column;
    text-align: center;
  }

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

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

  .page-gdpr__hero-content {
    padding: var(--page-gdpr-spacing-md) 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-gdpr__intro-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 2. 深色导语区 (Not explicitly a separate section here, but intro-description falls under hero-content) */
  /* The intro-description styling is handled above within the hero-content */

  /* 3. 博客网格 (Not applicable for GDPR page) */

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

  .page-gdpr__section,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. 按钮与按钮容器 */
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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;
    text-align: center;
    padding: 12px 15px; /* Adjust padding for smaller screens */
  }

  .page-gdpr__contact-buttons {
    flex-direction: column;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 6. FAQ 与其他模块 */
  .page-gdpr__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 15px;
  }

  .page-gdpr__subsection-title {
    font-size: clamp(1.1em, 4vw, 1.5em);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-gdpr__list {
    margin-left: 15px;
  }

  .page-gdpr__faq-question {
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-gdpr__faq-answer {
    padding: 0 15px 12px;
    font-size: 0.9em;
  }

  .page-gdpr__contact-content {
    text-align: center;
  }

  .page-gdpr__container--flex {
    flex-direction: column;
    align-items: center;
  }

  .page-gdpr__image--right {
    float: none;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.3em, 6vw, 1.8em);
  }
  .page-gdpr__subsection-title {
    font-size: clamp(1em, 5vw, 1.3em);
  }
}