/* Shared styling for the KuberaX legal pages.

   These are read on a phone more often than on a desktop — an App Store
   reviewer opens them from the app, and a client opens them from a link — so
   the layout is a single readable column and the type scales with the device. */

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1c2e;
  --muted: #6f6a66;
  --rule: #e4ded6;
  --accent: #b5252a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141c;
    --surface: #1c1c26;
    --ink: #f2efe9;
    --muted: #a49e98;
    --rule: #2e2e3a;
    --accent: #e8656a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

header {
  padding: 40px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1rem;
  margin: 1.6em 0 0.4em;
}

p, li { color: var(--ink); }

ul { padding-left: 1.25em; }

li { margin-bottom: 0.4em; }

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 1.6em 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.94rem;
}

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

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

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

footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

nav.pages {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
