.terms-page .header-main,
.terms-layout {
    max-width: 900px;
}

.terms-header-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.terms-page a {
    color: var(--primary-light);
    text-underline-offset: 3px;
}

.terms-page a:focus-visible,
.terms-page button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.terms-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1001;
    padding: 12px;
    background: var(--bg-card);
}

.terms-skip:focus {
    top: 12px;
}

.terms-layout {
    position: relative;
    margin: 36px auto 64px;
    padding: 0 28px;
}

.terms-draft-notice,
.terms-review-item {
    padding: 18px 20px;
    border: 1px solid rgba(212, 168, 67, 0.45);
    border-radius: var(--radius-md);
    background: rgba(212, 168, 67, 0.07);
    color: #ded2af;
    font-size: 14px;
    line-height: 1.65;
}

.terms-draft-notice strong {
    color: var(--gold);
}

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

.terms-heading {
    padding: 36px 0 28px;
}

.terms-eyebrow {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.terms-heading h1 {
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.terms-meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 12px;
}

.terms-heading > p:last-of-type {
    color: var(--text-secondary);
    margin: 20px 0;
    max-width: 680px;
}

.terms-contents {
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    margin-bottom: 36px;
}

.terms-contents h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

.terms-contents ol {
    columns: 2;
    column-gap: 40px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.terms-contents li {
    padding: 5px 0;
    break-inside: avoid;
}

.terms-contents a {
    color: var(--text-secondary);
}

.terms-body section {
    margin: 32px 0;
    scroll-margin-top: 110px;
}

.terms-body h2 {
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.terms-body p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.terms-body p + p,
.terms-review-item {
    margin-top: 14px;
}

.terms-review-item + p {
    margin-top: 14px;
}

.terms-body strong {
    color: var(--text-primary);
}

.terms-pending {
    background: rgba(212, 168, 67, 0.13);
    color: #e4d19a;
    padding: 2px 4px;
    box-decoration-break: clone;
}

.terms-important {
    padding: 24px;
    border-left: 3px solid var(--primary-light);
    background: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.terms-end {
    display: flex;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.terms-footer {
    position: relative;
    padding: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

@media (max-width: 600px) {
    .terms-page .tagline {
        display: none;
    }

    .terms-page .header-main {
        gap: 12px;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .terms-header-links {
        gap: 14px;
        font-size: 13px;
        margin-left: auto;
    }

    .terms-layout {
        margin-top: 24px;
        padding: 0 20px;
    }

    .terms-contents {
        padding: 20px;
    }

    .terms-contents ol {
        columns: 1;
    }

    .terms-important {
        padding: 20px;
    }

    .terms-body h2 {
        font-size: 20px;
    }
}

@media print {
    .terms-page {
        color: #111;
        background: #fff;
    }

    .terms-page::before,
    .terms-page .site-header,
    .terms-skip,
    .terms-contents,
    #printTerms,
    .terms-end,
    .terms-footer {
        display: none;
    }

    .terms-layout {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .terms-body p,
    .terms-body h2,
    .terms-body strong,
    .terms-page a,
    .terms-meta,
    .terms-heading > p:last-of-type,
    .terms-eyebrow,
    .terms-draft-notice,
    .terms-draft-notice strong,
    .terms-review-item,
    .terms-pending {
        color: #111;
        background: #fff;
    }

    .terms-body h2 {
        break-after: avoid;
    }

    .terms-important {
        background: #fff;
    }

    .terms-draft-notice,
    .terms-review-item,
    .terms-important {
        border-color: #666;
    }
}
