/* style/gdpr.css */

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

.page-gdpr {
    background-color: var(--background-color-page);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

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

.page-gdpr__hero-content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-gdpr__cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* General Content Sections */
.page-gdpr__content-section,
.page-gdpr__data-collection-section,
.page-gdpr__user-rights-section,
.page-gdpr__data-security-section,
.page-gdpr__cookies-section,
.page-gdpr__third-party-section,
.page-gdpr__contact-section,
.page-gdpr__updates-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-gdpr__content-section:last-of-type, .page-gdpr__updates-section:last-of-type {
    border-bottom: none;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-gdpr__text-block {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.page-gdpr__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-gdpr__link {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: var(--glow-color);
}

/* User Rights Grid */
.page-gdpr__rights-grid {
    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);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
}

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

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

.page-gdpr__card-text {
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

/* Image with Text Layout */
.page-gdpr__data-security-section .page-gdpr__container,
.page-gdpr__contact-section .page-gdpr__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-gdpr__image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-gdpr__image--right {
    order: 2;
}

.page-gdpr__image--left {
    order: 1;
}

.page-gdpr__data-security-section .page-gdpr__text-block,
.page-gdpr__contact-section .page-gdpr__text-block,
.page-gdpr__contact-list {
    flex: 1;
    order: 1;
}

.page-gdpr__contact-section .page-gdpr__text-block {
    margin-bottom: 15px;
}

.page-gdpr__image--right + .page-gdpr__text-block, .page-gdpr__image--right + .page-gdpr__contact-list {
    order: 1;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-gdpr__contact-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-image {
        height: 500px;
    }

    .page-gdpr__main-title {
        font-size: 2.5em;
    }

    .page-gdpr__section-title {
        font-size: 2em;
    }

    .page-gdpr__rights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-gdpr__data-security-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container {
        flex-direction: column;
        text-align: center;
    }

    .page-gdpr__image {
        max-width: 80%;
        order: initial;
        margin-bottom: 30px;
    }

    .page-gdpr__image--right,
    .page-gdpr__image--left {
        order: initial;
    }

    .page-gdpr__data-security-section .page-gdpr__text-block,
    .page-gdpr__contact-section .page-gdpr__text-block,
    .page-gdpr__contact-list {
        order: initial;
        text-align: left;
    }

    .page-gdpr__contact-list {
        padding-left: 20px;
    }
}

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

    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-gdpr__hero-image {
        height: 300px !important;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }

    .page-gdpr__main-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-gdpr__container,
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__section-title {
        font-size: 1.6em !important;
        margin-bottom: 30px;
    }

    .page-gdpr__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 按钮与按钮容器 */
    .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; /* Ensure vertical stacking on mobile */
    }

    /* 其他内容模块 */
    .page-gdpr__content-section,
    .page-gdpr__data-collection-section,
    .page-gdpr__user-rights-section,
    .page-gdpr__data-security-section,
    .page-gdpr__cookies-section,
    .page-gdpr__third-party-section,
    .page-gdpr__contact-section,
    .page-gdpr__updates-section {
        padding: 40px 0;
    }

    .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 25px;
    }

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

    .page-gdpr__list {
        margin-left: 15px;
    }

    .page-gdpr__data-security-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .page-gdpr__contact-list {
        padding-left: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-image {
        height: 250px !important;
    }

    .page-gdpr__main-title {
        font-size: 1.5em !important;
    }

    .page-gdpr__hero-description {
        font-size: 0.95em;
    }

    .page-gdpr__section-title {
        font-size: 1.4em !important;
    }

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

    .page-gdpr__cta-button {
        font-size: 0.95em;
        padding: 10px 20px;
    }
}