/* Kimu legal pages — shared stylesheet */
:root {
  --brand: #EC4899;
  --brand-dark: #BE2768;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --border: #e6e6e9;
  --text: #1d1d1f;
  --text-secondary: #5c5c66;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #F472B6;
    --brand-dark: #EC4899;
    --bg: #0d0d0f;
    --surface: #19191c;
    --border: #2c2c31;
    --text: #f2f2f4;
    --text-secondary: #a6a6b0;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  padding-bottom: 20px;
}
.wordmark {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.wordmark img {
  height: 30px;
  width: auto;
  display: block;
}
.doc-title {
  margin: 18px 0 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.updated {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Typography */
h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
p, li { color: var(--text); }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 700; }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
small, .fine { color: var(--text-secondary); font-size: 14px; }

/* Callout box */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}
.callout p { margin: 6px 0; }
.callout.strong { border-left-width: 4px; }

/* Steps */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  position: relative;
  padding: 0 0 0 44px;
  margin: 16px 0;
  min-height: 30px;
}
ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 700;
  background: var(--surface);
  white-space: nowrap;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}
footer.site nav { margin-bottom: 12px; }
footer.site nav a { margin-right: 16px; white-space: nowrap; }

/* Landing page */
.hero { text-align: center; padding: 60px 0 24px; }
.hero .wordmark { display: inline-block; }
.hero .wordmark img { height: 72px; }
.hero p { color: var(--text-secondary); font-size: 18px; max-width: 480px; margin: 12px auto 0; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 32px; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
}
.card:hover { border-color: var(--brand); color: var(--text); }
.card .card-title { font-weight: 700; font-size: 17px; }
.card .card-sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
