/* Shared styling for the legal pages. Deliberately plain and high-contrast: these are
   documents to be read and, if it ever comes to it, cited — not marketing surfaces.
   Matches the app's dark palette so they don't feel like a different website. */
:root {
  --bg: #080d16;
  --surface: #0f1720;
  --ink: #e8edf5;
  --ink-dim: #96a2b4;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #00d0ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }

header.legal-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 14px;
}
.back:hover { text-decoration: underline; }

h1 { font-size: 26px; margin: 0 0 6px; line-height: 1.25; }
h2 { font-size: 18px; margin: 34px 0 10px; }
h3 { font-size: 15px; margin: 22px 0 8px; }

.sub { color: var(--ink-dim); font-size: 13.5px; margin: 0; }

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

.muted { color: var(--ink-dim); font-size: 13.5px; }

.notice {
  background: rgba(0, 208, 255, 0.07);
  border: 1px solid rgba(0, 208, 255, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

.warn {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }

/* The statutory withdrawal form is meant to be copied verbatim, so it gets a
   document-like surface rather than page styling. */
.form-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  white-space: pre-line;
}

footer.legal-foot {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-dim);
}
footer.legal-foot a { margin-right: 14px; }

@media (max-width: 600px) {
  .wrap { padding: 20px 16px 60px; }
  h1 { font-size: 22px; }
  table, th, td { font-size: 13px; }
}
