/* ==========================================================================
   The policy pages — terms, privacy, refunds, cancellation

   These are the pages somebody reads when they are worried, or when an
   underwriter is deciding whether to approve the account. So they get the
   brand's materials and none of its theatrics: no reveals, no gradients
   sweeping across anything, no carousel. One column, generous leading, and
   type big enough to read a contract in.

   The measure is held near 68 characters. Karla is the body face here even
   though Playfair carries the headings, because nobody should read nine
   screens of a privacy policy set in a display serif.
   ========================================================================== */

body.legal {
  background: var(--black-page);
  color: var(--bone-body);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* --- Bar ------------------------------------------------------------------
   A plain return to the site. Not the full topbar: these pages have no
   sections to jump between, and the scroll-spy would have nothing to spy. */
.legalbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  padding: var(--space-18) var(--gutter);
  background: rgba(6, 5, 4, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 169, 58, .16);
}

.legalbar__wordmark {
  display: flex;
  align-items: baseline;
  gap: var(--space-10);
  font-family: var(--font-display);
  line-height: 1;
  text-decoration: none;
}

.legalbar__name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--bone);
}

.legalbar__divider {
  width: 1px;
  height: 16px;
  align-self: center;
  background: var(--gold-divider);
}

.legalbar__sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--gold-figure);
}

.legalbar__back {
  font-size: 15px;
  color: var(--gold-cta-text);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}

.legalbar__back:hover { color: var(--gold-link-hover); }

/* --- Masthead ------------------------------------------------------------- */
.legal__head {
  padding: var(--space-88) 0 var(--space-44);
  border-bottom: 1px solid rgba(217, 169, 58, .16);
}

/* One measure, shared. The masthead, the prose and the sibling links all
   resolve to the same content width, so their left edges line up down the
   page — the gutter is inside the box rather than outside it, which is what
   kept the title 20px off the paragraphs before. */
.legal__head-inner,
.legal__body,
.legal__siblings {
  max-width: calc(72ch + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.legal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--bone);
}

.legal__meta {
  margin: var(--space-18) 0 0;
  font-size: 15px;
  color: var(--bone-mute);
}

.legal__standfirst {
  margin: var(--space-22) 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--bone-body);
}

/* --- Body ----------------------------------------------------------------- */
.legal__body {
  padding-top: var(--space-56);
  padding-bottom: var(--space-100);
  font-size: 17px;
  line-height: 1.78;
}

.legal__body h2 {
  margin: var(--space-56) 0 var(--space-16);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bone);
}

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

.legal__body h3 {
  margin: var(--space-34) 0 var(--space-10);
  font-size: 17px;
  font-weight: 600;
  color: var(--bone-label);
}

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

.legal__body ul,
.legal__body ol {
  margin: 0 0 var(--space-18);
  padding-left: var(--space-24);
}

.legal__body li { margin-bottom: var(--space-10); }

.legal__body a {
  color: var(--gold-cta-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 169, 58, .35);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}

.legal__body a:hover {
  color: var(--gold-link-hover);
  border-bottom-color: var(--gold-divider);
}

.legal__body b, .legal__body strong {
  color: var(--bone);
  font-weight: 600;
}

.legal__body address {
  font-style: normal;
  line-height: 1.8;
}

/* --- The callout ----------------------------------------------------------
   For the handful of statements that matter more than the paragraphs round
   them: the cancellation right, the "we cannot remove accurate information"
   admission. A gold left edge, nothing else. */
.legal__key {
  margin: 0 0 var(--space-26);
  padding: var(--space-22) var(--space-26);
  background: rgba(217, 169, 58, .05);
  border-left: 2px solid var(--gold);
}

.legal__key > :last-child { margin-bottom: 0; }

/* --- Definition rows ------------------------------------------------------
   Used by the privacy page: what is collected against why. Reads better as
   paired rows than as a table on a phone. */
.legal__rows {
  margin: 0 0 var(--space-26);
  border-top: 1px solid rgba(217, 169, 58, .16);
}

.legal__row {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: var(--space-24);
  padding: var(--space-18) 0;
  border-bottom: 1px solid rgba(217, 169, 58, .16);
}

.legal__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--bone-label);
}

.legal__row dd {
  margin: 0;
  color: var(--bone-mute);
}

@media (max-width: 620px) {
  .legal__row { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* --- Where to go next ----------------------------------------------------- */
.legal__siblings { padding-bottom: var(--space-100); }

.legal__siblings-head {
  margin: 0 0 var(--space-16);
  font-size: 15px;
  font-weight: 600;
  color: var(--bone);
}

.legal__siblings ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10) var(--space-24);
}

.legal__siblings a {
  font-size: 15px;
  color: var(--bone-mute);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}

.legal__siblings a:hover { color: var(--gold-link-hover); }

/* --- Focus ---------------------------------------------------------------- */
.legal a:focus-visible,
.legalbar a:focus-visible,
.sitefoot a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
