/* Styling of the legal pages alone: their header is a deep panel and the reading column (decision 389) */
/* Loads after site.css on this page alone so the shared styling is lighter for the other pages */
/* The two legal pages: one reading column at a comfortable width and clear section headings */
.legal {
  padding-block: var(--sp-8) calc(var(--sp-8) * 2);
}

.legal-body {
  max-width: 46rem;
}

.legal-body h1 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-2xl);
}

.legal-date {
  margin: 0 0 var(--sp-6);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.legal-body h2 {
  margin: var(--sp-8) 0 var(--sp-2);
  font-size: var(--fs-lg);
}

.legal-body p,
.legal-body li {
  line-height: 1.9;
}

.legal-body ul {
  list-style: disc;
  margin: 0 0 var(--sp-4);
  padding-inline-start: var(--sp-6);
}

.legal-body a {
  display: inline-block;
  margin-block: calc(-1 * var(--sp-3));
  padding-block: var(--sp-3);
  color: var(--primary-text);
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: var(--sp-1);
}

.legal-body section:target h2 {
  color: var(--primary-text);
}

/* Legal pages: the title and the update date in a deep panel */
.legal-head {
  margin-block-end: var(--sp-8);
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--r-xl);
  background-color: var(--hero-deep);
  background-image:
    radial-gradient(60% 90% at 100% 0%, var(--hero-glow-1), transparent 72%),
    linear-gradient(180deg, var(--hero-deep), var(--hero-deep-2));
  color: var(--on-deep);
}

.legal-head h1 {
  color: var(--on-deep);
}

.legal-head .legal-date {
  margin: 0;
  color: var(--on-deep-muted);
}
