/* Shared legal / contact pages. Matches the home1 cream + ink system. */

:root {
  --cream: #f6f1e6;
  --cream-deep: #ede5d1;
  --ink: #0e0e0c;
  --ink-soft: #2c2c28;
  --muted: #6b6b60;
  --lime: #c6ff3d;
  --coral: #ff6b47;
  --font-display: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-body: 'Inter', 'General Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0 0 0 1.15em; }

.wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14, 14, 12, 0.06);
}
.site-header .logo {
  display: flex;
  align-items: center;
}
.site-header .logo img {
  height: 32px;
  width: auto;
}
.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
}
.site-header nav a {
  text-decoration: none;
  opacity: 0.55;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { opacity: 1; }

.legal-main {
  flex: 1;
  padding: 48px 0 80px;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 16px;
}
.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 36px 0 10px;
}
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { margin: 10px 0 0; }
.legal-doc li { margin: 6px 0; }
.legal-doc a { color: var(--ink); text-underline-offset: 3px; }

.contact-cta {
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
}
.contact-cta p { font-size: 15px; line-height: 1.5; }
.contact-cta a {
  color: var(--lime);
  font-weight: 600;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 36px 24px 28px;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}
.site-footer .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.site-footer .logo-mark { width: 32px; height: 32px; }
.site-footer .logo-wordmark { height: 24px; width: auto; }
.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
}
.foot-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.55;
}
.foot-links a:hover,
.foot-links a[aria-current="page"] { opacity: 1; }
.site-footer p {
  font-size: 12px;
  opacity: 0.4;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(14, 14, 12, 0.08);
  border-radius: 24px;
  padding: 24px;
}
.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(14, 14, 12, 0.14);
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: #fff;
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.form-error {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
}
.form-error[hidden] { display: none; }
.contact-submit {
  width: 100%;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  padding: 16px;
  border-radius: 999px;
  cursor: pointer;
}
.contact-submit:hover { background: var(--ink-soft); }
.contact-submit:disabled { opacity: 0.6; cursor: wait; }
.contact-fine {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.contact-success {
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
}
.contact-success[hidden] { display: none; }
.contact-success .check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin: 0 auto 14px;
}
.contact-success h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 8px;
}
.contact-success p { opacity: 0.7; font-size: 15px; }

@media (max-width: 640px) {
  .site-header nav { gap: 14px; }
  .legal-main { padding: 32px 0 64px; }
  .wrap { width: min(760px, calc(100% - 32px)); }
}
