/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background: #FFFFFF; /* Ensure consistency with body background */
    padding-bottom: 50px; /* General padding to avoid content touching footer */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the section */
}

.page-gdpr__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
    object-position: center;
    max-width: 100%; /* Ensure responsiveness */
}

.page-gdpr__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-gdpr__main-title {
    font-size: 42px;
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 100%; /* Ensure no overflow */
    box-sizing: border-box;
}

.page-gdpr__subtitle {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
}

.page-gdpr__btn-primary,
.page-gdpr__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, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-gdpr__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* General Section Styles */
.page-gdpr__section {
    padding: 50px 0;
}

.page-gdpr__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

.page-gdpr__container--flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for image/text blocks */
}

.page-gdpr__container--centered {
    text-align: center;
}

.page-gdpr__container--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-gdpr__sub-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__text-block {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-gdpr__text-block--light {
    color: #f0f0f0;
}

.page-gdpr__content-block {
    flex: 1;
    min-width: 300px;
}

.page-gdpr__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-gdpr__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto; /* Center image in its block */
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
}

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

.page-gdpr__list--light .page-gdpr__list-item {
    color: #f0f0f0;
}

.page-gdpr__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Contact Info */
.page-gdpr__contact-info {
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.page-gdpr__contact-item {
    font-size: 16px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-gdpr__contact-item strong {
    color: #FFFFFF;
}

.page-gdpr__link {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-gdpr__link:hover {
    color: #f0f8ff;
}

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

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-gdpr__faq-item summary.page-gdpr__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-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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure dark text on light background */
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 38px;
    }
    .page-gdpr__section-title {
        font-size: 28px;
    }
    .page-gdpr__sub-section-title {
        font-size: 22px;
    }
    .page-gdpr__hero-image img {
        object-fit: contain !important; /* HERO mobile: object-fit:contain !important */
        aspect-ratio: unset !important;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-gdpr__hero-image {
        max-height: 300px;
    }
    .page-gdpr__hero-image img {
        object-fit: contain !important; /* HERO mobile: object-fit:contain !important */
        aspect-ratio: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Use clamp for H1 on mobile */
        margin-bottom: 10px;
    }
    .page-gdpr__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        padding: 10px 15px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections and Text */
    .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__container--flex {
        flex-direction: column; /* Stack image and content blocks */
        gap: 20px;
    }
    .page-gdpr__container--reverse {
        flex-direction: column; /* Stack image and content blocks */
    }
    .page-gdpr__section-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }
    .page-gdpr__sub-section-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__contact-item {
        font-size: 15px;
        text-align: left; /* Align text left on mobile for readability */
    }

    /* Universal Image Adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* 图片容器适配 */
    .page-gdpr__image-block,
    .page-gdpr__content-block,
    .page-gdpr__hero-section,
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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