/* Shared styles for static / legal / form pages.
   Mirrors the design tokens used by resist.html so the brand stays consistent. */

:root {
  --brand: #ED8A00;
  --brand-deep: #ED8A00;
  --bg: #FFFFFF;
  --fg: #0B0B0C;
  --muted: #6B6B6F;
  --card: #F4F4F4;
  --card-stroke: rgba(0, 0, 0, 0.08);
  --input-bg: #F4F4F4;
  --input-stroke: rgba(0, 0, 0, 0.10);
  --easing: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --fg: #F5F5F5;
    --muted: #8B8B90;
    --card: #141414;
    --card-stroke: rgba(255, 255, 255, 0.08);
    --input-bg: #141414;
    --input-stroke: rgba(255, 255, 255, 0.10);
  }
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid var(--card-stroke);
}

.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; color: var(--brand-deep); }

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
}

.page .lede {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 640px;
}

.page h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 36px 0 12px;
}

.page p, .page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
}

.page ul, .page ol { padding-left: 22px; }

.legal-embed {
  min-height: 60vh;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--card-stroke);
  padding: 32px 36px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); text-decoration: none; }

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.field .hint { font-size: 12px; color: var(--muted); }

.field input,
.field select,
.field textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-stroke);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--fg);
  font-family: inherit;
  outline: 0;
  transition: border-color 180ms var(--easing);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand); }

.field textarea { min-height: 160px; resize: vertical; }

.btn {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 0 22px;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  font-family: inherit;
  transition: background 180ms var(--easing), transform 180ms var(--easing);
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}
.status.show { display: block; }
.status.success {
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 28%, transparent);
}
.status.error {
  background: rgba(220, 38, 38, 0.10);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.28);
}

@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .page { padding: 40px 20px 64px; }
  .footer { padding: 24px 20px; }
}
