/* The reading pages: the privacy policy, the terms (/privacy, /terms) and the methodology page.
   Restyled 23 Sep 2026 to the board's look: a white page, the back link as a button, the
   heading above one bordered card that holds the document, and tables like the board's. These
   are platform pages, so the colours are GFE's rather than a shop's. */
body.dashboard {
  background: #ffffff;
}
.legal,
.legal * {
  box-sizing: border-box;
}
.legal {
  --doc-ink: #111111;
  --doc-body: #1f2937;
  --doc-muted: #6b7280;
  --doc-line: #e2e8f0;
  --doc-card-border: color-mix(in srgb, #e2e8f0 88%, #111111);
  --doc-tint: #f2f8fd;
  --doc-accent: #14213d;
  --doc-shadow: 0 1px 3px rgba(20, 33, 61, 0.08), 0 6px 20px rgba(20, 33, 61, 0.09);
  max-width: 52rem;
  margin: 0 auto;
  padding: 32px 24px 72px;
  color: var(--doc-body);
  font-family: 'Segoe UI', Arial, sans-serif;
}
.legal__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--doc-card-border);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: var(--doc-shadow);
  color: var(--doc-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.legal > .back {
  margin-bottom: 32px;
}
.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: var(--doc-ink);
}
.legal .updated {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--doc-muted);
}
.legal .lede {
  margin: 0 0 28px;
  max-width: 44rem;
  font-size: 17px;
  line-height: 1.7;
  color: var(--doc-muted);
}
.legal__body {
  padding: 4px 32px 32px;
  border: 1px solid var(--doc-card-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--doc-shadow);
}
.legal h2 {
  margin: 28px 0 10px;
  padding-top: 26px;
  border-top: 1px solid var(--doc-line);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: var(--doc-ink);
}
.legal__body > h2:first-child {
  margin-top: 0;
  border-top: 0;
}
.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.75;
}
.legal p {
  margin: 0 0 12px;
}
.legal ul,
.legal ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--doc-accent);
  font-weight: 600;
}
.legal .table-scroll {
  margin: 8px 0 14px;
  overflow-x: auto;
}
.legal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.legal th {
  padding: 11px 14px;
  background: var(--doc-tint);
  color: var(--doc-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.legal thead th:first-child {
  border-radius: 8px 0 0 8px;
}
.legal thead th:last-child {
  border-radius: 0 8px 8px 0;
}
.legal td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--doc-line);
  text-align: left;
  vertical-align: top;
}
.legal tbody tr:last-child td {
  border-bottom: 0;
}
.legal .note {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--doc-tint);
  color: var(--doc-muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.legal code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--doc-tint);
  font-size: 0.95em;
}
/* Details only Bundiwal Tech can supply. test-legal-pages prints a note while any remain. */
.legal .fill {
  background: var(--gfe-warning-bg, #fff3cd);
  color: inherit;
}

/* The methodology page's language picker and translated summary. */
.method__lang {
  display: flex;
  align-items: center;
  gap: 10px;
}
.method__lang[hidden] {
  display: none;
}
.method__lang label {
  font-size: 13px;
  color: var(--doc-muted);
}
.method__lang select {
  min-width: 150px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #828997;
  border-radius: 9px;
  background-color: #ffffff;
  color: var(--doc-ink);
  font: inherit;
  font-size: 14px;
}
.method__summary {
  margin: 0 0 24px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--doc-tint);
}
.method__summary[hidden] {
  display: none;
}
.method__summary h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.method__summary .note {
  background: #ffffff;
}
.method__summary .method__below {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--doc-muted);
}

@media (max-width: 600px) {
  .legal {
    padding: 20px 16px 56px;
  }
  .legal__top,
  .legal > .back {
    margin-bottom: 24px;
  }
  .legal__body {
    padding: 2px 18px 22px;
    border-radius: 13px;
  }
  .legal h2 {
    margin-top: 22px;
    padding-top: 20px;
    font-size: 17px;
  }
  .legal p,
  .legal li {
    font-size: 15px;
  }
  .method__summary {
    padding: 18px;
  }
}

/* The credits line (site-credits.css) at the document's width, below the card. */
.legal + .site-credits {
  max-width: calc(52rem - 48px);
  margin: -40px auto 40px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
@media (max-width: 600px) {
  .legal + .site-credits {
    margin: -40px 16px 32px;
  }
}

/* The printable statement opened from the app (HANDOVER.md §4z19 F5). */
@media print {
  .no-print {
    display: none !important;
  }
}
.statement-page .print-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--client-primary, #14213d);
  color: var(--client-on-primary, #ffffff);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.statement-page caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 8px;
}
/* A phone shows each payment as a stacked row instead of a table wider than the screen. */
@media (max-width: 600px) {
  .statement-page thead {
    display: none;
  }
  .statement-page table,
  .statement-page caption,
  .statement-page tbody,
  .statement-page tr,
  .statement-page td {
    display: block;
    width: 100%;
  }
  .statement-page tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--client-line, #e2e8f0);
  }
  .statement-page td {
    padding: 2px 0;
    border: 0;
  }
  .statement-page td::before {
    content: attr(data-label) ': ';
    color: var(--client-muted, #6b7280);
  }
}
