/* General Styles for page-gdpr */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Default body background */
}

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

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

.page-gdpr__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #017439; /* Brand primary color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__section-title--light {
  color: #FFFFFF;
}

.page-gdpr__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-gdpr__section-description--light {
  color: #f0f0f0;
}

/* Links within content */
.page-gdpr a {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr a:hover {
  color: #005f2c;
}

/* Hero Section */
.page-gdpr__hero-section {
  padding: 30px 0 60px; /* Adjusted top padding to avoid header overlap */
  background: #f9f9f9;
  text-align: center;
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__intro-text {
  font-size: 20px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #444444;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  box-shadow: 0 4px 10px rgba(195, 8, 8, 0.3);
}

.page-gdpr__btn-primary:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(195, 8, 8, 0.4);
}

.page-gdpr__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary:hover {
  background: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Grid Container for Principles Section */
.page-gdpr__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.page-gdpr__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-gdpr__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-gdpr__card-text--light {
  color: #f0f0f0;
}

.page-gdpr__card--dark {
  background: #017439;
  color: #FFFFFF;
  border: 1px solid #005f2c;
}

.page-gdpr__card--dark .page-gdpr__card-title {
  color: #FFFF00; /* Yellow for title on dark background */
}

/* Full Width Image */
.page-gdpr__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Rights Section */
.page-gdpr__rights-section {
  background: #017439; /* Dark background for this section */
  color: #FFFFFF;
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-gdpr__list-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-gdpr__list-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-gdpr__list-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFF00; /* Yellow for titles on dark background */
  margin-bottom: 10px;
}

.page-gdpr__list-item p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Data Collection Section */
.page-gdpr__data-collection-section {
  background: #f9f9f9;
}

.page-gdpr__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.page-gdpr__text-block {
  flex: 1;
}

.page-gdpr__sub-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-gdpr__sub-title:first-of-type {
  margin-top: 0;
}

.page-gdpr__bullet-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-gdpr__bullet-list li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #444444;
}

.page-gdpr__bullet-list li strong {
  color: #017439;
}

.page-gdpr__image-side {
  flex-shrink: 0;
  width: 500px; /* Fixed width for desktop */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Security Measures Section */
.page-gdpr__security-measures-section {
  background: #017439;
  color: #FFFFFF;
}

/* Cookies Section */
.page-gdpr__cookies-section {
  background: #ffffff;
}

/* Contact Section */
.page-gdpr__contact-section {
  background: #017439;
  color: #FFFFFF;
}

.page-gdpr__contact-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

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

.page-gdpr__image-contact {
  flex-shrink: 0;
  width: 500px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding-bottom: 80px;
  background: #f9f9f9;
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}
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: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439;
}
.page-gdpr__faq-toggle {
  font-size: 28px; /* Increased size for better visibility */
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Increased width */
  height: 32px; /* Increased height */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #017439;
  border-radius: 50%;
  line-height: 1;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 25px 20px;
  background: #fefefe;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}
.page-gdpr__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  color: #555555;
}


/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 42px;
  }

  .page-gdpr__section-title {
    font-size: 32px;
  }

  .page-gdpr__section-description {
    font-size: 17px;
  }

  .page-gdpr__content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .page-gdpr__image-side,
  .page-gdpr__image-contact {
    width: 100%;
    max-width: 600px; /* Constrain max width for images */
  }

  .page-gdpr__contact-flex {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 768px) {
  /* 1. Top Section / Hero Section */
  .page-gdpr__hero-section {
    padding: 10px 0 40px; /* 約 10px 頂距 */
  }

  .page-gdpr__container {
    padding: 0 10px; /* Reduced horizontal padding */
  }

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

  .page-gdpr__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-gdpr__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-gdpr__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* 2. Grid containers to single column */
  .page-gdpr__grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-gdpr__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-gdpr__card,
  .page-gdpr__list-item {
    padding: 20px;
  }

  .page-gdpr__card-title,
  .page-gdpr__list-title {
    font-size: 18px;
  }

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

  /* 3. Universal Images and Containers */
  .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-wrapper,
  .page-gdpr__contact-flex {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px; /* Adjusted padding for mobile */
    padding-right: 10px; /* Adjusted padding for mobile */
  }

  /* 4. Buttons */
  .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 20px;
    font-size: 16px;
  }

  /* Button containers for multiple buttons */
  .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: 10px;
    padding-right: 10px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* FAQ specific mobile styles */
  details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px; font-size: 16px; }
  .page-gdpr__faq-qtext { font-size: 16px; }
  .page-gdpr__faq-toggle { font-size: 24px; width: 28px; height: 28px; margin-left: 10px;}
  details.page-gdpr__faq-item .page-gdpr__faq-answer { padding: 0 15px 15px; }
}