/* legal.css — long text set inside the crate. Linked after site.css, so it may override it.
   allop opening label (site.css) · allbd body row · allcl contents list · allar article panel
   allsn one numbered section · allto hand-off panel · allta table box */
.allop { min-height: 0; }
.alllb > div { min-width: 0; }
.alllb h1 + p { margin-top: .75rem; }
.allds dd { overflow-wrap: anywhere; }

/* allbd — body row: contents beside the text, right of the rail like every slip on this page */
.allbd, .allto { margin-left: calc(var(--rail-width) + var(--crate-gap)); }
.allbd { align-items: start; }
.allbd > .allcl { grid-column: 1 / 4; position: sticky; top: 6.5rem; }
.allbd > .allar { grid-column: 4 / -1; counter-reset: allsn; }

/* allcl — the contents list, numbered to match the sections */
.allcl ol { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: allcl; }
.allcl li { counter-increment: allcl; border-top: var(--hairline) solid var(--brass); }
.allcl li:first-child { border-top: 0; }
.allcl a {
  display: flex; gap: .75rem; align-items: baseline; min-height: 2.75rem; padding: .55rem 0;
  font: 400 .95rem/1.4 var(--packing-slip); text-decoration: none;
}
.allcl a::before { content: counter(allcl, decimal-leading-zero); color: var(--brass); font: 800 1.25rem/1 var(--stencil); }
.allcl a:hover, .allcl a:focus-visible { text-decoration: underline double var(--brass); text-underline-offset: .2em; }

/* allsn — a numbered section; a double brass rule opens each one */
.allsn { counter-increment: allsn; margin-top: 1.9rem; padding-top: 1.25rem; border-top: .25rem double var(--brass); }
.allsn:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.allsn h2::before { content: counter(allsn, decimal-leading-zero); display: block; margin-bottom: .2rem; color: var(--brass); font: 800 2rem/1 var(--stencil); }
.allsn h2 { margin-bottom: .8rem; }
.allsn p, .allsn li { max-width: 64ch; font-size: 1.0625rem; line-height: 1.68; }
.allsn ul { margin: 0 0 1em; padding-left: 1.25rem; }
.allsn li::marker { color: var(--brass); }
.allsn a { text-decoration-color: var(--brass); }
.allsn .allte { text-decoration-color: var(--brass); }

/* allta — a table in its own scrolling box, rows never under .9rem */
.allta { overflow-x: auto; margin: 0 0 1em; box-shadow: inset 0 0 0 var(--hairline) var(--brass); }
.allta table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.allta th, .allta td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: var(--hairline) solid var(--brass); overflow-wrap: anywhere; }
.allta th { color: var(--brass); font-weight: 400; }
.allta tr:last-child td { border-bottom: 0; }

/* allto — the hand-off at the foot: where to go next */
.allto { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; }
.allto .allhs { flex: 1 1 16rem; }
.allto .allbt { flex: 0 1 auto; }

code { font: inherit; color: var(--brass); overflow-wrap: anywhere; }

/* allpr — on this page of long reading the offer is not pinned at desk widths: it takes its own
   place in the flow, a last slip under the card, right of the rail like every slip here, so no
   line of the terms ever passes under the stamp's letters
   (the phone band keeps its slim pinned form and its ground from site.css) */
@media (min-width: 56.0625rem) {
  .allpr {
    position: static; box-sizing: border-box; width: auto;
    margin: var(--crate-gap) 0 0 calc(var(--rail-width) + var(--crate-gap));
    flex-direction: row-reverse; align-items: center; gap: 1.5rem;
    padding: 1rem 1.5rem 1rem 2rem;
    background: var(--crate); border: var(--hairline) solid var(--brass);
  }
  .allpw { flex: none; }
  .allpt { flex: 1; width: auto; }
}

@media (max-width: 56rem) {
  .allbd, .allto { margin-left: 0; }
  .allbd > .allcl, .allbd > .allar { grid-column: 1 / -1; }
  .allbd > .allcl { position: static; }
  .allsn p, .allsn li { font-size: 1rem; }
  .allto .allbt { width: 100%; }
}
