/**
 * gdpr.css - Tuân Thủ GDPR | SV888
 * BEM class prefix: page-gdpr__
 * Style scope: .page-gdpr only
 */

/* ---------- Shared layout variables adapter ---------- */
:root {
    --gdpr-page-bg: #0D0E12;
    --gdpr-card-bg: #17191F;
    --gdpr-text-main: #FFF3E6;
    --gdpr-text-muted: #D0DDE7;
    --gdpr-primary: #FF8C1A;
    --gdpr-secondary: #FFA53A;
    --gdpr-deep-orange: #D96800;
    --gdpr-btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --gdpr-border-glow: #A84F0C;
    --gdpr-glow: #FFB04D;
    --gdpr-hero-gradient: linear-gradient(145deg, rgba(255,140,26,.14) 0%, rgba(13,14,18,0) 70%);
}

.page-gdpr {
    background-color: var(--gdpr-page-bg);
    color: var(--gdpr-text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---------- 1. HERO BANNER section ---------- */
.page-gdpr__hero-section {
    padding: 10px 0 24px;
    background: var(--gdpr-page-bg);
    position: relative;
}

.page-gdpr__hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gdpr-hero-gradient);
    pointer-events: none;
}

.page-gdpr__hero-image-wrap,
.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
}

.page-gdpr__hero-image-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.page-gdpr__hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 17 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(168, 79, 12, 0.45);
    box-shadow: 0 0 42px rgba(255, 140, 26, 0.12);
}

.page-gdpr__hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 30px 16px 10px;
}

.page-gdpr__hero-title {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--gdpr-text-main);
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(1.4rem, 3.1vw, 2.2rem); /* controlled, no huge px */
}

.page-gdpr__hero-title::before {
    content: '';
    background: var(--gdpr-btn-gradient);
    border-radius: 999px;
    max-width: 160px;
    height: 4px;
    margin: 0 auto 16px;
    display: block;
}

.page-gdpr__hero-subtitle {
    color: var(--gdpr-text-muted);
    margin: 10px auto 0;
    max-width: 620px;
    font-size: 1.05rem;
}

/* ---------- 2. INTRO section ---------- */
.page-gdpr__intro-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 34px 16px 8px;
}

.page-gdpr__intro-container {
    background: var(--gdpr-card-bg);
    border: 1px solid var(--gdpr-border-glow);
    border-radius: 16px;
    padding: 28px;
}

.page-gdpr__intro-title {
    color: var(--gdpr-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-gdpr__intro-container p {
    color: var(--gdpr-text-main);
    opacity: .9;
}

/* ---------- 3. PRINCIPLES grid section ---------- */
.page-gdpr__principles-section,
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-gdpr__principles-section {
    padding: 34px 16px;
}

.page-gdpr__principles-title {
    text-align: center;
    color: var(--gdpr-secondary);
    font-size: 1.8rem;
    line-height: 1.3;
}

.page-gdpr__principles-title::after {
    content: '✦  ✦  ✦';
    display: block;
    color: var(--gdpr-primary);
    letter-spacing: 8px;
    margin-top: 12px;
    font-size: 1.2rem;
}

.page-gdpr__principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.page-gdpr__principle-card {
    background: var(--gdpr-card-bg);
    border: 1px solid rgba(168, 79, 12, 0.55);
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.page-gdpr__principle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(255, 140, 26, 0.2);
}

.page-gdpr__principle-card-title {
    color: var(--gdpr-glow);
    font-size: 1.25rem;
    border-left: 4px solid var(--gdpr-primary);
    padding-left: 12px;
    margin-bottom: 14px;
}

.page-gdpr__principle-card p {
    color: var(--gdpr-text-main);
    opacity: .88;
}

/* ---------- 4. RIGHTS section ---------- */
.page-gdpr__rights-section {
    padding: 10px 16px 54px;
}

.page-gdpr__rights-section .page-gdpr__container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: center;
    gap: 42px;
    background: radial-gradient(circle at 0 10%, rgba(255,140,26,.08), transparent 55%);
}

.page-gdpr__rights-image-wrap {
    width: 100%;
}

.page-gdpr__rights-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid var(--gdpr-border-glow);
}

.page-gdpr__rights-title {
    color: var(--gdpr-secondary);
    font-size: 1.7rem;
    border-bottom: 2px dashed var(--gdpr-deep-orange);
    display: inline-block;
    padding-bottom: 6px;
}

.page-gdpr__rights-list {
    list-style: none;
    margin-top: 18px;
}

.page-gdpr__rights-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.page-gdpr__rights-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--gdpr-primary);
    font-weight: bold;
}

/* ---------- 5. BLOG / cards section ---------- */
.page-gdpr__blogs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px 46px;
}

.page-gdpr__blogs-title {
    text-align: center;
    color: var(--gdpr-secondary);
    font-size: 1.8rem;
    margin-bottom: 36px;
}

.page-gdpr__blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.page-gdpr__blog-card {
    background: var(--gdpr-card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 79, 12, 0.4);
    transition: transform .25s ease, box-shadow .25s ease;
}

.page-gdpr__blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 28px rgba(255, 140, 26, 0.2);
}

.page-gdpr__blog-card a {
    text-decoration: none;
    display: block;
}

.page-gdpr__blog-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    display: block;
}

.page-gdpr__blog-card-title {
    color: var(--gdpr-text-main);
    font-size: 1.2rem;
    line-height: 1.3;
    padding: 18px 16px 22px;
    margin: 0;
    border-top: 1px solid rgba(255,140,26,.2);
}

/* ---------- 6. FAQ section ---------- */
.page-gdpr__faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 26px 16px 48px;
}

.page-gdpr__faq-title {
    color: var(--gdpr-secondary);
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 32px;
}

.page-gdpr__faq-item {
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--gdpr-card-bg);
    border: 1px solid var(--gdpr-border-glow);
    overflow: hidden;
}

.page-gdpr__faq-summary {
    list-style: none;
    padding: 16px 52px 16px 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}

.page-gdpr__faq-summary::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-summary:hover {
    background: rgba(255, 140, 26, 0.1);
}

.page-gdpr__faq-summary::before {
    content: '\C3\A9';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gdpr-secondary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, color .3s;
}

.page-gdpr__faq-details[open] .page-gdpr__faq-summary::before {
    content: '\C3\97';
    color: var(--gdpr-primary);
    transform: translateY(-50%) rotate(90deg);
}

.page-gdpr__faq-answer {
    line-height: 1.65;
    color: var(--gdpr-text-main);
    padding: 6px 18px 18px;
    border-top: 1px dashed rgba(255, 140, 26, .3);
}

.page-gdpr__faq-link {
    color: var(--gdpr-secondary);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- 7. CTA section ---------- */
.page-gdpr__cta-section {
    padding: 16px 16px 60px;
}

.page-gdpr__cta-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 26px;
    background: radial-gradient(circle at 20% 0%, rgba(255, 140, 26, .18), transparent 60%), var(--gdpr-card-bg);
    border: 2px solid var(--gdpr-border-glow);
    border-radius: 24px;
    text-align: center;
}

.page-gdpr__cta-title {
    color: var(--gdpr-secondary);
    font-size: 1.75rem;
}

.page-gdpr__cta-text {
    color: var(--gdpr-text-muted);
    margin-top: 8px;
}

.page-gdpr__cta-buttons {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-gdpr__cta-button {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    display: inline-block;
    text-align: center;
    padding: 12px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.page-gdpr__cta-button--primary {
    background: var(--gdpr-btn-gradient);
    color: #130A02;
}

.page-gdpr__cta-button--primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 0 22px rgba(255, 140, 26, .45);
}

.page-gdpr__cta-button--secondary {
    background: transparent;
    color: var(--gdpr-text-main);
    border: 1px solid var(--gdpr-primary);
}

.page-gdpr__cta-button--secondary:hover {
    background: rgba(255, 140, 26, .12);
}

/* ---------- Responsive rules ---------- */
@supports (aspect-ratio: 1) {
    .page-gdpr__hero-image {
        aspect-ratio: 17 / 5;
    }
}

/* Tablet @ 1024px */
@media (max-width: 1024px) {
    .page-gdpr__principles-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-gdpr__blogs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-gdpr__rights-section .page-gdpr__container {
        grid-template-columns: 1fr;
        padding: 8px;
    }
}

/* Mobile @ 768px (critical rules) */
@media (max-width: 768px) {
    /* Hero */
    .page-gdpr__hero-section {
        padding: 6px 0 16px;
    }
    .page-gdpr__hero-image {
        aspect-ratio: 2 / 1;
        height: auto;
        border-radius: 14px;
    }
    .page-gdpr__hero-content {
        padding-top: 18px;
    }
    .page-gdpr__hero-title {
        max-width: 100%;
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .page-gdpr__intro-container {
        padding: 4px 0;
        font-size: 1rem;
    }

    /* Principles one column */
    .page-gdpr__principles-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 14px;
    }

    .page-gdpr__principles-title,
    .page-gdpr__blogs-title,
    .page-gdpr__faq-title,
    .page-gdpr__cta-title {
        font-size: 1.2rem;
    }

    /* Cards one column */
    .page-gdpr__blogs-grid {
        grid-template-columns: 1fr;
    }

    .page-gdpr__blog-card-title {
        font-size: 1.1rem;
        padding: 14px 14px 18px;
    }

    /* FAQ compact */
    .page-gdpr__faq-summary {
        font-size: 1rem;
        padding: 13px 42px 13px 15px;
    }

    /* CTA buttons block */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .page-gdpr__cta-button {
        display: block;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        margin-bottom: 12px;
    }

    /* ---------- Generic mobile image safe rules ---------- */
    .page-gdpr img {
        max-width: 100%;
        height: auto;
    }
}