/* Standalone styles for legal + 404 pages (served statically from public/). */
:root {
  --forest: #0C2016;
  --green: #00c851;
  --ink: #1d1d24;
  --ink-soft: #55555f;
  --line: #e6e6ec;
}
* { 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(--ink);
  line-height: 1.65;
  background: #fff;
}
a { color: #008537; }
img { display: block; max-width: 100%; }

.legal-top {
  background: var(--forest);
  padding: 20px clamp(20px, 5vw, 48px);
}
.legal-top a { display: inline-flex; }
.legal-top img { height: 30px; width: auto; }

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 48px) 80px;
}
.legal-wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.legal-wrap .updated { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 36px; }
.legal-wrap h2 {
  font-size: 1.25rem;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}
.legal-wrap p, .legal-wrap li { color: #33333c; }
.legal-wrap ul { padding-left: 1.2em; }
.legal-wrap li { margin: 6px 0; }
.legal-wrap .back {
  display: inline-block;
  margin-top: 44px;
  font-weight: 600;
  text-decoration: none;
}
.legal-wrap .back:hover { text-decoration: underline; }
.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  background: #f6f6f2;
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* 404 */
.nf {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--forest);
  color: #fff;
}
.nf img { height: 40px; width: auto; margin: 0 auto 28px; }
.nf h1 { font-size: clamp(2.4rem, 8vw, 4rem); margin: 0; letter-spacing: -0.02em; }
.nf p { color: rgba(255, 255, 255, 0.72); margin: 12px 0 28px; }
.nf a.home {
  display: inline-block;
  background: var(--green);
  color: #062a14;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .18s ease;
}
.nf a.home:hover { transform: translateY(-2px); }
