/* Manrope (SIL Open Font License 1.1), served from this site so no visitor request goes to a font service. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/manrope-latin-700.woff2") format("woff2"); }

/*
 * apps.adderleydata.com: support, privacy and terms pages for Returns Clerk.
 * One stylesheet, no scripts. Colours are tokens on :root and dark mode redefines them.
 * The motif is the AD mark: a near-black tile with a short green bar under the letters.
 * The green (#32f58a) appears only on near-black surfaces or as a thin rule.
 * Contrast (WCAG 2.x) is noted next to each text token.
 */

:root {
  /* Brand surfaces, the same in both modes */
  --ink: #17171f;
  --green: #32f58a;          /* 12.4:1 on --ink */
  --on-ink: #f4f4f7;         /* 16.2:1 on --ink */
  --on-ink-soft: #d4d4de;    /* lede on --ink */
  --on-ink-muted: #b9b9c6;   /* 9.2:1 on --ink */
  --on-ink-rule: #4a4a58;    /* decorative ring around the mark */

  /* Page, light */
  --paper: #ffffff;
  --text: #24242e;           /* 15.4:1 on paper */
  --heading: #17171f;        /* 17.8:1 on paper */
  --muted: #5a5a69;          /* 6.8:1 on paper, 6.1:1 on panel */
  --panel: #f3f3f6;
  --rule: #d6d6de;
  --link-line: #0b7d45;      /* link underline, 5.2:1 on paper */
  --note-edge: #17171f;
  --tile: #17171f;
  --tile-ring: transparent;
  --focus: #17171f;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17171f;
    --text: #e8e8ee;         /* 14.6:1 on paper */
    --heading: #f4f4f7;
    --muted: #a9a9b7;        /* 7.7:1 on paper, 6.9:1 on panel */
    --panel: #21212b;
    --rule: #363642;
    --link-line: #32f58a;
    --note-edge: #32f58a;
    --tile: #21212b;
    --tile-ring: #363642;
    --focus: #32f58a;
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding-inline: 2rem;
  }
}

/* Skip link: off screen until it has focus, then over the dark header */

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  background: #ffffff;
  color: #17171f;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  outline: 3px solid var(--green);
  outline-offset: 0;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header and masthead: one near-black band, like the mark's tile */

.site-header,
.masthead {
  --focus: #32f58a;
  --link-line: #32f58a;
  background: var(--ink);
  color: var(--on-ink);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--on-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--on-ink-rule);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--on-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.site-nav a[aria-current="page"] {
  text-decoration-thickness: 3px;
}

.masthead {
  padding-block: 1.75rem 2.75rem;
}

@media (prefers-color-scheme: dark) {
  .masthead {
    border-bottom: 1px solid var(--rule);
  }
}

.masthead h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--on-ink);
  font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* The mark's underline bar, at title size */
.masthead h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.3125rem;
  margin-top: 1.125rem;
  border-radius: 999px;
  background: var(--green);
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--on-ink-soft);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.375rem 1.25rem;
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.facts dt {
  color: var(--on-ink-muted);
}

.facts dd {
  margin: 0;
  color: var(--on-ink);
}

/* Page body: contents list beside the text on wide screens, above it on narrow ones */

.page {
  padding-block: 2.25rem 4rem;
}

.toc {
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem 1.125rem;
  background: var(--panel);
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.toc-title {
  margin: 0 0 0.5rem;
  color: var(--heading);
  font-weight: 700;
}

.toc ol,
.toc ul {
  margin: 0;
  padding-left: 1.5rem;
}

.toc ul {
  padding-left: 0;
  list-style: none;
}

.toc li {
  margin-block: 0.375rem;
}

.toc li::marker {
  color: var(--muted);
}

.toc a {
  color: var(--text);
  text-decoration-color: var(--rule);
}

.toc a:hover {
  text-decoration-color: var(--link-line);
}

@media (min-width: 64rem) {
  .page {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 41rem);
    column-gap: 4.5rem;
    align-items: start;
    padding-top: 3rem;
  }

  .toc {
    position: sticky;
    top: 2rem;
    margin: 0;
    padding: 0 0 0 1rem;
    background: none;
    border-left: 2px solid var(--rule);
    border-radius: 0;
  }
}

/* Document text */

.doc {
  min-width: 0;
  max-width: 41rem;
}

.doc h2 {
  margin: 3rem 0 0.75rem;
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 1.5rem;
}

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

.doc h3 {
  margin: 2rem 0 0.5rem;
  color: var(--heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  padding-left: 1.375rem;
}

.doc li {
  margin-block: 0.375rem;
}

.doc li::marker {
  color: var(--muted);
}

.doc li > ul {
  margin: 0.375rem 0 0;
}

.doc strong {
  color: var(--heading);
  font-weight: 600;
}

.placeholder {
  padding: 0 0.25rem;
  background: var(--panel);
  border: 1px dashed var(--muted);
  border-radius: 3px;
}

/* A note set off from the text, edged like a page tab */

.note {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border-left: 4px solid var(--note-edge);
  border-radius: 0 6px 6px 0;
}

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

/* Setup steps, numbered on small copies of the mark's tile */

.doc .steps {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.doc .steps > li {
  position: relative;
  min-height: 2.25rem;
  margin: 0 0 1.5rem;
  padding-left: 3.5rem;
  counter-increment: step;
}

.doc .steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0.125rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5625rem;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-ring);
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.doc .steps h3 {
  margin: 0.25rem 0 0.375rem;
}

.doc .steps p {
  margin: 0 0 0.5rem;
}

/* Numbered clauses: the number hangs in its own column */

.doc .clauses {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.doc .clauses > li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.5rem;
  margin: 0 0 0.875rem;
}

.clause-no {
  grid-column: 1;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.doc .clauses > li > :not(.clause-no) {
  grid-column: 2;
  margin: 0;
}

.doc .clauses > li > :not(.clause-no) + :not(.clause-no) {
  margin-top: 0.5rem;
}

/* Tables */

.table-wrap {
  max-width: 100%;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

th,
td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

th:last-child,
td:last-child {
  padding-right: 0;
}

thead th {
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--muted);
}

tbody th {
  color: var(--heading);
  font-weight: 600;
}

.fields tbody th {
  width: 34%;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer-inner {
  padding-block: 2rem 2.5rem;
}

.site-footer p {
  max-width: 41rem;
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: var(--text);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding-block: 0.25rem;
  font-weight: 600;
}

/* Print: black on white, no navigation */

@media print {
  .skip-link,
  .site-nav,
  .toc,
  .footer-nav {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .masthead {
    background: none;
    color: #000000;
  }

  .brand,
  .masthead h1,
  .lede,
  .facts dt,
  .facts dd {
    color: #000000;
  }

  .masthead h1::after {
    background: #000000;
  }

  .page {
    display: block;
  }

  a {
    text-decoration: none;
  }
}
