/* terms.html + privacy.html — formal layout: contents list on the left, numbered sections on the right.
   Content is plain HTML for now; the contents list is built from the <h2 id> headings by jsbbs/legal.js,
   so editing / adding a section never needs the list updated by hand (and later this body can come from the admin portal). */
.lg-hero { background: #0b1220; color: #fff; padding: 56px 0 46px; }
.lg-hero .container { max-width: 1100px; }
.lg-hero .lg-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9aa6c0; margin: 0 0 12px; }
.lg-hero h1 { margin: 0 0 10px; font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.lg-hero p { margin: 0; color: #c6cee0; font-size: 16px; max-width: 640px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: 13px; color: #9aa6c0; }
.lg-meta b { color: #e5e9f4; font-weight: 600; }

.lg-wrap { max-width: 1100px; margin: 0 auto; padding: 44px 24px 90px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
.lg-toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.lg-toc h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; font-weight: 600; }
.lg-toc a { display: block; padding: 7px 12px; margin-left: -12px; border-left: 2px solid transparent; color: #4b5563; text-decoration: none; line-height: 1.35; }
.lg-toc a:hover { color: #0b1220; }
.lg-toc a.on { color: #0b1220; font-weight: 600; border-left-color: #0b1220; background: #f3f4f6; }

.lg-body { min-width: 0; max-width: 760px; }
.lg-body .updated { display: none; }                 /* the date is shown in the hero; this line is what the server reads for the version */
.lg-body h2 { margin: 44px 0 14px; padding-top: 6px; font-size: 22px; color: #0b1220; scroll-margin-top: 90px; }
.lg-body h2:first-of-type { margin-top: 0; }
.lg-body h3 { margin: 24px 0 8px; font-size: 16px; color: #0b1220; }
.lg-body p, .lg-body li { font-size: 15.5px; line-height: 1.7; color: #374151; }
.lg-body ul, .lg-body ol { padding-left: 22px; }
.lg-body li { margin-bottom: 6px; }
.lg-body a { color: #0b1220; text-decoration: underline; text-underline-offset: 2px; }
.lg-summary { margin: 0 0 34px; padding: 20px 24px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f8fafc; }
.lg-summary h2 { margin: 0 0 10px !important; font-size: 17px !important; }
.lg-summary ul { margin: 0; }
.lg-caps { font-size: 14px !important; letter-spacing: .01em; }
.lg-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14.5px; }
.lg-table th, .lg-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.lg-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.lg-print { margin-top: 36px; font-size: 13px; color: #6b7280; }

@media (max-width: 880px) {
    .lg-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
    .lg-toc { position: static; max-height: none; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
    .lg-hero h1 { font-size: 30px; }
}

.lg-print button { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 13px; cursor: pointer; color: #111827; }
.lg-print button:hover { background: #f3f4f6; }
.lg-print-logo { display: none; }
@media print {
  .sc-nav, .sc-foot, .lg-toc, .lg-print { display: none !important; }
  body { padding-top: 0 !important; }
  .lg-hero { background: none !important; color: #000; padding: 0 0 12px; }
  .lg-hero h1, .lg-hero p, .lg-meta, .lg-meta b, .lg-hero .lg-kicker { color: #000 !important; }
  .lg-print-logo { display: block; height: 28px; margin-bottom: 18px; }
  .lg-wrap { display: block; padding: 0; }
}
