/* style/gdpr.css */

/* Custom Colors */
:root {
  --gdpr-primary-color: #113B7A;
  --gdpr-secondary-color: #1D5FD1;
  --gdpr-card-bg: #10233F;
  --gdpr-text-main: #F3F8FF;
  --gdpr-text-secondary: #AFC4E8;
  --gdpr-border-color: #244D84;
  --gdpr-glow-color: #4FA8FF;
  --gdpr-gold-color: #F2C14E;
  --gdpr-divider-color: #1B3357;
  --gdpr-deep-navy: #08162B;
  --gdpr-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--gdpr-text-main); /* Default text color for dark body background */
  background-color: var(--gdpr-deep-navy); /* Assuming shared.css sets body background to --deep-navy */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  background-color: var(--gdpr-deep-navy);
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop default */
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual appeal, but not over image content */
  background: var(--gdpr-card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gdpr-border-color);
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gdpr-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1rem;
  color: var(--gdpr-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* General Section Styling */
.page-gdpr__section {
  padding: 60px 0;
  background-color: var(--gdpr-deep-navy);
  border-bottom: 1px solid var(--gdpr-divider-color);
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

.page-gdpr__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gdpr-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-gdpr__sub-title {
  font-size: 1.5rem;
  color: var(--gdpr-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gdpr__content-block p,
.page-gdpr__content-block li {
  color: var(--gdpr-text-secondary);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-gdpr__content-block strong {
  color: var(--gdpr-text-main);
}

.page-gdpr__content-block a {
  color: var(--gdpr-glow-color);
  text-decoration: underline;
}

.page-gdpr__content-block a:hover {
  color: var(--gdpr-gold-color);
}

.page-gdpr__image--inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gdpr-border-color);
}

/* Data List */
.page-gdpr__data-list,
.page-gdpr__purpose-list,
.page-gdpr__sharing-list,
.page-gdpr__cookie-types,
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-gdpr__data-item,
.page-gdpr__purpose-list li,
.page-gdpr__sharing-list li,
.page-gdpr__cookie-types li,
.page-gdpr__contact-list li {
  background: var(--gdpr-card-bg);
  border: 1px solid var(--gdpr-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-gdpr__data-item .page-gdpr__sub-title {
  margin-top: 0;
  color: var(--gdpr-gold-color);
}

.page-gdpr__purpose-list li strong,
.page-gdpr__sharing-list li strong,
.page-gdpr__cookie-types li strong,
.page-gdpr__contact-list li strong {
  color: var(--gdpr-text-main);
}

/* User Rights Grid */
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-gdpr__right-item {
  background: var(--gdpr-card-bg);
  border: 1px solid var(--gdpr-border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-gdpr__right-item:hover {
  transform: translateY(-5px);
  border-color: var(--gdpr-glow-color);
}

.page-gdpr__right-item .page-gdpr__sub-title {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--gdpr-gold-color);
}

/* Call to Action Buttons */
.page-gdpr__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--gdpr-button-gradient);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--gdpr-border-color);
  overflow: hidden;
  background: var(--gdpr-card-bg);
}

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: var(--gdpr-primary-color);
}

.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gdpr-text-main);
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gdpr-gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: var(--gdpr-primary-color);
  border-radius: 0 0 5px 5px;
  color: var(--gdpr-text-secondary);
}

/* Responsive Styles */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-gdpr__container {
    padding: 15px;
  }

  .page-gdpr__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

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

  .page-gdpr__description {
    font-size: 1rem;
  }

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

  .page-gdpr__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-gdpr__sub-title {
    font-size: 1.4rem;
  }

  .page-gdpr__content-block p,
  .page-gdpr__content-block li {
    font-size: 1rem;
  }

  .page-gdpr__rights-grid {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-gdpr__right-item {
    padding: 20px;
  }

  .page-gdpr__right-item .page-gdpr__sub-title {
    font-size: 1.2rem;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px 18px;
  }

  .page-gdpr__faq-qtext {
    font-size: 1rem;
  }

  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 18px 18px;
  }
}

/* Mobile devices */
@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;
    overflow: hidden !important;
  }

  /* HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-gdpr__hero-image {
    height: 300px;
  }

  .page-gdpr__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 25px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-gdpr__description {
    font-size: 0.95rem;
  }

  /* General Section Styling for Mobile */
  .page-gdpr__section {
    padding: 30px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-gdpr__sub-title {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__content-block {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__content-block p,
  .page-gdpr__content-block li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .page-gdpr__image--inline {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Data List for Mobile */
  .page-gdpr__data-item,
  .page-gdpr__purpose-list li,
  .page-gdpr__sharing-list li,
  .page-gdpr__cookie-types li,
  .page-gdpr__contact-list li {
    padding: 15px;
    margin-bottom: 10px;
  }

  .page-gdpr__data-item .page-gdpr__sub-title {
    font-size: 1.2rem;
  }

  /* User Rights Grid for Mobile */
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .page-gdpr__right-item {
    padding: 20px;
  }

  .page-gdpr__right-item .page-gdpr__sub-title {
    font-size: 1.1rem;
  }

  /* Buttons and Button Containers for Mobile */
  .page-gdpr__cta-wrapper {
    margin-top: 30px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr__btn-primary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section for Mobile */
  details.page-gdpr__faq-item {
    margin-bottom: 10px;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px;
  }

  .page-gdpr__faq-qtext {
    font-size: 0.95rem;
  }

  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

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

/* Ensure all images are responsive */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers with images are responsive */
.page-gdpr__section,
.page-gdpr__card,
.page-gdpr__container,
.page-gdpr__content-block {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Specific mobile overrides for image containers */
@media (max-width: 768px) {
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* No products-grid as this is not a product page */
  /* No article-body for this type of page, but content-block acts similarly */
}

/* Contrast Fixes - Apply as needed */
.page-gdpr__dark-section {
  background: var(--gdpr-primary-color);
  color: var(--gdpr-text-main);
}
.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--gdpr-gold-color);
}
.page-gdpr__dark-section p,
.page-gdpr__dark-section li,
.page-gdpr__dark-section a {
  color: var(--gdpr-text-secondary);
}
.page-gdpr__dark-section .page-gdpr__sub-title {
  color: var(--gdpr-gold-color);
}