/* Knotive — shared legal page styles */
:root {
  --bg:        #FAF8F5;
  --bg-deep:   #F0EDE8;
  --bg-warm:   #F2E8D9;
  --surface:   #FBF4E8;
  --ink:       #2D2D2D;
  --ink-soft:  #6B5D4F;
  --ink-mute:  #A3907B;
  --hair:      rgba(45, 45, 45, 0.08);
  --terracotta:#C4724A;
  --terracotta-deep:#B05D38;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, "Hiragino Sans", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-deep); }

/* Nav (shared with LP) */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; max-width: 1080px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; letter-spacing: 0.22em; font-size: 13px;
  color: var(--ink);
}
.logo a { color: inherit; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
}
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--ink-soft); }
.nav-links a { color: var(--ink-soft); letter-spacing: 0.08em; }
.nav-links a:hover { color: var(--terracotta); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Document layout */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 28px 120px;
}
.doc-eyebrow {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.32em; font-weight: 400;
  margin-bottom: 22px;
}
.doc-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--ink);
}
.doc-meta {
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.14em;
  margin-bottom: 56px;
}
.doc-meta span + span::before {
  content: ' · '; margin: 0 6px;
}
.doc-lede {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2.05;
  margin: 0 0 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hair);
}

/* Table of contents */
.toc {
  background: var(--bg-deep);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 80px;
}
.toc-label {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.28em; font-weight: 400;
  margin-bottom: 18px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
}
@media (max-width: 540px) {
  .toc ol { grid-template-columns: 1fr; }
}
.toc li {
  counter-increment: toc;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.toc li a {
  color: var(--ink-soft);
  display: flex; gap: 14px;
  padding: 6px 0;
}
.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.14em;
  flex: 0 0 auto;
  padding-top: 2px;
}
.toc li a:hover { color: var(--terracotta); }

/* Sections */
.section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}
.section h2 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: baseline; gap: 16px;
  color: var(--ink);
}
.section h2::before {
  content: attr(data-num);
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: 0.22em;
  font-weight: 400;
  flex: 0 0 auto;
}
.section h3 {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.section p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2.0;
}
.section ul, .section ol {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2.0;
}
.section li { margin-bottom: 6px; }
.section ul li::marker { color: var(--terracotta); }

.callout {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  border: 1px solid var(--hair);
}
.callout p { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* Footer */
footer {
  background: var(--bg);
  padding: 56px 28px 40px;
  border-top: 1px solid var(--hair);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-links {
  display: flex; gap: 28px;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.14em;
}
.footer-links a { color: var(--ink-mute); }
.footer-links a:hover { color: var(--terracotta); }
.copy {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.18em;
}

/* Back to top */
.totop {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.18em; margin-top: 56px;
}
.totop::before {
  content: ''; width: 24px; height: 1px; background: var(--ink-mute);
}
