/* style/gdpr.css */

/* Variables and Base Styles (inherited from shared.css, but setting some defaults for page-gdpr scope) */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is light/white */
  padding-bottom: 40px;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  background-color: #017439; /* Brand color for hero background */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small */
  max-height: 600px; /* Limit hero image height */
}

.page-gdpr__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff; /* White text on dark background */
  z-index: 1;
  position: relative; /* Ensure content is above image if needed, though structure is image-above-text */
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-gdpr__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Custom color for primary button */
  color: #FFFF00; /* Custom font color for primary button */
  border: 2px solid #C30808;
}

.page-gdpr__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #fff;
}

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color for secondary button text */
  border: 2px solid #ffffff;
}

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  color: #005a2e;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 20px;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 25px;
}

.page-gdpr__section-description {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Background Sections */
.page-gdpr__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text on dark background */
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-gdpr__dark-section .page-gdpr__section-description {
  color: #f0f0f0; /* Slightly off-white for description */
}

/* GDPR Principles Section */
.page-gdpr__principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__principle-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #ffffff;
}

.page-gdpr__principle-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for principle titles */
}

.page-gdpr__principle-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-gdpr__section-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* User Rights Section */
.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-gdpr__rights-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #017439; /* Brand accent */
}

.page-gdpr__rights-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-gdpr__rights-text {
  font-size: 0.95em;
  color: #555555;
}

/* Security Measures Section */
.page-gdpr__security-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for feature titles */
}

.page-gdpr__feature-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Cookie Policy Section */
.page-gdpr__cookie-policy-section a {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__cookie-policy-section a:hover {
  color: #005a2e;
}

/* Contact Section */
.page-gdpr__contact-info {
  margin-top: 30px;
  text-align: center;
}

.page-gdpr__contact-info p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-gdpr__contact-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #ffffff;
}

.page-gdpr__contact-list a {
  color: #FFFF00; /* Custom color for contact links */
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__contact-list a:hover {
  color: #fff;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
  -webkit-touch-callout: none; /* Disable text selection on tap */
  -webkit-user-select: none; /* Disable text selection on tap */
  user-select: none; /* Disable text selection on tap */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    padding: 30px 15px;
  }

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

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

  .page-gdpr__principles-grid,
  .page-gdpr__rights-list,
  .page-gdpr__security-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-gdpr__hero-image {
    min-height: 200px;
    max-height: 400px;
  }

  .page-gdpr__hero-content {
    padding: 20px 10px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Mobile H1 font size */
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* 按钮与按钮容器 */
  .page-gdpr__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .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 15px !important;
  }

  /* 深色导语区 (if applicable, here it's part of hero) */
  .page-gdpr__what-is-gdpr-section {
    padding: 40px 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-gdpr__section-description {
    font-size: 0.95em;
  }

  /* 博客网格 (not directly present, but general grid) */
  .page-gdpr__principles-grid,
  .page-gdpr__rights-list,
  .page-gdpr__security-features {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px;
  }

  .page-gdpr__principle-card,
  .page-gdpr__rights-item,
  .page-gdpr__feature-item {
    padding: 20px;
  }

  .page-gdpr__principle-title,
  .page-gdpr__rights-title,
  .page-gdpr__feature-title {
    font-size: 1.15em;
    margin-bottom: 10px;
  }

  /* FAQ 与其他模块 */
  .page-gdpr__faq-list {
    margin-top: 20px;
  }

  .page-gdpr__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-gdpr__faq-toggle {
    font-size: 1.2em;
    margin-left: 10px;
  }

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

  .page-gdpr__contact-info p,
  .page-gdpr__contact-list li {
    font-size: 1em;
  }
}

@media (max-width: 549px) {
  /* Further adjustments for very small screens if needed, e.g., for grid layouts */
  .page-gdpr__principles-grid,
  .page-gdpr__rights-list,
  .page-gdpr__security-features {
    grid-template-columns: 1fr !important; /* Ensure single column */
  }
}

/* Contrast Fixes (as per requirements, but integrated into main styles) */
/* .page-gdpr__dark-bg should have light text, .page-gdpr__light-bg should have dark text */
.page-gdpr__dark-bg {
  color: #ffffff; /* Deep contrast on dark background */
}
.page-gdpr__dark-bg .page-gdpr__section-title {
  color: #ffffff;
}
.page-gdpr__dark-bg .page-gdpr__section-description {
  color: #f0f0f0;
}
/* Ensure links within dark sections are visible */
.page-gdpr__dark-section a {
  color: #FFFF00; /* Custom bright yellow for visibility */
}
.page-gdpr__dark-section a:hover {
  color: #fff;
}