/* legal.css: the four legal documents.
 *
 * canon.css already carries the register's type, colour, topbar and footer.
 * This sheet adds only what a legal document needs and the essays do not: a
 * dateline, a numbered contents block, and numbered lists that read as clauses
 * rather than as prose bullets.
 *
 * Loaded AFTER canon.css and touch.css so the 44px coarse-pointer floor in
 * touch.css is not overridden here. Nothing in this file sets a tap target.
 */

.lg-dates {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-ghost);
}
.lg-dates strong { font-weight: 600; }

/* Contents. A legal document a reader cannot navigate is a document nobody
   reads past clause three. */
.lg-toc {
  margin: 2rem auto 0;
  padding: 1.2rem 1.4rem 1.4rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 1px;
  max-width: var(--measure, 40rem);
}
.lg-toc h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--gold-deep);
}
.lg-toc ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 640px) { .lg-toc ol { columns: 1; } }
.lg-toc li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.lg-toc a { text-decoration: none; border-bottom: 1px solid transparent; }
.lg-toc a:hover { border-bottom-color: var(--gold); }

/* Clause lists. */
.lg-list {
  margin: 0.9rem 0 0;
  padding-left: 1.5rem;
}
.lg-list > li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

/* The all-caps blocks that a disclaimer and a liability cap have to be are
   hard to read at body weight. Give them room and a slightly smaller size so
   they read as a distinct register rather than as shouting in the middle of a
   paragraph. */
.lg-doc .cn-essay p strong { font-weight: 600; }

/* The index of the four documents. */
.lg-index {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  max-width: var(--measure, 40rem);
}
@media (min-width: 720px) { .lg-index { grid-template-columns: 1fr 1fr; } }
.lg-card {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: 1px;
  text-decoration: none;
  transition: border-color 200ms ease;
}
.lg-card:hover { border-color: var(--gold); }
.lg-card strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.lg-card span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-subtle);
}

@media (prefers-reduced-motion: reduce) {
  .lg-card, .lg-toc a { transition: none; }
}
