/* style/gdpr.css */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg-color: #FFFFFF;
    --body-bg-color: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--body-bg-color);
}

.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    text-align: center;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

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

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

.page-gdpr__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-gdpr__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
}

.page-gdpr__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

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

.page-gdpr__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-gdpr__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__text-link:hover {
    color: var(--secondary-color);
}

.page-gdpr__introduction-section {
    background-color: var(--card-bg-color);
    padding: 60px 0;
}

.page-gdpr__what-is-gdpr-section {
    padding: 60px 0;
    background-color: var(--body-bg-color);
}

.page-gdpr__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-gdpr__content-grid > div {
    flex: 1;
}

.page-gdpr__image-wrapper {
    text-align: center;
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-gdpr__list li {
    margin-bottom: 10px;
}

.page-gdpr__commitment-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
}

.page-gdpr__commitment-section .page-gdpr__section-title,
.page-gdpr__commitment-section .page-gdpr__text-block {
    color: #ffffff;
}

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

.page-gdpr__card {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-gdpr__data-collection-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-gdpr__user-rights-section {
    padding: 60px 0;
    background-color: var(--body-bg-color);
}

.page-gdpr__list--rights {
    list-style: none;
    margin-left: 0;
}

.page-gdpr__list--rights li {
    position: relative;
    padding-left: 30px;
}

.page-gdpr__list--rights li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-gdpr__cookies-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

.page-gdpr__contact-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    text-align: center;
}

.page-gdpr__contact-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__text-block,
.page-gdpr__contact-section .page-gdpr__contact-info p {
    color: #ffffff;
}

.page-gdpr__contact-info {
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__contact-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__conclusion-section {
    padding: 60px 0;
    background-color: var(--body-bg-color);
    text-align: center;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-gdpr__content-grid {
        flex-direction: column;
    }
    .page-gdpr__content-grid > div {
        width: 100%;
    }
    .page-gdpr__content-grid .page-gdpr__image-wrapper {
        order: -1; /* Image first on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__sub-title {
        font-size: 1.5em;
    }
    .page-gdpr__container {
        padding: 30px 15px;
    }
    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }
    
    /* Mobile specific overrides for images, videos, buttons */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__contact-image-wrapper,
    .page-gdpr__data-types,
    .page-gdpr__commitment-cards,
    .page-gdpr__content-grid,
    .page-gdpr__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-gdpr__cta-button,
    .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-left: 15px;
        padding-right: 15px;
    }
    .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;
        display: flex;
        flex-direction: column;
    }
    .page-gdpr__video-section {
        padding-top: 10px !important;
    }
}

/* Contrast safety */
.page-gdpr__dark-bg {
  color: #ffffff; /* Dark background, light text */
}

.page-gdpr__light-bg {
  color: var(--text-main-color); /* Light background, dark text */
}