/* style/gdpr.css */

/* Custom Color Variables */
:root {
  --primary-color: #FF8C1A;
  --accent-color: #FFA53A;
  --card-bg: #17191F;
  --background: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow: #FFB04D;
  --deep-orange: #D96800;
}

/* Base Styles for .page-gdpr */
.page-gdpr {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #FFF3E6 from custom palette */
  background: var(--background); /* #0D0E12 from custom palette */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding-top: 10px; /* As per fixed header spacing rule */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column; /* Image block first, then content */
  align-items: center; /* Center content horizontally */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Example max height for the image */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-gdpr__hero-content {
  background: var(--card-bg); /* #17191F from custom palette */
  padding: 40px 20px;
  text-align: center;
  color: var(--text-main);
  border-radius: 0 0 8px 8px;
  width: 100%;
  max-width: 1200px; /* Match container width */
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-gdpr__light-bg {
  background: #ffffff; /* Default light background for content */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__dark-section {
  background: var(--card-bg); /* #17191F from custom palette */
  color: var(--text-main); /* #FFF3E6 from custom palette */
}

.page-gdpr__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color); /* #FF8C1A */
}

.page-gdpr__section-title--white {
  color: var(--text-main); /* #FFF3E6 */
}

.page-gdpr__content-area {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
}

.page-gdpr__text-block {
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for text block in dark sections */
}

.page-gdpr__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color); /* #FF8C1A */
}

.page-gdpr__sub-title--white {
  color: var(--text-main); /* #FFF3E6 */
}

.page-gdpr p {
  margin-bottom: 15px;
}

.page-gdpr ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 0;
}

.page-gdpr li {
  margin-bottom: 8px;
}

.page-gdpr__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden;
}

/* Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for mobile adaptation */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%; /* For button responsive */
  box-sizing: border-box; /* For button responsive */
  white-space: normal; /* For button responsive */
  word-wrap: break-word; /* For button responsive */
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--deep-orange) 100%); /* #FFA53A to #D96800 */
  color: var(--text-main); /* #FFF3E6 */
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* #FF8C1A */
  border: 2px solid var(--primary-color); /* #FF8C1A */
}

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

/* FAQ Section */
.page-gdpr__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color); /* #A84F0C */
  overflow: hidden;
  background: var(--card-bg); /* #17191F */
  color: var(--text-main);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Slight hover effect for dark background */
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow); /* #FFB04D */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.02); /* Slightly different background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-main);
}

/* --- Responsive Design --- */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 42px;
  }
  .page-gdpr__section-title {
    font-size: 32px;
  }
  .page-gdpr__sub-title {
    font-size: 22px;
  }
  .page-gdpr__description,
  .page-gdpr__content-area,
  .page-gdpr__faq-qtext {
    font-size: 16px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-gdpr__container {
    padding: 15px;
  }

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

  /* HERO 主图区域 */
  .page-gdpr__hero-section {
    margin-bottom: 20px;
    padding-top: 10px; /* Consistent with desktop, ~10px top margin */
  }
  .page-gdpr__hero-image-wrapper {
    border-radius: 5px 5px 0 0;
  }
  .page-gdpr__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__hero-content {
    padding: 30px 15px;
    border-radius: 0 0 5px 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Responsive font size */
    margin-bottom: 15px;
  }
  .page-gdpr__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

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