/* style/privacy-policy.css */

/* Variables from shared.css */
:root {
    --primary-color: #26A9E0; /* 淡蓝色 */
    --secondary-color: #FFFFFF; /* 白色 */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #ffffff;
    --link-color: #26A9E0;
    --login-button-color: #EA7C07; /* 登录 */
    --login-button-hover-color: #D66F00; /* Slightly darker for hover */
}

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

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

/* Section Backgrounds for Contrast */
.page-privacy-policy__light-bg {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-privacy-policy__dark-bg {
    background-color: var(--primary-color); /* Using brand primary as a dark background */
    color: var(--text-color-light);
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--secondary-color); /* White background for hero */
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color); /* H1 in brand color */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-privacy-policy__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-privacy-policy__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size enforcement */
    min-height: 200px;
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 40px 0;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-privacy-policy__sub-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit; /* Inherit color from parent section */
}

.page-privacy-policy p {
    margin-bottom: 1em;
    color: inherit; /* Inherit color from parent section */
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-privacy-policy__list li {
    margin-bottom: 0.5em;
    color: inherit; /* Inherit color from parent section */
}

.page-privacy-policy__image-block {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size enforcement */
    min-height: 200px;
}

/* Contact Info */
.page-privacy-policy__contact-info {
    margin-top: 30px;
    text-align: center;
    color: inherit;
}

.page-privacy-policy__contact-info p {
    margin-bottom: 10px;
}

.page-privacy-policy__contact-link {
    color: var(--link-color); /* Link color */
    text-decoration: underline;
}
.page-privacy-policy__contact-link:hover {
    color: #1a7bb0; /* A darker shade of primary-color */
}


/* FAQ Section - using details/summary */
details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color); /* White background for FAQ item */
  color: var(--text-color-dark); /* Dark text for FAQ item */
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__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-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

/* CTA Button */
.page-privacy-policy__cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly translucent background for CTA */
    border-radius: 8px;
    color: inherit;
}

.page-privacy-policy__cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-button-color); /* Using the specified login color for CTA */
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button adapts to mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    background: var(--login-button-hover-color); /* Use specific hover color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

    .page-privacy-policy__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Important for mobile override */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

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

    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question { padding: 15px; }
    .page-privacy-policy__faq-qtext { font-size: 15px; }
    .page-privacy-policy__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 15px 15px;
    }

    /* Button Mobile */
    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy 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-left: 15px;
      padding-right: 15px;
    }
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-privacy-policy__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}