/* style/gdpr.css */

/* Custom Color Variables */
:root {
    --page-gdpr-primary-color: #11A84E;
    --page-gdpr-secondary-color: #22C768;
    --page-gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-gdpr-card-bg: #11271B;
    --page-gdpr-background: #08160F;
    --page-gdpr-text-main: #F2FFF6;
    --page-gdpr-text-secondary: #A7D9B8;
    --page-gdpr-border-color: #2E7A4E;
    --page-gdpr-glow-color: #57E38D;
    --page-gdpr-gold-color: #F2C14E;
    --page-gdpr-divider-color: #1E3A2A;
    --page-gdpr-deep-green: #0A4B2C;
}

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

.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Maintain aspect ratio for hero image */
}

.page-gdpr__hero-content {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: var(--page-gdpr-card-bg); /* Use card background for hero content */
    color: var(--page-gdpr-text-main);
}

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size with clamp */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--page-gdpr-gold-color);
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-button-gradient);
    color: var(--page-gdpr-text-main);
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--page-gdpr-glow-color);
}

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--page-gdpr-secondary-color);
    border: 2px solid var(--page-gdpr-secondary-color);
}

.page-gdpr__btn-secondary:hover {
    background: var(--page-gdpr-secondary-color);
    color: var(--page-gdpr-text-main);
    box-shadow: 0 0 10px rgba(34, 199, 104, 0.5);
}

.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__introduction-section {
    background-color: var(--page-gdpr-background);
}

.page-gdpr__principles-section,
.page-gdpr__measures-section,
.page-gdpr__faq-section {
    background-color: var(--page-gdpr-card-bg);
}

.page-gdpr__contact-section {
    background-color: var(--page-gdpr-background);
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--page-gdpr-primary-color);
}

.page-gdpr__text-block {
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__text-main {
    color: var(--page-gdpr-text-main);
}

.page-gdpr__text-secondary {
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-gdpr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-gdpr__card {
    background: var(--page-gdpr-deep-green); /* Use deep green for card background */
    color: var(--page-gdpr-text-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: left;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid var(--page-gdpr-border-color);
}

.page-gdpr__card--bordered {
    border: 1px solid var(--page-gdpr-border-color);
}

.page-gdpr__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-gdpr-gold-color);
}

.page-gdpr__card-text {
    font-size: 0.95rem;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__feature-item {
    background: var(--page-gdpr-deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid var(--page-gdpr-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-gdpr__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Ensure images are not tiny icons */
}

.page-gdpr__feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-gdpr-gold-color);
}

.page-gdpr__feature-description {
    font-size: 0.95rem;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__contact-info {
    margin-top: 30px;
    text-align: center;
}

.page-gdpr__contact-item {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__link {
    color: var(--page-gdpr-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: var(--page-gdpr-glow-color);
    text-decoration: underline;
}

/* FAQ Section Styling */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-gdpr-border-color);
  overflow: hidden;
  background: var(--page-gdpr-deep-green); /* FAQ item background */
  color: var(--page-gdpr-text-main);
}
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: var(--page-gdpr-card-bg); /* Lighter hover background */
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-gdpr-text-main); /* Ensure FAQ question text is visible */
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-gdpr-secondary-color); /* Toggle icon color */
  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: var(--page-gdpr-card-bg); /* FAQ answer background */
  border-radius: 0 0 5px 5px;
  color: var(--page-gdpr-text-secondary); /* FAQ answer text color */
}
.page-gdpr__faq-answer p {
    margin: 0;
    padding: 0;
    color: var(--page-gdpr-text-secondary);
}


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

    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px; /* Still small padding, relying on body for header offset */
    }
    .page-gdpr__hero-image-wrapper {
        max-height: 300px; /* Limit height on mobile */
    }
    .page-gdpr__hero-image {
        object-fit: contain !important; /* Prevent cropping */
        aspect-ratio: unset !important; /* Allow natural aspect ratio within height limit */
        max-height: 300px; /* Specific height limit for mobile hero */
        width: 100% !important;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    .page-gdpr__description {
        font-size: 1rem;
    }
    .page-gdpr__hero-content {
        padding: 30px 15px;
    }

    /* 按钮与按钮容器 */
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .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; /* Adjust padding for mobile */
    }
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__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-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 25px;
    }

    .page-gdpr__text-block {
        font-size: 0.95rem;
    }

    /* 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__content-area,
    .page-gdpr__text-block,
    .page-gdpr__grid,
    .page-gdpr__features-grid,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .page-gdpr__content-image {
        margin: 20px auto;
    }

    .page-gdpr__grid,
    .page-gdpr__features-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
        margin-top: 30px;
    }
    .page-gdpr__grid--2-cols {
        grid-template-columns: 1fr; /* Also stack for 2-col grids */
    }

    .page-gdpr__card {
        padding: 25px;
        text-align: left; /* Keep text aligned left */
    }

    .page-gdpr__card-title {
        font-size: 1.2rem;
    }

    .page-gdpr__feature-item {
        padding: 25px;
    }

    .page-gdpr__feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .page-gdpr__feature-title {
        font-size: 1.1rem;
    }

    .page-gdpr__contact-item {
        font-size: 1rem;
    }

    /* FAQ Section Mobile */
    details.page-gdpr__faq-item summary.page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-gdpr__faq-qtext {
        font-size: 15px;
        width: calc(100% - 40px); /* Adjust width for toggle */
    }
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    details.page-gdpr__faq-item .page-gdpr__faq-answer {
        padding: 0 15px 15px;
    }
    .page-gdpr__faq-answer p {
        font-size: 0.95rem;
    }

    /* 装饰主标题 + 长文 SEO 区 (Example, assuming .page-gdpr__article-body for long text) */
    .page-gdpr__article-body {
        padding: 0 15px; /* Add internal padding */
        text-align: left; /* Align text left for readability */
        word-wrap: break-word; /* Ensure long words break */
    }
    .page-gdpr__article-body h2,
    .page-gdpr__article-body h3 {
        text-align: center; /* Center titles */
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-gdpr__article-body img {
        margin: 20px auto;
    }
}

/* --- Color Contrast & Theming (Smart Contrast) --- */
/* Base styles already assume dark background and light text */
.page-gdpr__dark-bg {
    background-color: var(--page-gdpr-card-bg); /* Example dark background */
    color: var(--page-gdpr-text-main);
}

.page-gdpr__light-bg {
    background-color: #ffffff; /* Example light background */
    color: #333333;
}

/* Ensure link colors have good contrast */
.page-gdpr a {
    color: var(--page-gdpr-secondary-color);
}
.page-gdpr a:hover {
    color: var(--page-gdpr-glow-color);
}