/* Shared styling for the TNM Cancer Staging legal + support pages.
   Deliberately dependency-free: App Review must be able to open these on any
   device, on a slow connection, with no external requests to fail. */

:root {
  --bg: #f2f5ff;
  --surface: #ffffff;
  --primary: #1f5bff;
  --primary-dark: #0f3fd6;
  --text: #0f172a;
  --muted: #64748b;
  --divider: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #131c2e;
    --primary: #6f9bff;
    --primary-dark: #9dbaff;
    --text: #eef2ff;
    --muted: #9aa8c2;
    --divider: #26304a;
  }
}

* { box-sizing: border-box; }

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

header {
  background: linear-gradient(135deg, #1f5bff, #0048ba);
  color: #fff;
  padding: 28px 20px;
}

header .inner, main { max-width: 760px; margin: 0 auto; }

header h1 { margin: 0 0 4px; font-size: 1.6rem; line-height: 1.25; }
header p  { margin: 0; opacity: .9; font-size: .95rem; }

main {
  background: var(--surface);
  padding: 28px 24px 40px;
  margin-top: -12px;
  border-radius: 16px 16px 0 0;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}
main > h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }

h3 { font-size: 1rem; margin: 20px 0 6px; }

p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 6px 0; }

a { color: var(--primary); overflow-wrap: anywhere; }

.updated { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.note {
  background: rgba(31, 91, 255, .08);
  border: 1px solid rgba(31, 91, 255, .2);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
}

.plans { width: 100%; border-collapse: collapse; margin: 14px 0; }
.plans th, .plans td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  font-size: .95rem;
}
.plans th { color: var(--muted); font-weight: 600; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: .85rem;
}
footer a { color: var(--primary-dark); }

.nav { margin-top: 14px; }
.nav a {
  display: inline-block;
  margin-right: 14px;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}
