/* Long reading for the legal and seller pages: .sheet, its head, its contents (.sheet-count) and numbered body. */
.sheet {
  max-width: var(--measure-page); margin-inline: auto;
  padding: calc(var(--measure-edge) + 1.5rem) var(--measure-edge) calc(var(--measure-band) + 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--measure-gap) calc(var(--measure-gap) * 2);
}
@container (min-width: 56rem) {
  .sheet { grid-template-columns: 4fr 8fr; align-items: start; }
  .sheet-head { grid-column: 1 / -1; }
}
.sheet-head .spike { display: block; width: min(12rem, 60%); height: 0.85rem; margin-bottom: 1.2rem; }
.sheet-head h1 { font-size: var(--step-h2); max-width: 22ch; margin-bottom: 0.3em; }
.sheet-dated { font-weight: 600; margin-bottom: 0.6em; }
.sheet-lead { font-size: calc(var(--step-body) * 1.15); max-width: 42rem; margin: 0; }

/* Contents: numbered bare links, no box */
.sheet-count-title { margin: 0 0 0.4rem; font: 800 var(--step-h3)/1.1 var(--face-display); }
.sheet-count ol { margin: 0; padding: 0; list-style: none; counter-reset: entry; }
.sheet-count li { counter-increment: entry; }
.sheet-count a {
  display: flex; align-items: center; gap: 0.8rem; min-height: 2.75rem;
  text-decoration: none; transition: color var(--step-turn) ease-out;
}
.sheet-count a::before {
  content: counter(entry, decimal-leading-zero);
  min-width: 1.8rem; font: 800 0.92rem/1 var(--face-display);
}
.sheet-count a:hover { text-decoration: underline; text-decoration-color: var(--tone-tape); text-decoration-thickness: 0.16em; }

/* Body: each section opens at a strip of tape and a counted heading */
.sheet-body { counter-reset: clause; max-width: 50rem; }
.sheet-body section { counter-increment: clause; padding-bottom: 1.8rem; }
.sheet-body section::before {
  content: ""; display: block; width: 1.9rem; height: 0.5rem; margin-bottom: 0.9rem;
  background: var(--tone-tape); box-shadow: inset 0 0 0 0.08rem var(--tone-soil);
  transform: rotate(-4deg);
}
.sheet-body h2 {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline;
  font-size: var(--step-h3); margin-bottom: 0.6em;
}
.sheet-body h2::before { content: counter(clause, decimal-leading-zero); }
.sheet-body p { max-width: 42rem; }
.sheet-body p:last-child { margin-bottom: 0; }
.sheet-body code {
  font: 600 0.95em/1.4 var(--face-text); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--tone-tape); text-underline-offset: 0.25em;
}

/* The bare button that reopens the cookie notice */
.reopen-cue {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 2.75rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 800 var(--step-h3)/1.15 var(--face-display); text-align: left;
  text-decoration: underline; text-decoration-color: var(--tone-tape);
  text-decoration-thickness: 0.12em; text-underline-offset: 0.2em;
}
.reopen-cue:hover .spike { transform: rotate(-4deg) translateX(0.3em); }

@media (max-width: 40rem) {
  .sheet { padding-top: calc(var(--measure-edge) + 2.5rem); }
  .sheet-body h2 { grid-template-columns: 2.4rem minmax(0, 1fr); }
}
