/*
  Redrive's legal pages, in Redrive's own look (see /redrive/index.html): the coral fold of the icon
  for the title band, navy ink, white paper, and Mona Sans on its width axis. The "Effective" lines and
  the callouts are Redrive's slips: a paper caption with its corner folded over.
*/
:root {
  --fold: #ff8a6b;
  --fold-deep: #e5603c;
  --fold-text: #b8431f;
  --ink: #0f2742;
  --ink-2: #4a5b70;
  --paper: #ffffff;
  --leg: #b3e3fa;
  --wash: #fff0ea;
  --line: #e3e7ee;
  --night-ink: #eaf1f8;
  --night-ink-2: #a9bcd0;
  --ear: 16px;
  --col: 42rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%;
  font-size: 17.5px; line-height: 1.7; font-weight: 420;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--fold); color: var(--ink); }
a { color: inherit; text-decoration-color: var(--fold-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--col), 100% - 48px); margin-inline: auto; }

/* ---------- Title band: Redrive's coral hero ---------- */
.band { background: var(--fold); position: relative; overflow: hidden; }
.top {
  display: flex; align-items: center; gap: 14px; padding: 22px 0;
  width: min(1200px, 100% - 48px); margin-inline: auto; position: relative; z-index: 1;
}
.app { display: flex; align-items: center; gap: 12px; text-decoration: none; font-stretch: 112%; font-weight: 760; font-size: 21px; letter-spacing: -.015em; margin-right: auto; }
.app img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(15, 39, 66, .12); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px;
  font-size: 14px; font-weight: 640; text-decoration: none; white-space: nowrap;
  border: 1.5px solid rgba(15, 39, 66, .35); color: var(--ink);
}
.pill:hover { border-color: var(--ink); }
.pill svg { width: 15px; height: 15px; }
.by { font-size: 14px; font-weight: 520; text-decoration: none; white-space: nowrap; color: var(--ink); }
.by:hover { text-decoration: underline; }

.hero { padding: 40px 0 64px; position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 14px; font-stretch: 85%; font-size: 15px; font-weight: 650; letter-spacing: .01em;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--ink); vertical-align: middle; margin-right: 10px; }
h1 {
  margin: 0 0 30px; font-stretch: 125%; font-weight: 780; letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(36px, 5vw, 58px); text-wrap: balance;
}
/* The meta lines as a slip: a white caption with a folded corner. */
.meta {
  position: relative; display: grid; gap: 2px; max-width: 34em;
  background: var(--paper); padding: 14px 40px 14px 18px; border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
  font-stretch: 85%; font-size: 15.5px; line-height: 1.5; color: var(--ink-2);
  transform: rotate(-.6deg);
}
.meta::after {
  content: ""; position: absolute; top: 0; right: 0; width: var(--ear); height: var(--ear);
  background: var(--leg); clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.meta b { color: var(--ink); font-weight: 700; }
.meta code { font-family: inherit; font-weight: 650; color: var(--ink); background: none; padding: 0; }

/* ---------- Contents ---------- */
.toc { margin: 48px auto 8px; padding: 24px 28px 20px; background: var(--wash); border-radius: 14px; }
.toc h2 { margin: 0 0 12px; font-stretch: 85%; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: 16px; line-height: 1.45; }
.toc li::marker { font-stretch: 85%; font-weight: 650; color: var(--fold-text); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--fold-deep); }

/* ---------- The document ---------- */
main { padding: 16px 0 88px; }
section { padding: 36px 0 10px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
section:first-of-type { border-top: 0; }
h2.sec {
  margin: 0 0 18px; font-stretch: 115%; font-weight: 760; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(25px, 2.6vw, 30px); text-wrap: balance;
}
h3 { margin: 28px 0 8px; font-stretch: 105%; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 18px; }
p, li, td { text-wrap: pretty; }
ul, ol { margin: 0 0 18px; padding-left: 1.3em; }
li { margin: 0 0 10px; }
ul li::marker { color: var(--fold-deep); }
strong, b { font-weight: 680; }
code {
  font-family: "Mona Sans", ui-monospace, Menlo, monospace; font-stretch: 80%; font-weight: 600;
  font-size: .92em; background: var(--wash); padding: 1px 6px; border-radius: 4px;
}

/* Tables scroll inside their own box. */
.table-scroll { overflow-x: auto; margin: 4px 0 22px; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { font-stretch: 85%; font-size: 14px; font-weight: 700; letter-spacing: .02em; background: var(--wash); color: var(--ink); }

/* Callouts: Redrive's slip, the pale blue leg of the R folded over the corner. */
.callout {
  position: relative; margin: 6px 0 22px; padding: 16px 44px 16px 20px;
  background: var(--wash); border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.callout::after {
  content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px;
  background: var(--fold); clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer, as on Redrive's page ---------- */
footer { background: var(--ink); color: var(--night-ink-2); font-size: 14.5px; line-height: 1.6; padding: 44px 0 52px; }
footer .wrap { width: min(1200px, 100% - 48px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 48px; }
footer .who { margin: 0; color: var(--night-ink); font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: var(--night-ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; text-decoration-color: var(--fold); }

@media (max-width: 760px) {
  .wrap, .top, footer .wrap { width: min(var(--col), 100% - 36px); }
  .toc ol { columns: 1; }
  .hero { padding: 22px 0 48px; }
  h1 { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .top { gap: 10px; flex-wrap: wrap; }
  .app { font-size: 19px; }
  .app img { width: 36px; height: 36px; border-radius: 10px; }
  .pill { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .by { font-size: 13.5px; }
  .toc { padding: 20px 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
