/* style/privacy-policy.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --button-login-color: #EA7C07;
}

.page-privacy-policy {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light); /* Assuming shared.css body background is light */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding-top: 0; /* Handled by body padding-top in shared.css */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

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

.page-privacy-policy__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  background-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Using clamp for responsive H1 */
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  color: var(--text-color-dark);
  max-width: 800px;
  margin: 0 auto;
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__article {
  margin-bottom: 30px;
}

.page-privacy-policy__section-heading {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

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

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  color: var(--text-color-dark);
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-color-dark);
}

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

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-privacy-policy__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-privacy-policy__faq-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.page-privacy-policy__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-privacy-policy__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  outline: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1em;
  list-style: none;
}

.page-privacy-policy__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-privacy-policy__faq-item summary:hover {
  background-color: #f5f5f5;
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
}

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

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

.page-privacy-policy__faq-answer {
  padding: 0 20px 15px;
  color: var(--text-color-dark);
}

.page-privacy-policy__floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--button-login-color);
  color: var(--text-color-light);
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
  cursor: pointer;
}

.page-privacy-policy__floating-button:hover {
  transform: translateY(-3px);
  background-color: #d16e06; /* Darker shade of #EA7C07 */
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-content {
    margin-top: -50px;
    padding: 30px 20px;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }

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

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

/* Mobile specific styles */
@media (max-width: 768px) {
  /* LOGO轮播区域 - Not present on this page, but providing placeholder for completeness */
  /* .page-privacy-policy__logo-carousel-section { padding: 10px 15px 20px; } */
  /* .page-privacy-policy__logo-carousel { } */
  /* .page-privacy-policy__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; box-sizing: border-box; } */

  /* HERO 主图区域 */
  .page-privacy-policy__hero-section {
    margin-bottom: 20px;
  }

  .page-privacy-policy__hero-image-wrapper {
    max-height: 250px;
  }

  .page-privacy-policy__hero-content {
    margin-top: -30px;
    padding: 20px 15px;
    width: calc(100% - 30px); /* Adjust for padding */
    box-sizing: border-box;
  }

  .page-privacy-policy__main-title {
    font-size: 1.8em !important; /* Specific mobile font size */
    margin-bottom: 10px;
  }

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

  /* 其他内容模块 */
  .page-privacy-policy__content-area {
    padding: 20px 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__section-heading {
    font-size: 1.5em !important;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-privacy-policy__sub-heading {
    font-size: 1.2em !important;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 0.95em;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-privacy-policy__list {
    margin-left: 35px; /* Adjust for padding + list-style */
    padding-right: 15px;
    box-sizing: border-box;
  }

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

  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons and Button Containers */
  .page-privacy-policy__floating-button {
    max-width: calc(100% - 40px) !important; /* Account for 20px left/right */
    width: calc(100% - 40px) !important;
    left: 20px;
    right: 20px;
    bottom: 15px;
    text-align: center;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* FAQ section specific */
  .page-privacy-policy__faq-item summary {
    padding: 12px 15px;
    font-size: 1em;
  }

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