/* Legendfall legal pages. One stylesheet, no scripts, no external requests. */
:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #5d574f;
  --accent: #8a2c1d;
  --border: #ddd5c8;
  --note-bg: #fbf3e4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1e1b17;
    --text: #ece6dc;
    --muted: #a99f91;
    --accent: #e08a6c;
    --border: #3a342c;
    --note-bg: #2a231a;
  }
}

* { 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 Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav.lang a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

main {
  padding-top: 8px;
  padding-bottom: 40px;
}

h1 { font-size: 1.6rem; line-height: 1.25; margin: 24px 0 4px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }

p.meta { color: var(--muted); font-size: 0.9rem; margin-top: 0; }

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

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid var(--border);
}

th { background: var(--note-bg); }

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  margin: 16px 0;
  border-radius: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}

.card h2 { margin-top: 0; font-size: 1.1rem; }
.card ul { list-style: none; padding: 0; margin: 0; }

footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

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