/* Điều khoản, chính sách & trang pháp lý — C22 */
.terms-page-root {
    font-family: 'SVN-Gilroy', sans-serif;
    overflow-x: clip;
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.terms-hero {
    position: relative;
    padding: clamp(2.5rem, 7vw, 4.25rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.terms-hero__glow {
    position: absolute;
    width: min(380px, 88vw);
    height: min(380px, 88vw);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    animation: termsHeroGlow 9s ease-in-out infinite alternate;
}

.terms-hero__glow--orange {
    background: #fe7814;
    top: -12%;
    left: -8%;
}

.terms-hero__glow--blue {
    background: #269af2;
    top: -18%;
    right: -10%;
    animation-delay: -3.5s;
}

.terms-hero__inner {
    position: relative;
    z-index: 1;
}

.terms-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.9rem 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(38, 154, 242, 0.1);
    color: #1b7bc4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.terms-hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #269af2, #5eb8ff);
    box-shadow: 0 0 0 3px rgba(38, 154, 242, 0.2);
}

.terms-hero__title {
    font-size: clamp(1.6rem, 4.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 0.85rem;
}

.terms-hero__lead {
    font-size: clamp(0.94rem, 2.2vw, 1.05rem);
    line-height: 1.65;
    color: #555;
    margin: 0 auto;
    max-width: 38rem;
}

.terms-body {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 12px;
}

.terms-section-kicker {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fe7814;
    margin-bottom: 1rem;
}

.terms-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.terms-toc__label {
    width: 100%;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 0.15rem;
}

.terms-toc a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.terms-toc a:hover {
    color: #fe7814;
    border-color: rgba(254, 120, 20, 0.35);
    box-shadow: 0 4px 14px rgba(254, 120, 20, 0.12);
}

.terms-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-faq-card {
    position: relative;
    border-radius: 16px;
    padding: 1.35rem 1.35rem 1.35rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    scroll-margin-top: 5.5rem;
    transition: box-shadow 0.3s ease, border-color 0.25s ease;
}

.terms-faq-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #269af2, #fe7814);
    opacity: 0.85;
}

.terms-faq-card:hover {
    border-color: rgba(38, 154, 242, 0.2);
    box-shadow: 0 8px 32px rgba(38, 154, 242, 0.1);
}

.terms-faq-card__head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.terms-faq-card__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2a9df0, #fe7814);
}

.terms-faq-card__question {
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    font-weight: 700;
    line-height: 1.35;
    color: #141414;
    margin: 0;
    letter-spacing: -0.01em;
}

.terms-faq-card__body {
    padding-left: 2.85rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #474747;
    font-weight: 500;
}

.terms-faq-card__body p + ul,
.terms-faq-card__body p + ol {
    margin-top: 0.65rem;
}

.terms-faq-card__body ul,
.terms-faq-card__body ol {
    margin: 0;
    padding-left: 1.25rem;
}

.terms-faq-card__body li {
    margin-bottom: 0.5rem;
}

.terms-faq-card__body li:last-child {
    margin-bottom: 0;
}

/* Khối mở đầu (chính sách bảo mật) */
.terms-faq-card--intro .terms-faq-card__body {
    padding-left: 0;
}

.terms-faq-card--intro .terms-faq-card__body p {
    margin: 0;
}

@media (min-width: 576px) {
    .terms-faq-card--intro .terms-faq-card__body {
        max-width: none;
    }
}

.terms-faq-card__body a[href^='mailto:'] {
    word-break: break-all;
}

.terms-faq-card__body a {
    color: #1b7bc4;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-faq-card__body a:hover {
    color: #fe7814;
}

/* Scroll reveal (shared class name with about) */
.terms-page-root .terms-hero__inner,
.terms-page-root .terms-toc,
.terms-page-root .terms-faq-card {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.terms-page-root .terms-hero__inner.c22-about-visible,
.terms-page-root .terms-toc.c22-about-visible,
.terms-page-root .terms-faq-card.c22-about-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes termsHeroGlow {
    from {
        transform: translate3d(-6px, -4px, 0) scale(0.97);
    }
    to {
        transform: translate3d(10px, 8px, 0) scale(1.03);
    }
}

@media (max-width: 575.98px) {
    .terms-toc {
        flex-direction: column;
    }

    .terms-toc a {
        justify-content: center;
    }

    .terms-faq-card__body {
        padding-left: 0;
        padding-top: 0.35rem;
    }

    .terms-faq-card__head {
        flex-direction: column;
        gap: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-hero__glow {
        animation: none;
    }

    .terms-page-root .terms-hero__inner,
    .terms-page-root .terms-toc,
    .terms-page-root .terms-faq-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
