/*
 * THE NINE LEGAL POLICIES — /legal/… (owner ruling J-67, Run 67).
 *
 * THIS SHEET STATES NO TYPOGRAPHY. The markup carries the v4.0 role classes on
 * the title, the last-updated line and the body wrapper; the clause headings
 * and paragraphs inside the shipped body inherit from the body wrapper's role.
 * A font-size here would load after fonts.css and silently beat the role class
 * on the same element, which is the exact failure v4.0 is closed against.
 *
 * NO COLOUR VALUE EITHER — governed tokens only. The ground is already
 * --k-surface-page on every route since J-51 and is not restated here.
 *
 * THE MEASURE IS THE POINT. Eleven and a half thousand words of contract are
 * unreadable at full width: the body is held to --k-measure, the same text
 * measure every other reading surface uses (LOCKED, J-24.1). The Cookie
 * Policy's table is the one thing allowed out of it, because a five-column
 * table squeezed to the prose measure is worse than one that scrolls.
 *
 * THE TABLE SCROLLS, AND SAYS SO TO ASSISTIVE TECH. .k-legal__tablewrap is a
 * focusable scroll container with a role and a label, so a keyboard user can
 * reach and scroll it. A plain overflow container is reachable by mouse and
 * invisible to the keyboard, which the published Accessibility Statement §3(c)
 * commits against.
 */

.k-legal {
  display: block;
  padding-inline: var(--k-gutter-mobile);
  padding-block: var(--k-space-7) var(--k-space-9);
  margin-inline: auto;
  max-width: 1400px;
}

.k-legal__masthead {
  max-width: var(--k-measure);
  margin-block-end: var(--k-space-6);
  padding-block-end: var(--k-space-5);
  border-block-end: var(--k-border-hairline);
}

.k-legal__title {
  margin: 0 0 var(--k-space-3);
  color: var(--k-ink);
  text-wrap: balance;
}

.k-legal__updated {
  margin: 0;
  color: var(--k-graphite);
}

/* ----------------------------------------------------------------------
   THE BODY
   ---------------------------------------------------------------------- */

.k-legal__body {
  max-width: var(--k-measure);
  color: var(--k-graphite);
}

.k-legal__body h2 {
  margin: var(--k-space-7) 0 var(--k-space-4);
  color: var(--k-ink);
}

.k-legal__body h2:first-child {
  margin-block-start: 0;
}

.k-legal__body p {
  margin: 0 0 var(--k-space-4);
}

.k-legal__body a {
  color: var(--k-ink);
  text-decoration: underline;
  text-underline-offset: var(--k-space-1);
}

.k-legal__body a:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

.k-legal__body strong {
  color: var(--k-ink);
}

/* A lettered sub-clause: (a), (b), (c). Indented, never renumbered. */
.k-legal__sub {
  padding-inline-start: var(--k-space-5);
}

/* The Returns Policy's model cancellation form — the statutory wording, set
   apart from the clauses around it so it reads as the form it is. */
.k-legal__form {
  margin: 0 0 var(--k-space-5);
  padding: var(--k-space-5);
  border: var(--k-border-hairline);
}

.k-legal__form p:last-child {
  margin-block-end: 0;
}

/* ----------------------------------------------------------------------
   THE COOKIE TABLE
   ---------------------------------------------------------------------- */

.k-legal__tablewrap {
  margin: 0 0 var(--k-space-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.k-legal__tablewrap:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

.k-legal__table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.k-legal__table caption {
  text-align: start;
  padding-block-end: var(--k-space-3);
  color: var(--k-graphite);
}

.k-legal__table th,
.k-legal__table td {
  padding: var(--k-space-3);
  border-block-end: var(--k-border-hairline);
  vertical-align: top;
  text-align: start;
}

.k-legal__table thead th {
  color: var(--k-ink);
  border-block-end: var(--k-border-hairline);
  white-space: nowrap;
}

.k-legal__table tbody th {
  color: var(--k-ink);
  white-space: nowrap;
}

/* ----------------------------------------------------------------------
   992
   ---------------------------------------------------------------------- */

@media (min-width: 992px) {
  .k-legal {
    padding-inline: var(--k-gutter-desktop);
    padding-block: var(--k-space-9) var(--k-space-10);
  }

  .k-legal__masthead {
    margin-block-end: var(--k-space-7);
  }

  /* The table may use the full content column; the prose stays at the measure. */
  .k-legal__tablewrap {
    max-width: none;
    width: min(100%, 1100px);
  }
}
