/* style/gdpr.css */

:root {
  --n188n-primary: #F2C14E;
  --n188n-secondary: #FFD36B;
  --n188n-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --n188n-card-bg: #111111;
  --n188n-background: #0A0A0A;
  --n188n-text-main: #FFF6D6;
  --n188n-border: #3A2A12;
  --n188n-glow: #FFD36B;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--n188n-text-main); /* Text color for dark background */
  background-color: var(--n188n-background); /* Overall page background */
}

.page-gdpr a {
  color: var(--n188n-secondary);
  text-decoration: none;
}

.page-gdpr a:hover {
  text-decoration: underline;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 40px;
  background-color: var(--n188n-background);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  color: var(--n188n-primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-gdpr__intro-text {
  font-size: 1.1em;
  color: var(--n188n-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-gdpr__cta-button--primary {
  background: var(--n188n-button-gradient);
  color: #ffffff;
  border: none;
}

.page-gdpr__cta-button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-gdpr__cta-button--secondary {
  background: var(--n188n-card-bg);
  color: var(--n188n-primary);
  border: 2px solid var(--n188n-primary);
  margin-top: 20px;
}

.page-gdpr__cta-button--secondary:hover {
  background: var(--n188n-primary);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* General Section Styling */
.page-gdpr__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--n188n-border);
}

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

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--n188n-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr__content-block {
  background-color: var(--n188n-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--n188n-text-main);
}

.page-gdpr__content-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-gdpr__content-block h3 {
  color: var(--n188n-secondary);
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Principle List */
.page-gdpr__principle-list,
.page-gdpr__rights-list,
.page-gdpr__security-list,
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-gdpr__principle-item,
.page-gdpr__rights-item,
.page-gdpr__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--n188n-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-gdpr__principle-item h3,
.page-gdpr__rights-item h3,
.page-gdpr__security-item h3 {
  color: var(--n188n-primary);
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Contact Section */
.page-gdpr__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-gdpr__call-to-action {
  margin-top: 30px;
  font-size: 1.1em;
  text-align: center;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

.page-gdpr__faq-item {
  background-color: var(--n188n-card-bg);
  border: 1px solid var(--n188n-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--n188n-primary);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  border-bottom: 1px solid var(--n188n-border);
  background-color: rgba(255, 255, 255, 0.07);
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--n188n-secondary);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'X' or 'minus' */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--n188n-text-main);
}

.page-gdpr__faq-answer p {
  margin-top: 15px;
}

/* Responsive Design */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-gdpr__hero-section {
    padding-bottom: 30px;
  }

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

  .page-gdpr__intro-text {
    font-size: 1em;
  }

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

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

  .page-gdpr__content-block {
    padding: 25px;
  }

  .page-gdpr__principle-item,
  .page-gdpr__rights-item,
  .page-gdpr__security-item {
    padding: 18px;
  }
}

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

  /* HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding, relies on body padding-top from shared.css */
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-bottom: 10px;
  }

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

  /* 按钮与按钮容器 */
  .page-gdpr__cta-button,
  .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: 12px 15px !important;
    margin-top: 10px !important; /* Adjust spacing for stacked buttons */
  }

  .page-gdpr__cta-button--secondary {
    margin-top: 10px !important;
  }

  /* 按钮容器移动端适配 */
  .page-gdpr__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

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

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-gdpr__content-block {
    padding: 20px;
  }

  .page-gdpr__content-block p,
  .page-gdpr__faq-answer p {
    font-size: 0.95em;
  }

  .page-gdpr__content-block h3 {
    font-size: 1.2em;
  }

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

  .page-gdpr__principle-item,
  .page-gdpr__rights-item,
  .page-gdpr__security-item {
    padding: 15px;
  }

  .page-gdpr__principle-item h3,
  .page-gdpr__rights-item h3,
  .page-gdpr__security-item h3 {
    font-size: 1.1em;
  }

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

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

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

  .page-gdpr__call-to-action {
    font-size: 1em;
  }
}