/* ======================================================
   Terms of Service Page Styles
   ====================================================== */

/* --- Hero Section --- */
.terms-hero {
    background: linear-gradient(115deg, #1e1b4b 0%, #312e81 28%, #4338ca 55%, #6366f1 78%, #a5b4fc 100%);
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.terms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.terms-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 8px #60a5fa;
    animation: pulse-dot-blue 2s ease-in-out infinite;
}

@keyframes pulse-dot-blue {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.terms-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.terms-hero-hl {
    background: linear-gradient(90deg, #bfdbfe, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.terms-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 50px;
}

/* --- Key Summary Banner --- */
.terms-summary-bar {
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    padding: 20px 0;
}

.terms-summary-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.terms-summary-label {
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terms-summary-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.terms-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 50px;
}

.terms-chip svg {
    width: 12px;
    height: 12px;
    color: #3b82f6;
}

/* --- Main Content Layout --- */
.terms-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    padding: 64px 0 80px;
}

/* --- Table of Contents --- */
.terms-toc {
    position: sticky;
    top: 80px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px;
}

.terms-toc-title {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terms-toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #3b82f6;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1.4;
}

.terms-toc-list a:hover {
    background: rgba(59,130,246,0.08);
    color: #1d4ed8;
}

.terms-toc-list a.toc-active {
    background: rgba(59,130,246,0.1);
    color: #1d4ed8;
    font-weight: 600;
}

.terms-toc-num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.terms-toc-list a.toc-active .terms-toc-num {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
}

/* --- Terms Content --- */
.terms-content {
    min-width: 0;
}

.terms-section {
    margin-bottom: 48px;
    scroll-margin-top: 90px;
}

.terms-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #dbeafe;
}

.terms-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.terms-section-icon svg {
    width: 22px;
    height: 22px;
}

.terms-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0e0020;
    letter-spacing: -0.3px;
}

.terms-section-num {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 20px;
}

.terms-body {
    font-size: 15px;
    color: #374151;
    line-height: 1.85;
}

.terms-body p {
    margin-bottom: 14px;
}

.terms-body p:last-child {
    margin-bottom: 0;
}

.terms-body strong {
    color: #111827;
    font-weight: 600;
}

/* --- Info Card --- */
.terms-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
}

.terms-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-card-title svg {
    width: 14px;
    height: 14px;
}

/* --- List Items --- */
.terms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.terms-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
}

.terms-list-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
    margin-top: 8px;
}

/* --- Notice Box --- */
.terms-notice {
    display: flex;
    gap: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(99,102,241,0.05));
    border: 1px solid rgba(59,130,246,0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0;
}

.terms-notice svg {
    width: 20px;
    height: 20px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 1px;
}

.terms-notice-text {
    font-size: 14.5px;
    color: #374151;
    line-height: 1.7;
}

/* --- Warning Box --- */
.terms-warn {
    display: flex;
    gap: 14px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0;
}

.terms-warn svg {
    width: 20px;
    height: 20px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Safe Box --- */
.terms-safe {
    display: flex;
    gap: 14px;
    background: rgba(52, 211, 153, 0.05);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-left: 4px solid #34d399;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0;
}

.terms-safe svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Divider --- */
.terms-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #bfdbfe, transparent);
    margin: 48px 0;
}

/* --- Prohibited List (Red) --- */
.terms-prohibited {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.terms-prohibited-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
}

.terms-prohibited-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.terms-prohibited-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

/* --- Footer Note --- */
.terms-footer-note {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 48px;
}

.terms-footer-note p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.terms-footer-note p:last-child {
    margin-bottom: 0;
}

.terms-footer-note strong {
    color: rgba(255,255,255,0.85);
}

/* --- Back to Top --- */
.terms-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    margin-top: 20px;
    transition: opacity 0.2s, transform 0.2s;
}

.terms-back-top:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ======================================================
   Responsive
   ====================================================== */
@media (max-width: 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 40px 0 60px;
    }

    .terms-toc {
        position: static;
        margin-bottom: 32px;
    }

    .terms-toc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .terms-summary-inner {
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .terms-hero {
        padding: 60px 0 48px;
    }

    .terms-hero h1 {
        font-size: 28px;
    }

    .terms-toc-list {
        grid-template-columns: 1fr;
    }

    .terms-section-header {
        gap: 10px;
    }

    .terms-section-icon {
        width: 38px;
        height: 38px;
    }

    .terms-section-title {
        font-size: 17px;
    }

    .terms-body {
        font-size: 14.5px;
    }

    .terms-card {
        padding: 16px;
    }

    .terms-footer-note {
        padding: 24px 16px;
    }

    .terms-summary-chips {
        gap: 6px;
    }

    .terms-chip {
        font-size: 11.5px;
        padding: 4px 10px;
    }
}
