/* style/privacy-policy.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-font-color: #FFFF00;
  --border-color: #e0e0e0;
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default background for content area */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--primary-color);
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-privacy-policy__hero-content {
  max-width: 600px;
  padding: 40px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.page-privacy-policy__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--btn-font-color);
  line-height: 1.2;
}

.page-privacy-policy__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-privacy-policy__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-privacy-policy__btn-primary {
  background-color: var(--btn-register-bg);
  color: var(--btn-font-color);
  border: 2px solid var(--btn-register-bg);
}

.page-privacy-policy__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-privacy-policy__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-privacy-policy__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-privacy-policy__table-of-contents {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.page-privacy-policy__table-of-contents li a {
  display: block;
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-privacy-policy__table-of-contents li a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-privacy-policy__article {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

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

.page-privacy-policy__article-heading {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-privacy-policy__sub-heading {
  font-size: 1.5em;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
}

.page-privacy-policy__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

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

.page-privacy-policy__contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-privacy-policy__contact-info a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
}

.page-privacy-policy__faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: #e9e9e9;
}

.page-privacy-policy__faq-title {
  margin: 0;
  font-size: 1.1em;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

/* Color Contrast Fixes (as per instructions) */
.page-privacy-policy__dark-bg {
  color: var(--text-light);
  background-color: var(--primary-color);
}

.page-privacy-policy__light-bg {
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-privacy-policy__card {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-title {
    font-size: 2.8em;
  }

  .page-privacy-policy__hero-content {
    padding: 30px;
  }

  .page-privacy-policy__section-title {
    font-size: 2.2em;
  }

  .page-privacy-policy__article-heading {
    font-size: 1.8em;
  }

  .page-privacy-policy__sub-heading {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  /* General page content */
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-privacy-policy__hero-section {
    flex-direction: column;
    min-height: auto;
    padding-top: var(--header-offset, 120px); /* Apply header offset here if body doesn't have it */
  }

  .page-privacy-policy__hero-content {
    padding: 20px;
    order: 2;
  }

  .page-privacy-policy__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-privacy-policy__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__hero-image-container {
    position: relative;
    height: 250px;
    order: 1;
    margin-bottom: 20px;
  }

  .page-privacy-policy__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  /* Content Area */
  .page-privacy-policy__content-area {
    padding: 30px 15px;
  }

  .page-privacy-policy__container {
    padding: 0;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-privacy-policy__table-of-contents {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 30px;
  }

  .page-privacy-policy__article {
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .page-privacy-policy__article-heading {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .page-privacy-policy__sub-heading {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__list {
    margin-left: 15px;
  }

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

  /* 图片容器 */
  .page-privacy-policy__hero-image-container,
  .page-privacy-policy__content-area,
  .page-privacy-policy__container,
  .page-privacy-policy__article {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* FAQ Section */
  .page-privacy-policy__faq-question {
    padding: 12px 15px;
  }

  .page-privacy-policy__faq-title {
    font-size: 1em;
  }

  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }

  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 12px 15px;
  }

  /* LOGO 轮播区域 - Placeholder for future implementation if needed, currently not present */
  /* .page-privacy-policy__logo-carousel-section { ... } */
  /* .page-privacy-policy__logo-carousel { ... } */
  /* .page-privacy-policy__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; box-sizing: border-box; } */

  /* 游戏展示区域 - Placeholder for future implementation if needed, currently not present */
  /* .page-privacy-policy__games-section { ... } */
  /* .page-privacy-policy__games-grid { ... } */
  /* .page-privacy-policy__game-card { ... } */

  /* 其他内容模块 */
  .page-privacy-policy__text-block {
    padding: 15px;
  }
}