/* ==========================================================================
   Legal document pages (Terms, Privacy, Refund, AUP). Plain readable prose
   rather than the marketing card layouts the rest of the theme uses — these
   are contracts, not sales pages.
   ========================================================================== */

/* Sits inside the dark hero alongside the centred title and breadcrumb.
   It previously inherited text-align:start and --color-text - a grey meant
   for light backgrounds - which measured about 4:1 against black, under the
   4.5:1 AA minimum, at roughly 9px. */
.legal-updated {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.3rem;
  text-align: center;
  margin-top: 0.8rem;
}

.legal-prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-primary);
  line-height: 1.75;
  font-size: 1.05rem;
}

.legal-prose h2 {
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  scroll-margin-top: 100px;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

/* Sub-headings within a numbered section (2.1, 2.2, 2.3). Deliberately
   below h2 in both size and weight: without this they inherit Bootstrap's
   default and render larger than the section heading they sit under. */
.legal-prose h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.7rem;
  font-size: 1.22rem;
  font-weight: 600;
  scroll-margin-top: 100px;
}

.legal-prose p {
  margin-bottom: 1.1rem;
}

.legal-prose strong {
  font-weight: 700;
}

.legal-prose a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  text-decoration: none;
}

.legal-prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.legal-prose li {
  margin-bottom: 0.5rem;
}

.legal-hr {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: 2rem 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-16);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-light-gray);
  vertical-align: top;
}

.legal-table th {
  background: #f8f8f8;
  font-weight: 700;
  white-space: nowrap;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Quick-jump list of every legal document, shown on each one so a reader
   does not have to go back to the footer to reach a sibling policy. */
.legal-siblings {
  max-width: 820px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-light-gray);
}

.legal-siblings h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legal-siblings ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.legal-siblings a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-siblings a.is-current {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 767px) {
  .legal-prose {
    font-size: 1rem;
  }
  .legal-table th,
  .legal-table td {
    padding: 0.6rem 0.75rem;
  }
}
