/* BookInspire legal docs — minimal readable styling.
 * Matches the warm beige/brown palette of the app for brand consistency
 * without dragging in any framework. Mobile-first.
 */

:root {
  --bg: #faf5ec;
  --text: #2a1f17;
  --muted: #6b5848;
  --link: #b35a1f;
  --link-hover: #8b3d10;
  --rule: #d9c8a8;
  --card: #fff;
  --code-bg: #f1e7d4;
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 24px 20px 96px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card);
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav.brand {
  max-width: var(--max);
  margin: 0 auto 16px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

nav.brand a { color: var(--muted); text-decoration: none; }
nav.brand a:hover { color: var(--text); }

nav.langs {
  margin: 8px 0 24px;
  font-size: 14px;
}

nav.langs a {
  margin-right: 12px;
  color: var(--link);
  text-decoration: none;
}

nav.langs a:hover { color: var(--link-hover); text-decoration: underline; }

nav.langs a.current {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 24px 0 10px;
}

h4 {
  font-size: 16px;
  margin: 20px 0 8px;
}

p { margin: 0 0 14px; }

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--link-hover); }

blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--code-bg);
  border-left: 3px solid var(--link);
  border-radius: 4px;
  color: var(--muted);
}

blockquote p:last-child { margin-bottom: 0; }

code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

pre {
  background: var(--code-bg);
  padding: 14px;
  border-radius: 6px;
  overflow-x: auto;
}

pre code { background: transparent; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95em;
}

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

th { background: var(--code-bg); font-weight: 600; }

strong { font-weight: 600; }

footer {
  max-width: var(--max);
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

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

.index-contact {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
