/* Meridian — legal & support pages.
   Palette mirrors MeridianColors so the web pages read as the same product.
   Accent is icon vermillion, same lock as the app (`#EE5A29`). */

:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --border: #dcdcd7;
  --text: #141416;
  --text-secondary: #5a5a63;
  --text-tertiary: #73737b;
  --accent: #ee5a29;
  --on-accent: #ffffff;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #131316;
    --border: #26262b;
    --text: #ececf1;
    --text-secondary: #8e8e98;
    --text-tertiary: #80808a;
    --accent: #ee5a29;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Header */

header.site {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}

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

nav.site a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--text);
}

/* Type */

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

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

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

h1 + p.lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0;
}

.updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 2rem;
}

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

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

ul { padding-left: 1.15rem; }

li { margin: 0.35rem 0; }

/* Callout — used for the "this is not tax advice" notice and similar. */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

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

/* Definition-style table for data disclosures */

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

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

th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}

td:first-child { color: var(--text); padding-right: 1.25rem; white-space: nowrap; }

.scroll-x { overflow-x: auto; }

/* FAQ */

details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 0.7rem;
}

details[open] summary::before { content: "−"; }

details p { margin: 0.7rem 0 0.2rem; }

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

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