/* ===========================================================================
   The public legal pages: /privacy, /terms, /support.

   Same tokens and faces as login.css and inbox.css, so the pages a store
   reviewer reads look like the product they are reviewing. Served by the
   privacy router with sendFile, like /login.css — NOT listed in the service
   worker's SHELL, so it is never cached on a phone and needs no VERSION bump.

   Body text is --ivory, not --ivory-faint: the faint token is 2.3:1 on this
   background and fails even the large-text floor. It is used here for
   hairlines only.
   =========================================================================== */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodoni-moda-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  --noir:#0A0708; --smoke:#150E11; --wine:#31101B; --oxblood:#6E1423;
  --gold:#C9A96A; --ivory:#F1E9DE;
  --gold-line:rgba(201,169,106,.24);
  --ivory-dim:rgba(241,233,222,.62);
  --ivory-faint:rgba(241,233,222,.30);
  --line-soft:rgba(241,233,222,.09);
  --display:'Bodoni Moda', Georgia, serif;
  --body:'Jost', -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--ivory);
  background:
    radial-gradient(circle at top, rgba(201,169,106,.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(110,20,35,.22), transparent 28%),
    linear-gradient(180deg, #090708 0%, #120C0F 40%, #090708 100%);
}

/* Keyboard users land on the document, not the nav. */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--gold); color: var(--noir); padding: 8px 12px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 16px; }

.top {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  justify-content: space-between; padding: 16px;
  border-bottom: 1px solid var(--gold-line);
  background: rgba(10,7,8,.72);
}
.brand {
  margin: 0; font-family: var(--display); font-size: 16px; letter-spacing: .06em;
  color: var(--gold);
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.top nav a {
  display: inline-block; padding: 8px 0; color: var(--ivory-dim); text-decoration: none;
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 1px solid transparent;
}
.top nav a:hover, .top nav a:focus-visible { color: var(--ivory); }
.top nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.top nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.doc { max-width: 68ch; margin: 0 auto; padding: 32px 16px 64px; }
h1 {
  margin: 0 0 8px; font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 5vw, 38px); letter-spacing: .02em; line-height: 1.15;
}
.lead { margin: 0 0 20px; font-size: 18px; color: var(--ivory-dim); }
.notice {
  margin: 0 0 8px; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: 8px;
  background: rgba(201,169,106,.06);
}

section { margin-top: 36px; }
h2 {
  margin: 0 0 10px; font-family: var(--display); font-weight: 600;
  font-size: 22px; line-height: 1.25; color: var(--gold);
}
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gold); }
strong { font-weight: 600; color: var(--ivory); }

/* A placeholder is a thing the owner fills in. It has to look like one.
   Inline, not inline-block: an atomic box lets the line break between the
   chip and the comma after it, which left a full stop alone on a line. */
.ph {
  display: inline; padding: 1px 6px; border-radius: 6px;
  color: var(--gold); border: 1px dashed rgba(201,169,106,.6);
  background: rgba(201,169,106,.06); font-size: .95em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.foot {
  padding: 20px 16px 40px; text-align: center; font-size: 13px; color: var(--ivory-dim);
  border-top: 1px solid var(--line-soft);
}
.foot p { margin: 0 0 6px; }

/* The owner will print these for whoever writes the legal text. */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .top nav, .skip { display: none; }
  .brand, h2, a, .ph, .foot { color: #000; }
  .ph { border-color: #000; background: none; }
  .notice { border-color: #000; background: none; }
}
