/* Recap legal + support pages.
   Same palette as the app (RecapTheme) so these do not read as a bolted-on
   afterthought when someone arrives from the App Store listing. */

:root {
  --bg:        #0B0D0F;
  --surface:   #14181B;
  --line:      rgba(255, 255, 255, 0.09);
  --text:      #F4F6F7;
  --text-2:    #C6CDD3;
  --muted:     #8E979E;
  --faint:     #6A737B;
  --red:       #FF4F42;
  --teal:      #45C4B0;
  --max:       46rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* The app's red wash, so the pages feel like the same product. */
  background-image: radial-gradient(900px 520px at 50% -220px,
                                    rgba(255, 79, 66, 0.16), transparent 70%);
  background-repeat: no-repeat;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px 96px; }

header.site {
  padding: 34px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
header.site .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); flex: none;
}
header.site a.brand {
  color: var(--text); font-weight: 700; font-size: 21px;
  text-decoration: none; letter-spacing: -0.01em;
}

nav.site {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 22px 0 40px;
}
nav.site a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
nav.site a:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
nav.site a[aria-current="page"] {
  background: var(--text); color: var(--bg); border-color: var(--text);
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 6vw, 40px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700;
}
h2 {
  font-size: 21px; line-height: 1.3; letter-spacing: -0.01em;
  margin: 44px 0 12px; font-weight: 650;
}
h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 650; }

p, li { color: var(--text-2); }
p { margin: 0 0 16px; }
ul { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }

a { color: var(--red); text-underline-offset: 3px; }

.updated { color: var(--faint); font-size: 14px; margin-bottom: 34px; }

.lede { font-size: 19px; color: var(--text); margin-bottom: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 16px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.callout {
  border-left: 3px solid var(--red);
  background: rgba(255, 79, 66, 0.07);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 0 0 20px;
}
.callout.good {
  border-left-color: var(--teal);
  background: rgba(69, 196, 176, 0.07);
}
.callout p:last-child { margin-bottom: 0; }

.mail {
  display: inline-block; margin-top: 4px;
  font-size: 18px; font-weight: 600;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 1px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
td { color: var(--text-2); }
.scroll-x { overflow-x: auto; }

footer.site {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint); font-size: 14px;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text-2); }

/* The pages are dark by design — a light-mode reader still gets the intended
   contrast rather than dark text on a dark ground. */
@media (prefers-color-scheme: light) {
  body { background-color: var(--bg); color: var(--text); }
}
