/* Mosey legal pages — document typography.
   Loaded after css/styles.css, which supplies every token used here. Nothing in
   this file introduces a colour, a font or a radius of its own, so a change to
   the brand tokens in styles.css carries through to these pages automatically.

   No third-party request is made from this file. The site's Cookie Policy states
   that findmosey.com makes no third-party requests at all, so a webfont import,
   an icon CDN or a remote background image added here would make that statement
   untrue. Keep everything local. */

/* ---------- Page frame ---------- */

.legal-page {
  padding: 56px 0 96px;
}

.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Breadcrumb ---------- */

.legal-crumb {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  /* --ink-faint measures 2.9:1 against the page background, below AA. Every
     colour choice on these pages is set for 4.5:1 or better, because the
     Accessibility Statement is published among them and a page that fails the
     standard it describes is worse than no page. */
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.legal-crumb a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--divider);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.legal-crumb a:hover {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}

.legal-crumb__sep {
  padding: 0 8px;
  color: var(--divider);
}

/* ---------- Document header ---------- */

.legal-head {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.legal-head__eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.legal-head__title {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.legal-head__standfirst {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}

.legal-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.legal-head__meta dt {
  font-family: var(--font-display);
  font-weight: 700;
  display: inline;
}

.legal-head__meta dd {
  display: inline;
  margin: 0 0 0 6px;
  color: var(--ink-muted);
}

.legal-head__meta div {
  display: inline-block;
}

/* ---------- Status notice ---------- */

.legal-notice {
  border: 1px solid var(--accent);
  background: var(--accent-faint);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 40px;
}

.legal-notice__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-notice p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.legal-notice p + p {
  margin-top: 10px;
}

/* ---------- Document body ---------- */

.legal-body {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink);
}

.legal-body h2 {
  font-size: 23px;
  margin: 46px 0 14px;
  scroll-margin-top: 92px;
}

.legal-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 10px;
  scroll-margin-top: 92px;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--accent-text);
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--accent-text);
  text-decoration-thickness: 2px;
}

.legal-body strong {
  font-weight: 600;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--divider);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--accent-faint);
}

.legal-body blockquote {
  margin: 0 0 20px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--divider);
  color: var(--ink-muted);
}

/* ---------- Footer of a document ---------- */

.legal-foot {
  border-top: 1px solid var(--divider);
  margin-top: 56px;
  padding-top: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}

.legal-foot p + p {
  margin-top: 10px;
}

.legal-foot a {
  color: var(--ink-muted);
}

/* ---------- Index of documents ---------- */

.legal-index {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.legal-index__group-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 40px 0 4px;
}

.legal-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.legal-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.legal-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}

.legal-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.legal-card__status {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
}

/* A document that is live rather than pending. Swap the class on publication. */
.legal-card__status--live {
  color: var(--ink-muted);
  background: transparent;
  border-color: var(--divider);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .legal-page {
    padding: 36px 0 72px;
  }

  .legal-head__title {
    font-size: 31px;
  }

  .legal-head__standfirst {
    font-size: 16.5px;
  }

  .legal-body {
    font-size: 16px;
  }

  .legal-body h2 {
    font-size: 20px;
    margin-top: 38px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-crumb,
  .skip-link {
    display: none;
  }

  .legal-page {
    padding: 0;
  }

  .legal-body a {
    color: inherit;
  }
}
