/* Shared styling for the public legal pages. No external requests: these have
   to render for anyone, on any connection, including App Review. */
:root {
  --bg: #ffffff;
  --surface: #f6f5f3;
  --text: #16161a;
  --muted: #5b5b66;
  --line: #e3e1dd;
  --accent: #8a6d2f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #141416;
    --text: #f2f0eb;
    --muted: #a3a3ad;
    --line: #2a2a2f;
    --accent: #c6a464;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 44rem; margin: 0 auto; }

header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 28px 0 6px; }
h2 { font-size: 1.2rem; margin: 40px 0 10px; padding-top: 6px; }
h3 { font-size: 1rem; margin: 26px 0 6px; color: var(--muted); }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }

p, li { color: var(--text); }
ul { padding-left: 1.25rem; }
li { margin: 6px 0; }
a { color: var(--accent); }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px 16px;
  margin: 28px 0 8px;
}
.summary h2 { margin-top: 20px; }

/* Anything still wrapped in [[ ]] is an unfilled placeholder. Loud on purpose:
   shipping "[[SHOP_LEGAL_NAME]]" to the App Store would be worse than ugly. */
.fill {
  background: #ffe9a8;
  color: #4a3800;
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 600;
}

.lang {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.lang button {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

footer {
  max-width: 44rem;
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

@media print {
  .lang { display: none; }
  [data-doc] { display: block !important; }
}
