/* ==========================================================================
   terms.css — page-specific styles for zh-Hans/terms.html
   Loaded after index.css; only page-specific rules here.
   ========================================================================== */

/* ==========================================================================
   1. Page hero
   ========================================================================== */
.tm-hero {
    padding: 80px 0 64px;
    text-align: center;
}

.tm-hero-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
}

.tm-hero-title {
    font-size: 56px; font-weight: 900; line-height: 1.05; letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.tm-hero-title .g {
    background: linear-gradient(135deg, var(--accent) 0%, #A79FF7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.tm-hero-desc {
    font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 600px; margin: 0 auto 28px;
}

.tm-hero-meta {
    display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}

.tm-meta-pill {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    background: #fff; border: 1px solid var(--border-line);
    padding: 6px 16px; border-radius: 100px;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

/* ==========================================================================
   2. Layout: two-column (TOC + content)
   ========================================================================== */
.tm-body {
    padding: 0 0 96px;
}

.tm-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}

/* ==========================================================================
   3. TOC sidebar
   ========================================================================== */
.tm-toc {
    position: sticky;
    top: 88px;
}

.tm-toc-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 16px;
}

.tm-toc-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 2px;
}

.tm-toc-list a {
    display: block;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 10px;
    border-left: 2px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
    line-height: 1.45;
}

.tm-toc-list a:hover {
    color: var(--accent);
    background: rgba(94,92,230,.07);
}

.tm-toc-list a.active {
    color: var(--accent);
    background: rgba(94,92,230,.09);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   4. Content area
   ========================================================================== */
.tm-content {
    min-width: 0;
}

.tm-section {
    margin-bottom: 64px;
    scroll-margin-top: 96px;
}

.tm-section:last-child {
    margin-bottom: 0;
}

.tm-section-num {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 8px; display: block;
}

.tm-section-title {
    font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
    color: var(--text-main); margin-bottom: 20px; line-height: 1.25;
}

.tm-divider {
    height: 1px; background: var(--border-line); margin-bottom: 24px;
}

/* Prose */
.tm-prose {
    font-size: 15.5px; color: var(--text-muted); line-height: 1.8;
}

.tm-prose p {
    margin-bottom: 16px;
}

.tm-prose p:last-child {
    margin-bottom: 0;
}

.tm-prose strong {
    color: var(--text-main); font-weight: 600;
}

.tm-prose ul {
    list-style: none;
    margin: 16px 0;
    display: flex; flex-direction: column; gap: 10px;
}

.tm-prose ul li {
    position: relative;
    padding-left: 16px;
    font-size: 15px;
    line-height: 1.75;
}

.tm-prose ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}

/* Pricing table */
.tm-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14.5px;
}

.tm-price-table th {
    text-align: left;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-light);
    padding: 10px 16px;
    border-bottom: 2px solid var(--border-line);
}

.tm-price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-line);
    color: var(--text-muted);
    vertical-align: middle;
}

.tm-price-table tr:last-child td {
    border-bottom: none;
}

.tm-price-table tr:hover td {
    background: var(--bg-alt);
}

.tm-price-table td:first-child { font-weight: 600; color: var(--text-main); }
.tm-price-table td strong { color: var(--accent); font-weight: 700; }

/* Callout box */
.tm-callout {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14.5px; color: var(--text-muted); line-height: 1.7;
}

.tm-callout--warn {
    background: rgba(255, 59, 48, 0.05);
    border-left-color: #FF3B30;
}

/* Contact card */
.tm-contact-card {
    background: #fff;
    border: 1.5px solid var(--border-line);
    border-radius: var(--r-md);
    padding: 28px;
    display: flex; flex-direction: column; gap: 16px;
    box-shadow: var(--shadow-soft);
    margin-top: 8px;
}

.tm-contact-row {
    display: flex; align-items: center; gap: 14px;
}

.tm-contact-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}

.tm-contact-icon--email  { background: rgba(255,126,95,.12); }
.tm-contact-icon--ticket { background: rgba(94,92,230,.10); }

.tm-contact-label {
    font-size: 12px; font-weight: 600; color: var(--text-light);
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px;
}

.tm-contact-val {
    font-size: 15px; font-weight: 600; color: var(--text-main);
}

.tm-contact-val a {
    color: var(--accent); text-decoration: none;
}

.tm-contact-val a:hover {
    text-decoration: underline;
}

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

    .tm-toc {
        position: static;
        background: #fff;
        border: 1px solid var(--border-line);
        border-radius: var(--r-md);
        padding: 20px 24px;
        margin-bottom: 40px;
    }

    .tm-toc-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }

    .tm-toc-list a {
        font-size: 12px;
        padding: 5px 10px;
        border-left: none;
        border-radius: 100px;
        border: 1px solid var(--border-line);
    }

    .tm-toc-list a.active {
        border-color: var(--accent);
        background: rgba(94,92,230,.09);
    }

    .tm-hero-title { font-size: 38px; }
}

@media (max-width: 600px) {
    .tm-hero { padding: 56px 0 40px; }
    .tm-hero-title { font-size: 32px; }
    .tm-hero-desc { font-size: 15px; }
    .tm-body { padding: 0 0 64px; }
    .tm-section { margin-bottom: 48px; }
    .tm-price-table { font-size: 13px; }
    .tm-price-table th, .tm-price-table td { padding: 10px 10px; }
    .tm-contact-card { padding: 20px; }
}
