/* MuteMate legal pages — styled to match the mobile app dark theme (mm.ts tokens). */
:root {
  --bg: #080808;
  --bg2: #0a0a0a;
  --surface: #131313;
  --surface2: #181414;
  --surface3: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5ece8;
  --text-body: #d8c8c2;
  --text-muted: #9a8f86;
  --text-dim: #6b6058;
  --red: #d9202a;
  --gold: #c4932a;
  --radius-card: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 22px 96px;
}

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.topbar .back {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.topbar h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
}

/* ── Legal landing (mirrors the app screenshot) ──────── */
.section-label {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 28px 0 14px;
  font-weight: 600;
}
.legal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 18px;
  margin-bottom: 14px;
  color: var(--text);
}
.legal-card:hover {
  background: #1f1f1f;
  text-decoration: none;
}
.legal-card .ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
  /* Gold is the app's own colour for an emphasis mark, and it separates the
     icon from the label without competing with it. */
  color: var(--gold);
}
.legal-card .ico svg {
  width: 19px;
  height: 19px;
  display: block;
}
.legal-card .label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}
.legal-card .chev {
  color: var(--text-dim);
  font-size: 20px;
}

/* ── Document body ───────────────────────────────────── */
.doc h1 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text);
  font-size: 30px;
  margin: 4px 0 6px;
}
.doc .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.doc .placeholder-note {
  background: rgba(217, 32, 42, 0.08);
  border: 1px solid rgba(217, 32, 42, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-body);
  font-size: 13px;
  margin: 18px 0 28px;
}
.doc h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text);
  font-size: 21px;
  margin: 34px 0 10px;
  padding-top: 6px;
}
.doc h3 {
  color: var(--text);
  font-size: 16px;
  margin: 22px 0 8px;
}
.doc p,
.doc li {
  color: var(--text-body);
  font-size: 15px;
}
.doc ul {
  padding-left: 20px;
}
.doc li {
  margin-bottom: 6px;
}
.doc strong {
  color: var(--text);
}
.placeholder {
  color: var(--gold);
  background: rgba(196, 147, 42, 0.1);
  padding: 0 4px;
  border-radius: 4px;
  font-style: italic;
}

.legal-notice {
  background: rgba(196, 147, 42, 0.08);
  border: 1px solid rgba(196, 147, 42, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-body);
  font-size: 13px;
  margin: 18px 0 28px;
}
.legal-notice strong {
  color: var(--gold);
}

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 22px 0 30px;
}
.toc h2 {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: inherit;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.toc a {
  color: var(--text-body);
  font-size: 14px;
}

.footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
