/* buka-watch · css/legal.css - the three static legal pages (/terms, /privacy,
   /refunds). Deliberately self-contained: these pages carry no scripts and no
   tracking, and they must render even if watch.css is mid-change, because
   Payfast reads them during merchant verification. Same tokens as watch.css
   (amber #F5B405, ink #0A0A0A, Inter with the fonts.css faces). Cached a
   year like every other stylesheet, so bump ?v= on all three pages when
   editing. */

@import url('/css/fonts.css?v=45');

:root {
  --ink: #0A0A0A;
  --paper: #F7F5F0;
  --amber: #F5B405;
  --text: #EDEDED;
  --muted: #A8A8A8;
  --rule: rgba(255, 255, 255, 0.12);
  --max: 42rem;
}

* { box-sizing: border-box; }

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

body.legal {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

.legal-top {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark svg { width: 22px; height: 22px; }

.legal-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-body h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.contents {
  margin: 0 0 32px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.contents ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 24px;
  font-size: 14px;
}

.contents li { break-inside: avoid; margin: 2px 0; }

.contents a, .legal-body a, .legal-foot a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 180, 5, 0.35);
}

.contents a:hover, .legal-body a:hover, .legal-foot a:hover { border-bottom-color: var(--amber); }

.legal-body section { margin: 0 0 28px; }

.legal-body h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.legal-body h3 {
  margin: 16px 0 4px;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-body p, .legal-body li { margin: 0 0 10px; }

.legal-body ul { padding-left: 20px; }

.legal-body code {
  font: 14px/1 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

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

.legal-body th, .legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--rule);
}

.legal-body th { color: var(--muted); font-weight: 600; font-size: 13px; }

.legal-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.legal-foot p { margin: 0 0 6px; }

@media (max-width: 480px) {
  .contents ol { columns: 1; }
}
