/* style/gdpr.css */

/* --- Base Styles --- */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--bg-primary); /* Default background from custom palette */
}

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

.page-gdpr__section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--glow-color); /* Emphasize titles with Glow color */
  line-height: 1.2;
}

.page-gdpr__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* --- Hero Section --- */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: var(--bg-primary); /* Ensure background for text contrast */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
  margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-content {
  position: relative; /* Not absolute, for "上图下文" */
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Button --- */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient); /* Custom button gradient */
  color: #F2FFF6; /* Text Main for buttons */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-gdpr__cta-button--secondary {
  background: var(--card-bg); /* Use card background for secondary button */
  color: var(--text-main);
  border: 1px solid var(--border-color); /* Border color */
}

.page-gdpr__cta-button--secondary:hover {
  background-color: var(--deep-green); /* Darker on hover */
}

/* --- Intro Section --- */
.page-gdpr__intro-section {
  background-color: var(--bg-primary); /* Match body background */
  color: var(--text-main);
}

/* --- What is GDPR Section (Dark Background) --- */
.page-gdpr__dark-section {
  background-color: var(--deep-green); /* Deep Green for dark sections */
  color: var(--text-main);
}

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

.page-gdpr__card {
  background-color: var(--card-bg); /* Custom card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main); /* Ensure light text on dark card */
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.page-gdpr__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color); /* Gold for card titles */
}

.page-gdpr__card-text {
  font-size: 1rem;
  color: var(--text-secondary); /* Secondary text color */
}

/* --- Principles Section & Security Section --- */
.page-gdpr__principles-section,
.page-gdpr__security-section {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-gdpr__list-item {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.8;
  padding-left: 30px;
  position: relative;
  color: var(--text-main);
}

.page-gdpr__list-item::before {
  content: '✓';
  color: var(--glow-color); /* Glow color for list bullet */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-gdpr__cta-text a {
  color: var(--glow-color); /* Link color */
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__cta-text a:hover {
  color: var(--gold-color);
}

/* --- Cookie Section --- */
.page-gdpr__cookie-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

/* --- Contact Section --- */
.page-gdpr__contact-section {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

/* --- Conclusion Section --- */
.page-gdpr__conclusion-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

/* --- FAQ Section --- */
.page-gdpr__faq-section {
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-align: left;
}

.page-gdpr__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-main);
}

.page-gdpr__faq-item[open] {
  background-color: var(--deep-green); /* Slightly darker when open */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-gdpr__faq-toggle {
  font-size: 1.8rem;
  margin-left: 20px;
  color: var(--glow-color);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-gdpr__faq-answer a {
  color: var(--glow-color);
  text-decoration: underline;
}

/* --- Custom Color Variables (from prompt) --- */
:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-primary: #08160F; /* Background */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

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

  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
  }

  .page-gdpr__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

  .page-gdpr__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .page-gdpr__cta-button,
  .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;
    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;
  }

  .page-gdpr__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

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

  .page-gdpr__list-item {
    font-size: 1rem;
    padding-left: 25px;
  }

  .page-gdpr__list-item::before {
    left: 0;
  }

  .page-gdpr__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* Ensure all content area images are at least 200px wide/high at desktop */
.page-gdpr__content-image {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%; /* Ensure it doesn't overflow parent */
  height: auto;
}

/* Video specific CSS (if video were present) */
.page-gdpr video,
.page-gdpr__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-gdpr__video-section,
.page-gdpr__video-container,
.page-gdpr__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__video-section {
    padding-top: 10px !important;
  }

  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}