.terms-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 108px 24px 96px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 2px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    scrollbar-width: thin;
}

.terms-toc-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.terms-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 1px solid var(--line-soft);
    padding-left: 12px;
}

.terms-toc-list a {
    display: block;
    padding: 4px 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.16s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terms-toc-list a:hover {
    color: var(--text);
}

.terms-article {
    min-width: 0;
}

.terms-hero {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
}

.terms-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.terms-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.06;
    color: var(--text);
    margin-bottom: 12px;
}

.terms-lead {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.68;
    max-width: 66ch;
}

.terms-binding-box {
    margin-top: 20px;
    padding: 2px 0 2px 14px;
    border: none;
    border-left: 2px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 68ch;
}

.terms-binding-box strong {
    color: var(--text);
    font-weight: 600;
}

.terms-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
    scroll-margin-top: 96px;
}

.terms-section:last-of-type {
    border-bottom: none;
}

.terms-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.terms-section h3 {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 6px;
}

.terms-section p {
    font-size: 0.91rem;
    color: var(--text-muted);
    line-height: 1.72;
    max-width: 70ch;
}

.terms-section p + p {
    margin-top: 10px;
}

.terms-section strong {
    color: var(--text);
    font-weight: 600;
}

.terms-section ul,
.terms-section ol {
    margin: 10px 0 10px 20px;
    display: grid;
    gap: 6px;
    max-width: 68ch;
}

.terms-section li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding-left: 4px;
}

.terms-notice-card {
    margin-top: 24px;
    padding: 28px 0 0;
    border: none;
    border-top: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    scroll-margin-top: 96px;
}

.terms-notice-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.terms-notice-card h3 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin: 18px 0 6px;
}

.terms-notice-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.68;
    max-width: 68ch;
}

.terms-notice-card p + p {
    margin-top: 6px;
}

.terms-notice-card strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 900px) {
    .terms-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 96px 18px 72px;
    }

    .terms-toc {
        position: static;
        max-height: none;
    }

    .terms-toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 14px;
        border-left: none;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line-soft);
    }

    .terms-toc-list a {
        padding: 6px 0;
        border-left: none;
        margin-left: 0;
    }

    .terms-article {
        overflow-wrap: anywhere;
    }
}
