/* Screen Recorder legal pages. Same look as the app: white / true black, one coral accent, no strokes. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f6f8;
  --ink: #16171a;
  --ink-2: #55575e;
  --accent: #f04b45;   /* brand coral: the mark and focus ring */
  --link: #cc3530;     /* the same coral, a shade deeper so link text stays readable on white */
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #17181c;
    --ink: #f2f2ef;
    --ink-2: #9a9ba3;
    --link: #f04b45;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 720px; margin: 0 auto; padding: 20px 16px 64px; }
@media (min-width: 600px) { .page { padding: 32px 24px 80px; } }

/* Brand row */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); }

/* Type */
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 28px 0 6px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; margin: 40px 0 8px; scroll-margin-top: 16px; }
h3 { font-size: 17px; font-weight: 600; margin: 22px 0 4px; }
p, ul { margin: 10px 0; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 600; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border-radius: 6px; padding: 1px 6px; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, code { overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.meta { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }
.lead { font-size: 18px; }

/* Grouped surfaces, iOS style: fill and radius, no borders */
.card { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin: 20px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-title { font-weight: 600; margin-bottom: 6px; }

/* Tables: each row is its own rounded surface. Below 640px rows stack into labelled cards. */
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 6px 0; font-size: 15px; line-height: 1.5; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 14px 0; vertical-align: bottom; }
.table td { background: var(--surface); padding: 12px 14px; vertical-align: top; }
.table td:first-child { border-radius: 14px 0 0 14px; font-weight: 600; }
.table td:last-child { border-radius: 0 14px 14px 0; }
@media (max-width: 639px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table tr { background: var(--surface); border-radius: 16px; padding: 12px 16px; margin: 0 0 10px; }
  .table td, .table td:first-child, .table td:last-child { background: none; border-radius: 0; padding: 3px 0; }
  .table td:first-child { font-size: 16px; padding-bottom: 6px; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
}

/* Landing page link rows */
.rows { display: grid; gap: 10px; margin: 24px 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-radius: 18px; color: var(--ink); text-decoration: none; font-weight: 600; }
.row:hover { filter: brightness(0.98); }
.row span { flex: 1; }
.row small { display: block; color: var(--ink-2); font-size: 14px; font-weight: 400; }
.row::after { content: "\203A"; color: var(--ink-2); font-size: 24px; line-height: 1; }

/* Footer */
.footer { color: var(--ink-2); font-size: 14px; margin-top: 56px; }
.footer a { color: var(--ink-2); }
.footer p { margin: 6px 0; }

@media print {
  :root { --bg: #ffffff; --surface: #f6f6f8; --ink: #000000; --ink-2: #444444; --link: #000000; }
  .page { max-width: none; padding: 0; }
}
