/* Happy Cyborg Capital — legal site */
:root {
  --navy: #0b2347;
  --teal: #14b8b0;
  --gold: #d4a24c;
  --text: #1a2d4a;
  --muted: #5b6b80;
  --line: #e8dfc8;
  --bg: #ffffff;
  --focus: #14b8b0;
  --max: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--teal); }

a:focus-visible,
.brand-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Home */
.hero {
  padding: 11vh 0 0.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 0;
  font-weight: 400;
}

.logo {
  width: min(100%, 30rem);
  margin: 0 auto;
}

.lede {
  margin: 2rem auto 0;
  max-width: 28rem;
  text-align: center;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 2.25rem auto;
  background: var(--gold);
  border: 0;
}

.note {
  margin: 0 auto 4.5rem;
  max-width: 30rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Legal pages */
.masthead {
  padding: 2.25rem 0 1.75rem;
  text-align: center;
}

.masthead .logo {
  width: min(100%, 16.5rem);
  margin: 0 auto;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
}

main.legal {
  flex: 1;
  padding-bottom: 3rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.legal h1 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.effective {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 1.85rem 0 0.55rem;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.legal p,
.legal li {
  margin: 0 0 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--navy);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  margin-bottom: 0.7rem;
}

.site-footer nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: var(--teal);
}

.site-footer p { margin: 0.2rem 0; }

.site-footer .contact a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer .contact a:hover { color: var(--teal); }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero { padding-top: 7vh; }
  .lede { font-size: 1.05rem; }
  .legal h1 { font-size: 1.45rem; }
  .wrap { padding: 0 1.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s ease; }
}
