/* Legitly site. System fonts only: no web fonts, no third-party requests. */
:root {
  --navy: #0b2a4a;
  --blue: #1b4f9c;
  --blue-dark: #143c78;
  --teal: #12a5a0;
  --text: #0b2a4a;
  --muted: #4a5d70;
  --bg: #f6f9fc;
  --card: #ffffff;
  --line: #d9e2ec;
  --ok-bg: #e7f6f1;
  --ok: #0d6b52;
  --err-bg: #fdecec;
  --err: #a32020;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--navy); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.site ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.site a { color: var(--navy); text-decoration: none; font-weight: 500; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--blue); text-decoration: underline; }

main { padding: 40px 0 56px; }

h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }

.hero { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.hero-art { justify-self: center; width: 120px; height: 120px; order: -1; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  .hero-art { width: 240px; height: 240px; order: 0; }
}

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--blue-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.button.secondary:hover { background: #eef3fb; color: var(--blue-dark); }
.button.danger { background: var(--err); }
.button.danger:hover { background: #7f1818; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.small { font-size: 0.95rem; color: var(--muted); }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.step-number {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 8px;
}

.callout { background: var(--card); border-left: 4px solid var(--teal); border-radius: 8px; padding: 16px 20px; margin: 24px 0; }

form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"], input[type="text"], textarea {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #8a9bb0; border-radius: 8px; background: #fff; color: var(--text);
}
input[inputmode="numeric"] { letter-spacing: 0.3em; max-width: 12ch; }
textarea { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 600; margin-bottom: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.choice input { margin-top: 6px; width: 18px; height: 18px; }

.message { border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.message.ok { background: var(--ok-bg); color: var(--ok); }
.message.error { background: var(--err-bg); color: var(--err); }

.legal h2 { font-size: 1.25rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 24px 0 32px; font-size: 0.95rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
footer.site p { margin: 0; }

[hidden] { display: none !important; }

.h3 { font-size: 1.1rem; margin: 0 0 8px; }
.card .h3 { margin-top: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: #eaf0f6; padding: 1px 5px; border-radius: 4px; }
.callout h2 { margin-top: 0; }
