/* apps/legal/public/styles.css — StepMap legal site shared styles */
:root {
  --brand: #1f9d55;
  --brand-strong: #167a40;
  --bg: #ffffff;
  --surface: #f6f8f7;
  --border: #e3e8e6;
  --text: #14201a;
  --text-muted: #5b6a63;
  --max-w: 760px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 26, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1411;
    --surface: #141c18;
    --border: #25302a;
    --text: #eef3f0;
    --text-muted: #98a59f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  line-height: 1.55;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.site {
  background: var(--brand);
  color: #fff;
  padding: 20px 16px;
}

header.site .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

header.site a.brand {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

header.site a.brand .glyph {
  margin-right: 6px;
}

header.site nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

header.site nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
}

header.site nav a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 8px;
  color: var(--text);
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--text);
}

p,
li {
  font-size: 15px;
  color: var(--text);
}

p.lead {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.lang-toggle a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-toggle a.active {
  background: var(--brand);
  color: #fff;
}

.meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.notice {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 24px 0 0;
}

@media (min-width: 560px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.card .title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}

.card .body {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

footer.site a {
  color: var(--text-muted);
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
