/* ============================================================
   SpinMac CN — Terms of Service Page Styles
   Design: blue-corporate editorial (matches index.html / help.css)
   Nav / footer styles handled by components.js — not here.
   ============================================================ */

:root {
    --tc-blue:       #0052D9;
    --tc-blue-dark:  #003399;
    --tc-blue-pale:  #7eb3ff;
    --tc-dark:       #1A1C1F;
    --tc-dark-panel: #24272C;
    --tc-gray-bg:    #F4F5F7;
    --tc-text-main:  #111111;
    --tc-text-muted: #7A828A;
    --tc-border:     #E8EBEF;

    --font-family: 'Inter', "PingFang SC", "Microsoft YaHei",
                   -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width:   1400px;
    --nav-height:  64px;
    --transition:  all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--tc-text-main);
    background-color: #fff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot::after { animation: none; }
}


/* ============================================================
   1. HERO
   ============================================================ */
.terms-hero {
    padding-top:    calc(var(--nav-height) + 88px);
    padding-bottom: 88px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #060a1a 0%, #0c1635 45%, #0a1028 100%);
}

.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 8% 100%, rgba(0, 82, 217, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 40% 50% at 92% 12%, rgba(0, 82, 217, 0.10) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.terms-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tc-blue-pale);
    position: relative;
    flex-shrink: 0;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(126, 179, 255, 0.5);
    animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.terms-h1 {
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.terms-hero-lead {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.85;
    max-width: 640px;
    margin-bottom: 40px;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.terms-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.terms-meta-pill svg { opacity: 0.7; flex-shrink: 0; }


/* ============================================================
   2. CHAPTER NAV — horizontal scroll strip
   ============================================================ */
.chapter-nav-section {
    background: var(--tc-gray-bg);
    border-bottom: 1px solid var(--tc-border);
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
}

.chapter-nav {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.chapter-nav::-webkit-scrollbar { display: none; }

.chapter-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--tc-text-muted);
    border: 1px solid var(--tc-border);
    background: #fff;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chapter-link:hover {
    color: var(--tc-blue);
    border-color: rgba(0, 82, 217, 0.35);
}
.chapter-link.active {
    color: #fff;
    background: var(--tc-blue);
    border-color: var(--tc-blue);
}

.chapter-num {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
}


/* ============================================================
   3. LEGAL BODY
   ============================================================ */
.terms-body {
    padding: 80px 0 100px;
    background: #fff;
}

.terms-article {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.terms-section {
    padding: 40px 0;
    border-top: 1px solid var(--tc-border);
    scroll-margin-top: calc(var(--nav-height) + 72px);
}
.terms-section:first-child { border-top: none; padding-top: 0; }

.terms-section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
}

.terms-sec-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--tc-blue);
    flex-shrink: 0;
    padding-top: 4px;
}

.terms-section h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.35;
    color: var(--tc-text-main);
}

.terms-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--tc-text-main);
    margin: 28px 0 10px;
    letter-spacing: 0.3px;
}

.terms-section p {
    font-size: 15px;
    font-weight: 300;
    color: #3a3f47;
    margin-bottom: 14px;
    line-height: 1.85;
}
.terms-section p:last-child { margin-bottom: 0; }

.terms-section a {
    color: var(--tc-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.terms-section a:hover { color: var(--tc-blue-dark); }

.terms-list {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 300;
    color: #3a3f47;
    line-height: 1.75;
}

.terms-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tc-blue);
    flex-shrink: 0;
    margin-top: 10px;
}

.terms-callout {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(0, 82, 217, 0.05);
    border-left: 3px solid var(--tc-blue);
}
.terms-callout-icon {
    color: var(--tc-blue);
    flex-shrink: 0;
    line-height: 0;
    margin-top: 2px;
}
.terms-callout p {
    margin: 0;
    font-size: 14px;
    color: #2d3340;
}

.terms-note {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 300;
    color: var(--tc-text-muted);
    background: var(--tc-gray-bg);
    border: 1px solid var(--tc-border);
    line-height: 1.7;
}

.terms-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.terms-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--tc-border);
    background: var(--tc-gray-bg);
}

.terms-contact-icon {
    color: var(--tc-blue);
    line-height: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-contact-row strong {
    font-weight: 500;
    color: var(--tc-text-main);
}


/* ============================================================
   4. BOTTOM CTA
   ============================================================ */
.terms-cta {
    background: var(--tc-dark);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.terms-cta-inner { max-width: 640px; margin: 0 auto; }

.terms-cta h2 {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.terms-cta-lead {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 48px;
    line-height: 1.85;
}

.terms-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.terms-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-family);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.terms-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: transparent;
}
.terms-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
}
.terms-btn-primary {
    color: #fff;
    background: var(--tc-blue);
    border-color: var(--tc-blue);
}
.terms-btn-primary:hover {
    background: var(--tc-blue-dark);
    border-color: var(--tc-blue-dark);
    box-shadow: 0 8px 24px rgba(0, 82, 217, 0.28);
}


/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .container, .wrap { padding: 0 20px; }

    .terms-h1 { font-size: 36px; letter-spacing: 1.5px; }
    .terms-hero { padding-bottom: 64px; }
    .terms-hero-lead { font-size: 16px; }

    .terms-body { padding: 56px 0 72px; }
    .terms-section { padding: 32px 0; }
    .terms-section h2 { font-size: 22px; }

    .terms-cta h2 { font-size: 32px; }
    .terms-cta-actions { flex-direction: column; align-items: stretch; }
    .terms-btn { justify-content: center; }
}

@media (max-width: 480px) {
    .terms-h1 { font-size: 30px; }
    .terms-meta { flex-direction: column; }
}
