/* PDF Loom website — colors match the app (src/theme). System fonts only, so
   the privacy policy page doesn't itself load anything from third parties. */

:root {
  color-scheme: light;
  --bg: #F7F7F9;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-muted: #5B6271;
  --border: #E6E3E6;
  --primary: #E31E24;
  --primary-dark: #B71C1C;
  --tint: #FDECEC;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15100F;
    --surface: #1F1817;
    --ink: #F5EEED;
    --ink-muted: #B8A8A6;
    --border: #3A2E2C;
    --primary: #FF6B6B;
    --primary-dark: #E64545;
    --tint: #2E1C1B;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-inline: 20px;
}

a { color: var(--primary); text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* Content */
main { padding-block: 40px 56px; }
h1 {
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  text-wrap: balance;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin: 40px 0 8px;
  text-wrap: balance;
}
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.meta { color: var(--ink-muted); font-size: 14px; margin-bottom: 28px; }
.lead { font-size: 18px; color: var(--ink-muted); }

/* The one-paragraph summary at the top of each legal page. */
.summary {
  background: var(--tint);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 8px;
}
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

/* Who-gets-what table in the privacy policy. */
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-muted); font-weight: 600; }

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 8px 0 16px;
}
.contact strong { display: block; font-size: 18px; word-break: break-all; }

/* Home */
.hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.hero img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 6px 20px rgba(227, 30, 36, 0.18); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0; }
.features strong { display: block; }
.features span { color: var(--ink-muted); font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 24px 40px;
  color: var(--ink-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a { color: var(--ink-muted); }

/* Home: download card with Play button and QR code */
.get-app { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin: 0 0 8px; }
.get-app h2 { margin: 0 0 6px; font-size: 20px; }
.get-app p { margin: 0 0 14px; color: var(--ink-muted); }
.play-button { display: inline-block; background: #E31E24; color: #fff; font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: 10px; }
.play-button:hover { background: #B71C1C; color: #fff; }
.play-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* The QR keeps its own white background in dark mode, so cameras can read it. */
.get-app-qr { flex: none; width: 168px; height: 168px; border-radius: 10px; background: #fff; }
/* On a phone the button is all you need. */
@media (max-width: 600px) {
  .get-app-qr, .qr-hint { display: none; }
  .get-app p { margin-bottom: 12px; }
}
