/* Balm legal pages — monochrome, self-contained, no external assets. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --text: #18181b;
  --text-muted: #52525b;
  --text-faint: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-subtle: #131315;
    --text: #e8e8ea;
    --text-muted: #a1a1aa;
    --text-faint: #8b8b93;
    --border: #26262a;
    --border-strong: #34343a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

/* Horizontal padding only, as longhands: `.wrap` is a class and would otherwise
   out-specify the element rules below and wipe out their vertical padding. */
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

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

.header-nav a:hover {
  color: var(--text);
}

.header-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Document body */

main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

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

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 620;
  margin: 3rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

h2 + p,
h3 + p {
  margin-top: 0;
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--border-strong);
}

a:hover {
  text-decoration-color: currentColor;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--text-faint);
}

/* At-a-glance summary card */

.summary {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-subtle);
  padding: 1.5rem;
  margin: 0 0 2.5rem;
}

.summary h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.summary ul {
  margin: 0;
  list-style: none;
  padding-left: 0;
}

.summary li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.summary li:last-child {
  margin-bottom: 0;
}

.summary li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.72em;
  width: 0.6rem;
  height: 0.3rem;
  border-left: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(-45deg);
}

/* Processor table */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

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

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* Landing hub */

.hub {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hub-links {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.hub-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  background: var(--bg-subtle);
}

.hub-card:hover {
  border-color: var(--border-strong);
}

.hub-card strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.hub-card span {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Landing page: store CTA + the five steps. The hub cards are reused as
   non-linked panels above the legal links, so `.hub-card` must not assume an
   anchor. */

.cta {
  margin-top: 2rem;
}

.store-link {
  display: inline-block;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  background: var(--bg-subtle);
}

.store-link:hover {
  border-color: var(--text-muted);
}

.steps {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.steps li strong {
  color: var(--text);
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.625rem;
  }

  main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
}
