/* UniKu legal and support pages. One file, no JavaScript. Colours mirror
   lib/theme/tokens.dart (brand #0066FF, navy #1A2B4C, dark #0E1830). */

/* Manrope is served from this site, not Google Fonts, so a page view sends
   the visitor's IP to no third party. The same variable font the app
   bundles (assets/fonts), weights 200 to 800; licence in fonts/OFL.txt. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0066ff;
  --brand-ink: #0052cc;
  --navy: #1a2b4c;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e0e6f0;
  --text: #1a2b4c;
  --copy: #3d4a63;
  --muted: #6e7c91;
  --note-bg: #fff4e0;
  --note-border: #ffcf87;
  --note-text: #7a4a00;
  --mark-bg: #fff1a8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4d93ff;
    --brand-ink: #7fb0ff;
    --bg: #0e1830;
    --card: #16223d;
    --border: #243452;
    --text: #eef2fa;
    --copy: #c9d2e3;
    --muted: #8a97ad;
    --note-bg: #2e2410;
    --note-border: #6b4f1a;
    --note-text: #ffd48a;
    --mark-bg: #5a4a00;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--copy);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.top {
  background: var(--navy);
  color: #fff;
}

.top-inner,
main,
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand span {
  color: #00d2ff;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
}

.top nav a {
  color: #c9d8ff;
  text-decoration: none;
  font-weight: 600;
}

.top nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  padding-top: 24px;
  padding-bottom: 40px;
}

article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px 28px;
}

@media (min-width: 640px) {
  article {
    padding: 32px 40px 40px;
  }
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
}

h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

a {
  color: var(--brand);
  font-weight: 600;
}

a:hover {
  color: var(--brand-ink);
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

.draft {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  color: var(--note-text);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  margin: 0 0 20px;
}

/* A fact the owner still has to fill in, e.g. [SUPPORT EMAIL]. */
.ph {
  background: var(--mark-bg);
  color: inherit;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
}

.toc ol {
  margin: 6px 0 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
}

.steps li {
  margin: 8px 0;
}

.foot {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 32px;
}

.foot a {
  color: var(--muted);
}
