/* legal.css: long text in the raspberry column. Loaded after site.css, so it only adds. */

/* caf-law = body class of a legal or seller page: clauses stop just under the top when jumped to */
.caf-law { scroll-padding-block-start: 1rem; }

/* caf-upd = updated: the rounded "last updated" line under the title */
.caf-upd {
  display: inline-block;
  margin-block: 1.25rem 0;
  padding: 0.375rem 1rem;
  border: var(--thickness-of-an-outline) solid currentColor;
  border-radius: var(--corner-of-a-pill);
  font-size: 1rem;
  line-height: 1.3;
}

/* caf-cnt = contents: the numbered list of clauses; add caf-pan for the aubergine panel */
.caf-cnt { margin-block-start: 1.5rem; }
.caf-cnt ol {
  counter-reset: caf-entry;
  margin: 0;
  padding: 0;
  list-style: none;
}
.caf-cnt li { counter-increment: caf-entry; }
.caf-cnt a {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  min-block-size: 2.75rem;
  padding-block: 0.5rem;
  border-block-end: var(--thickness-of-an-outline) dotted currentColor;
  text-decoration: none;
}
.caf-cnt li:last-child a { border-block-end: 0; }
.caf-cnt a::before {
  content: counter(caf-entry, decimal-leading-zero);
  flex: none;
  min-inline-size: 2ch;
}
.caf-cnt a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.caf-cnt a:focus-visible { outline-offset: 0.125rem; border-radius: 0.5rem; }

/* caf-doc = the document: starts the clause count; caf-cls = clause, one numbered section */
.caf-doc { counter-reset: caf-clause; margin-block-start: 2.5rem; }
.caf-cls { counter-increment: caf-clause; scroll-margin-block-start: 1rem; }
.caf-cls + .caf-cls { margin-block-start: 2.5rem; }
.caf-cls > * + * { margin-block-start: var(--space-between-paragraphs); }
.caf-cls p { margin-block-end: 0; }
.caf-txt .caf-cls h2 {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-block: 0 0.875rem;
}
.caf-cls h2::before {
  content: counter(caf-clause) ".";
  flex: none;
}
.caf-cls code {
  padding: 0.0625em 0.4em;
  border-radius: 0.5rem;
  background: var(--colour-of-the-pills);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.caf-cls .caf-pil { margin-block-start: 0.25rem; }

@media (max-width: 40rem) {
  .caf-txt .caf-cls h2 { gap: 0.5rem; }
}
