/* Hercules web — palette lifted from DesignSystem/Colors.swift so the
   legal pages read as part of the app, not a bolted-on afterthought. */
:root {
  --bg: #000000;
  --card: #111111;
  --chip: #1a1a1a;
  --hairline: #292929;
  --text: #ffffff;
  --text-secondary: #b2b2b2;
  --text-tertiary: #6f6f6f;
  --accent: #ffac40;
  --purple: #a57de6;
}

/* App wordmark font — OFL-licensed (see Hercules/Resources/Fonts/OFL.txt),
   self-hosting permitted. */
@font-face {
  font-family: "GeistPixel-Triangle";
  src: url("GeistPixel-Triangle.otf") format("opentype");
  font-display: swap;
}

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

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

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

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 24px 96px; }

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  /* Same lockup as the app's top bar: statue badge + GeistPixel wordmark. */
  font-family: "GeistPixel-Triangle", "Geist", sans-serif;
  font-weight: 400;
  font-size: 24px;
}
header.site .mark {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 8px;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }

p, li { color: var(--text-secondary); }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 600; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #ffc27a; }

.updated { color: var(--text-tertiary); font-size: 15px; margin: 0 0 40px; }

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  margin: 24px 0;
}
.card :first-child { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th { color: var(--text); font-weight: 600; }
td { color: var(--text-secondary); }
.table-scroll { overflow-x: auto; }

footer.site {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
  font-size: 14px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer.site a { color: var(--text-tertiary); text-decoration: none; }
footer.site a:hover { color: var(--text-secondary); }
footer.site .spacer { margin-left: auto; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  .wrap { padding: 24px 20px 72px; }
  header.site { flex-wrap: wrap; }
  header.site nav { width: 100%; margin-left: 0; padding-top: 8px; }
}
