/*
 * Sendy Errands — public site.
 *
 * Tokens copied from sendy/src/lib/theme.ts so the legal pages look like the
 * app rather than like a document someone found. Deliberately one stylesheet
 * and no build step: this has to keep working, unattended, for as long as the
 * app is on the Play Store, and the Play listing links straight at it.
 */
:root {
  --pink-600: #e6297a;
  --pink-700: #c21e63;
  --pink-50: #fff1f7;
  --ink: #191420;
  --body: #4a4652;
  --muted: #8a8690;
  --surface: #f7f7f8;
  --hairline: #ecebee;
  --white: #fff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ── header ─────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

header .wrap { display: flex; align-items: center; gap: 12px; }

/*
 * The app's own icon rather than an "SE" monogram, so someone arriving from
 * the Play listing or a Reply-To link sees the same mark that is on their home
 * screen. The artwork already carries the pink ground, so this only has to
 * clip the corners.
 */
.mark {
  width: 34px; height: 34px; border-radius: 10px;
  flex: none; display: block; overflow: hidden;
  text-decoration: none;
}
.mark img { width: 100%; height: 100%; display: block; }

.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; }

header nav { margin-left: auto; display: flex; gap: 18px; }
header nav a { color: var(--body); text-decoration: none; font-size: 14px; }
header nav a:hover, header nav a[aria-current='page'] { color: var(--pink-600); }

/* ── document body ──────────────────────────────────────── */
main { padding: 40px 0 72px; }

h1 {
  font-size: 30px; line-height: 1.2; color: var(--ink);
  margin: 0 0 8px; letter-spacing: -0.5px;
}

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

h2 {
  font-size: 19px; color: var(--ink); margin: 40px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--hairline);
  letter-spacing: -0.2px;
}

h3 { font-size: 16px; color: var(--ink); margin: 26px 0 10px; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--pink-600); }
a:hover { color: var(--pink-700); }

strong { color: var(--ink); }

/* Contact blocks and anything else that should read as set apart. */
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 18px 20px; margin: 20px 0;
}
.card p:last-child { margin-bottom: 0; }

/* An unfilled placeholder must be impossible to publish by accident. */
.todo {
  background: #fff4e5; border: 1px dashed var(--pink-600);
  color: var(--pink-700); border-radius: 8px;
  padding: 2px 8px; font-weight: 600; font-size: 14px;
  display: inline-block;
}

/* ── landing ────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: 40px; margin-bottom: 14px; }
.hero p { font-size: 18px; max-width: 520px; margin: 0 auto 28px; }

.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.btn-primary { background: var(--pink-600); color: var(--white); }
.btn-primary:hover { background: var(--pink-700); color: var(--white); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }

/* ── footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 44px; color: var(--muted); font-size: 14px;
}
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--pink-600); }
footer .spacer { margin-left: auto; }

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 31px; }
  main { padding: 28px 0 52px; }
  footer .spacer { margin-left: 0; width: 100%; }
}
