/* General styles for .page-gdpr scope */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background: #F5F7FA; /* Background */
}

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

.page-gdpr__section {
    padding: 40px 0;
}

.page-gdpr__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
}

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

.page-gdpr__text-block {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-gdpr__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for desktop */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 15px 60px;
    color: #ffffff;
    max-width: 900px;
}

.page-gdpr__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--light {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-gdpr__cta-button--light:hover {
    background: #f0f0f0;
    color: #E53935;
}

/* Grid for cards */
.page-gdpr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-gdpr__card {
    background: #FFFFFF; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__card-title {
    font-size: 20px;
    font-weight: 600;
    color: #E53935; /* Primary color for card titles */
    margin-bottom: 15px;
}

.page-gdpr__card p {
    font-size: 15px;
    color: #333333;
}

.page-gdpr__dark-section {
    background: #E53935; /* Primary color */
    color: #ffffff;
}

.page-gdpr__grid--light .page-gdpr__card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.page-gdpr__grid--light .page-gdpr__card-title {
    color: #ffffff;
}

.page-gdpr__grid--light .page-gdpr__card p {
    color: #f0f0f0;
}

.page-gdpr__card--transparent {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.page-gdpr__card-title--light {
    color: #ffffff;
}

.page-gdpr__card-text--light {
    color: #f0f0f0;
}

/* Image wrappers for content images */
.page-gdpr__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
}

.page-gdpr__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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;
  color: #333333; /* Ensure contrast */
}
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: #E53935; /* Use brand color for question text */
}
.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 contrast */
}
.page-gdpr__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}
.page-gdpr__faq-answer a {
    color: #E53935; /* Link color */
    text-decoration: underline;
}
.page-gdpr__faq-answer a:hover {
    color: #FF5A4F; /* Hover color */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(26px, 5vw, 40px);
    }
    .page-gdpr__description {
        font-size: clamp(15px, 2.5vw, 18px);
    }
    .page-gdpr__section-title {
        font-size: 28px;
    }
    .page-gdpr__card-title {
        font-size: 18px;
    }
    .page-gdpr__card p {
        font-size: 14px;
    }
    details.page-gdpr__faq-item summary.page-gdpr__faq-question {
        padding: 15px 18px;
    }
    .page-gdpr__faq-qtext {
        font-size: 15px;
    }
    details.page-gdpr__faq-item .page-gdpr__faq-answer {
        padding: 0 18px 18px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__section {
        padding: 30px 0;
    }

    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px; /* 約 10px 頂距 */
    }
    .page-gdpr__hero-image img {
        object-fit: contain !important; /* 禁止 cover 裁切两侧 */
        aspect-ratio: unset !important; /* 避免固定比例 */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__hero-content {
        padding: 20px 15px 40px;
    }
    .page-gdpr__main-title {
        font-size: clamp(24px, 7vw, 36px);
        text-align: center;
    }
    .page-gdpr__description {
        font-size: clamp(14px, 3.5vw, 16px);
        text-align: center;
    }

    /* 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__image-wrapper {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 按钮与按钮容器 */
    .page-gdpr__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
        display: block; /* Ensure it takes full width */
    }
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
        display: flex; /* For multi-button layouts */
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-gdpr__section-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }
    .page-gdpr__text-block {
        font-size: 15px;
        margin-bottom: 20px;
        text-align: left; /* Align text left for better readability on mobile */
        padding: 0 10px;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__card-title {
        font-size: 17px;
    }
    .page-gdpr__card p {
        font-size: 14px;
    }

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