/* ==========================================================================
   DREAM 111 - LEGAL PAGES
   Shared by terms.html, privacy.html and disclaimer.html.
   Loads after the design system and site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE HEAD
   -------------------------------------------------------------------------- */

.pagehead {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  background-image: var(--grad-spotlight);
  border-bottom: var(--bw-hairline) solid var(--border-subtle);
}
.pagehead__title { max-width: 20ch; margin-top: var(--s-4); }
.pagehead__title em { font-style: italic; color: var(--fg-gold); }

.crumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-caption);
  color: var(--fg-subtle);
  margin-bottom: var(--s-5);
}
.crumb a { color: var(--fg-subtle); text-decoration: none; }
.crumb a:hover { color: var(--fg-gold); }

.updated {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: var(--s-2) var(--s-4);
  border: var(--bw-hairline) solid var(--border-gold);
  border-radius: var(--r-pill);
  font-family: var(--font-numeric);
  font-size: var(--fs-caption);
  color: var(--fg-gold);
}

/* --------------------------------------------------------------------------
   LAYOUT
   Contents rail on the left, the document on the right.
   -------------------------------------------------------------------------- */

.legal { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 940px) {
  .legal { grid-template-columns: 240px 1fr; gap: var(--s-16); }
}

.toc { position: static; }
@media (min-width: 940px) {
  .toc {
    position: sticky;
    top: calc(var(--h-header) + var(--s-6));
    max-height: calc(100vh - var(--h-header) - var(--s-12));
    overflow-y: auto;
  }
}
.toc h2 {
  font-family: var(--font-body);
  font-stretch: normal;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--fg-gold);
  margin-bottom: var(--s-4);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: var(--bw-thick) solid transparent;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
  text-decoration: none;
  transition: var(--t-colors);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-numeric);
  font-size: var(--fs-micro);
  color: var(--fg-subtle);
  flex: none;
}
.toc a:hover {
  background: var(--bg-hover);
  border-left-color: var(--border-gold-strong);
  color: var(--fg-strong);
}

/* --------------------------------------------------------------------------
   DOCUMENT
   -------------------------------------------------------------------------- */

.doc { max-width: 72ch; }
.doc__intro {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--fg-default);
  padding-bottom: var(--s-8);
  border-bottom: var(--bw-hairline) solid var(--border-subtle);
}
.doc__intro p + p { margin-top: var(--s-4); }

.clause { padding-top: var(--s-10); scroll-margin-top: calc(var(--h-header) + var(--s-6)); }
.clause h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  font-size: var(--fs-h3);
  margin-bottom: var(--s-4);
}
.clause h2::before {
  content: attr(data-n);
  font-family: var(--font-numeric);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--fg-gold);
  flex: none;
}
.clause h3 {
  font-family: var(--font-body);
  font-stretch: normal;
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-normal);
  margin: var(--s-6) 0 var(--s-2);
}
.clause p { color: var(--fg-muted); line-height: var(--lh-relaxed); }
.clause p + p { margin-top: var(--s-4); }

.clause ul {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.clause ul li {
  display: flex;
  gap: var(--s-3);
  color: var(--fg-muted);
  line-height: var(--lh-normal);
}
.clause ul li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: var(--r-circle);
  background: var(--brand);
}

/* --------------------------------------------------------------------------
   CONTACT BLOCK
   -------------------------------------------------------------------------- */

.legal-contact {
  margin-top: var(--s-12);
  padding: var(--s-7);
  border: var(--bw-hairline) solid var(--border-gold);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 240px at 12% 0%, var(--a-gold-16), transparent 70%),
    var(--bg-surface);
}
.legal-contact__nums {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5) var(--s-8);
  margin-top: var(--s-5);
}
.legal-contact__nums .lbl {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s-1);
}
.legal-contact__nums a {
  font-family: var(--font-numeric);
  font-size: var(--fs-body-lg);
  color: var(--fg-gold);
  text-decoration: none;
  white-space: nowrap;
}
.legal-contact__nums a:hover { color: var(--c-gold-200); }

/* Cross-links to the other two documents. */
.legal-also {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: var(--bw-hairline) solid var(--border-subtle);
}
