/* Legal pages (/privacy, /terms, /accessibility). Same dark burgundy world
   as the album, but readability comes first: plain text column, generous
   line-height, no cards. */
.legal-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(10,6,5,0.6), rgba(10,6,5,0.86)),
    url("../assets/images/section-bg-mobile.webp") center / cover no-repeat;
}
@media (min-width: 900px) {
  .legal-bg {
    background:
      linear-gradient(rgba(10,6,5,0.6), rgba(10,6,5,0.86)),
      url("../assets/images/section-bg-desktop.webp") center / cover no-repeat;
  }
}

.legal {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem calc(4rem + var(--safe-b));
}

.legal-back {
  display: inline-block;
  padding: 0.6rem 0.1rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: rgba(183,169,143,0.4);
  text-underline-offset: 4px;
}
.legal-back:hover,
.legal-back:focus-visible { color: var(--cream); }
.legal-back-bottom { margin-top: 2.5rem; }

.legal h1 {
  margin: 1.5rem 0 1.6rem;
  font-family: var(--font-hand);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.3;
  color: var(--cream);
}
.legal h2 {
  margin: 2.6rem 0 0.9rem;
  font-family: var(--font-hand);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--cream);
}
.legal p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink);
  font-weight: 400;
}
.legal a { color: var(--gold); text-underline-offset: 3px; }
.legal a:hover,
.legal a:focus-visible { color: var(--cream); }
.legal-updated {
  margin-top: 2.6rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.legal .legal-contact {
  font-style: normal;
  margin: 0 0 1.4rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid rgba(233,221,200,0.25);
}
.legal .legal-contact p { margin: 0 0 0.35rem; }
.legal .legal-contact bdi { unicode-bidi: isolate; }

/* /stats */
.stats { max-width: 46rem; }
.stats select {
  font: inherit;
  color: var(--ink);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(233,221,200,0.25);
  padding: 0.35rem 0.6rem;
}
.stats-totals { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.stats-totals li { font-size: 1.05rem; line-height: 2; color: var(--ink); }
.stats-totals strong { color: var(--gold); font-size: 1.5rem; font-weight: 500; margin-inline-end: 0.4rem; }
.stats-note { font-size: 0.9rem; color: var(--ink-dim); margin: 0 0 0.6rem; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.stats-table th,
.stats-table td {
  padding: 0.5rem 0.4rem;
  text-align: start;
  border-bottom: 1px solid rgba(233,221,200,0.16);
  font-weight: 400;
}
.stats-table thead th { color: var(--ink-dim); font-size: 0.85rem; }
.stats-table tbody th { color: var(--cream); }
.stats-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .stats-table { display: block; overflow-x: auto; }
}
.legal-alt { margin-inline-start: 1.2rem; }
.stats-section { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(233,221,200,0.25); }
