/* Terms: one page of plain words for everything Hello, I'm Lee, LLC makes. The short version first (what these
   cover, four promises), then the full text with its contents held beside it and an "In short" on every section.
   Patterns after MasterClass (held contents), Bonsai (the plain summary beside the clause) and Railway (the
   don'ts as tiles). Colour is the site's roles only, so dark mode comes with it. */
.terms-page { padding: clamp(120px, 14vw, 200px) var(--gutter) 0; background: var(--paper); color: var(--ink); }
.terms-page :where(h1, h2, h3, p, ul, ol) { margin: 0; }
.terms-label { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.terms-hero h1 { margin-top: 20px; max-width: 13ch; font-weight: 400; font-size: clamp(48px, 7.6vw, 132px); line-height: .95; letter-spacing: -.035em; }
.terms-hero h1 span { color: var(--ink-soft); }
.terms-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; color: var(--ink-soft); font-size: 16px; }

.terms-short { margin-top: clamp(64px, 8vw, 112px); }
.terms-covers, .terms-promises { display: grid; gap: var(--gap); padding: 0; list-style: none; }
.terms-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.terms-covers li { padding: 26px 26px 24px; border: 1px solid var(--rule); border-radius: var(--radius-card); }
.terms-covers .terms-label { display: block; margin-bottom: 22px; }
.terms-covers h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.terms-covers p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.terms-promises { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--gap); }
.terms-promises li { padding: 24px; border-radius: var(--radius-card); background: var(--ground); color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.terms-promises b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 18px; font-weight: 500; }

.terms-full { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.terms-toc { position: sticky; top: 112px; align-self: start; }
.terms-toc ol { margin-top: 18px; padding: 0; list-style: none; counter-reset: t; }
.terms-toc li { counter-increment: t; }
.terms-toc a { display: flex; gap: 12px; padding: 6px 0; color: var(--ink-soft); text-decoration: none; font-size: 15px; line-height: 1.35; }
.terms-toc a::before { content: counter(t, decimal-leading-zero); font: 500 12px/1.9 var(--mono); }
.terms-toc a[aria-current="true"] { color: var(--ink); }
.terms-toc a[aria-current="true"]::before { color: var(--accent-ink); }
@media (hover: hover) { .terms-toc a:hover { color: var(--ink); } }
.terms-jump { display: none; }

.terms-body { max-width: 780px; counter-reset: s; }
.terms-clause { counter-increment: s; padding-bottom: clamp(48px, 6vw, 72px); scroll-margin-top: 112px; }
.terms-clause + .terms-clause { padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--rule); }
.terms-clause h2 { display: flex; gap: 16px; align-items: baseline; margin-bottom: 22px; font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.terms-clause h2::before { content: counter(s, decimal-leading-zero); flex: none; font: 600 13px/1 var(--mono); letter-spacing: .08em; color: var(--accent-ink); transform: translateY(-5px); }
.terms-clause h3 { margin: 30px 0 6px; font-size: 19px; font-weight: 500; }
.terms-clause p, .terms-clause li { color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.terms-clause p + p { margin-top: 14px; }
.terms-clause ul { margin-top: 4px; padding-left: 20px; }
.terms-clause li + li { margin-top: 8px; }
.terms-clause strong { color: var(--ink); font-weight: 500; }
.terms-clause a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.terms-gist { margin-bottom: 26px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 18px; }
.terms-gist .terms-label { display: block; margin-bottom: 8px; color: var(--accent-ink); }
.terms-clause .terms-gist p { color: var(--ink); font-size: 17px; line-height: 1.55; }
.terms-clause .terms-donts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.terms-clause .terms-donts li { margin: 0; padding: 15px 18px; border-radius: 14px; background: var(--ground); color: var(--ink); font-size: 16px; line-height: 1.45; }
.terms-changes { padding: 0; list-style: none; margin-top: 20px; }
.terms-clause .terms-changes li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); }
.terms-changes time { font: 500 15px/1.65 var(--mono); color: var(--ink-soft); }
.terms-mail { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; text-decoration: none; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .terms-mail { transition: transform var(--dur-press) var(--ease); } .terms-mail:active { transform: scale(.97); } }

@media (max-width: 1023px) {
  .terms-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms-full { grid-template-columns: minmax(0, 1fr); }
  .terms-toc { display: none; }
  .terms-jump { display: block; margin-bottom: 40px; border: 1px solid var(--rule); border-radius: 18px; }
  .terms-jump summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 500; }
  .terms-jump summary::-webkit-details-marker { display: none; }
  .terms-jump summary::after { content: "+"; font-size: 22px; color: var(--ink-soft); }
  .terms-jump[open] summary::after { content: "\2212"; }
  .terms-jump ol { padding: 0 20px 12px 40px; }
  .terms-jump a { display: block; padding: 8px 0; color: var(--ink-soft); text-decoration: none; }
}
@media (max-width: 719px) {
  .terms-covers, .terms-promises, .terms-clause .terms-donts { grid-template-columns: minmax(0, 1fr); }
  .terms-clause p, .terms-clause li { font-size: 17px; }
  .terms-clause .terms-changes li { grid-template-columns: 1fr; gap: 2px; }
}
/* the site clips sideways overflow with overflow-x:hidden on body, which makes body a scroll box and stops the
   contents from holding their place; clip keeps the same edge without that */
body.page-terms { overflow-x: clip; }
