/* Terms and Conditions of Sale (terms.php). Layout only: fonts, colors and text styling come from the site. */
.terms-page { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }

.terms-page .terms-head { padding: 8px 0 18px; border-bottom: 1px solid #ddd; margin-bottom: 8px; }
.terms-page .terms-brand { margin: 0 0 4px; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.terms-page .terms-head h1 { margin: 0 0 8px; }
.terms-page .terms-meta { margin: 0 0 12px; }
.terms-page .terms-actions a { margin-right: 18px; }
.terms-page .terms-actions a.terms-pdf { font-weight: bold; }

.terms-page .terms-banner { border: 1px solid #ddd; border-left: 4px solid #999; background: #f7f7f7; padding: 10px 14px; margin: 14px 0; }

.terms-page .terms-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }

.terms-page .terms-toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding-top: 16px; min-width: 0; }
.terms-page .terms-toc-label { margin: 0 0 8px; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.terms-page .terms-toc a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid #ddd; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.terms-page .terms-toc a.sub { padding-left: 24px; font-size: .85rem; }
.terms-page .terms-toc a:hover { border-left-color: #888; }
.terms-page .terms-toc a.on { border-left-color: currentColor; font-weight: bold; }

.terms-page .terms-body { min-width: 0; padding-top: 16px; }
.terms-page .terms-body section { margin: 0 0 30px; scroll-margin-top: 20px; }
.terms-page .terms-body h2 { margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.terms-page .terms-body p { max-width: 70ch; }
.terms-page .terms-body ul { list-style: disc; padding-left: 22px; margin: 4px 0 12px; max-width: 70ch; }
.terms-page .terms-body li { margin-bottom: 4px; }
.terms-page .terms-body .cl { font-weight: bold; margin-right: 3px; }
.terms-page .terms-body .cl a { text-decoration: none; }
.terms-page .terms-body .cl a:hover { text-decoration: underline; }
.terms-page .terms-body .allcaps { border: 1px solid #999; padding: 12px 14px; }
.terms-page .terms-body .tw { overflow-x: auto; margin: 6px 0 12px; max-width: 70ch; }
.terms-page .terms-body table { border-collapse: collapse; width: 100%; }
.terms-page .terms-body th,
.terms-page .terms-body td { border: 1px solid #ccc; padding: 8px 10px; text-align: left; vertical-align: top; }
.terms-page .terms-body th { background: #f2f2f2; }
.terms-page .terms-body .sched-rule { border: 0; border-top: 2px solid #999; margin: 40px 0 0; max-width: 70ch; }
.terms-page .terms-body .sched-eyebrow { margin: 8px 0 0; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

.terms-page .terms-archive { border: 1px solid #ddd; padding: 16px 18px; margin-top: 40px; max-width: 70ch; }
.terms-page .terms-archive h2 { border: 0; padding: 0; }

@media (max-width: 860px) {
    .terms-page .terms-wrap { grid-template-columns: 1fr; gap: 0; }
    .terms-page .terms-toc { position: static; max-height: none; overflow: visible; padding-top: 10px; }
    .terms-page.terms-js .terms-toc-list { display: none; }
    .terms-page.terms-js .terms-toc.open .terms-toc-list { display: block; }
    .terms-page.terms-js .terms-toc-label { cursor: pointer; border: 1px solid #ddd; padding: 10px 12px; margin: 0; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
    .terms-page { max-width: none; padding: 0; }
    .terms-page .terms-toc,
    .terms-page .terms-actions,
    .terms-page .terms-archive .terms-archive-pdf { display: none; }
    .terms-page .terms-wrap { display: block; }
    .terms-page .terms-body p,
    .terms-page .terms-body ul,
    .terms-page .terms-body .tw,
    .terms-page .terms-body .allcaps { max-width: none; }
    .terms-page .terms-body p,
    .terms-page .terms-body li,
    .terms-page .terms-body tr { break-inside: avoid; }
    .terms-page .terms-body h2 { break-after: avoid; }
    .terms-page .terms-body .cl a,
    .terms-page a { color: inherit; text-decoration: none; }
}
