/* legal/legal.css
   Shared minimal stylesheet for legal pages. Matches the brand system
   used in index.html (Space Grotesk + Inter + Helion orange #FF6B1A)
   without depending on Bootstrap. Self-contained so each page works
   with one <link rel="stylesheet"> and no JS.
*/

:root {
  --hl-ink: #0f1922;
  --hl-ink-soft: #475569;
  --hl-paper: #ffffff;
  --hl-paper-soft: #f8fafc;
  --hl-orange: #ff6b1a;
  --hl-border: #e2e8f0;
  --hl-banner-bg: #fff7ed;
  --hl-banner-border: #fb923c;
}

@font-face {
  font-family: 'Space Grotesk Local';
  font-display: swap;
  src: local('Space Grotesk');
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hl-ink);
  background: var(--hl-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hl-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--hl-border);
}

.hl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', 'Space Grotesk Local', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--hl-ink);
  text-decoration: none;
}

.hl-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.hl-back {
  font-size: 14px;
  color: var(--hl-ink-soft);
  text-decoration: none;
}
.hl-back:hover {
  color: var(--hl-orange);
}

.hl-banner {
  margin: 24px 0 32px;
  padding: 16px 20px;
  background: var(--hl-banner-bg);
  border-left: 4px solid var(--hl-banner-border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
}
.hl-banner strong {
  color: var(--hl-ink);
}

h1 {
  font-family: 'Space Grotesk', 'Space Grotesk Local', system-ui, sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  margin: 24px 0 8px;
  color: var(--hl-ink);
}

.hl-meta {
  font-size: 13px;
  color: var(--hl-ink-soft);
  margin-bottom: 32px;
}

h2 {
  font-family: 'Space Grotesk', 'Space Grotesk Local', system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 8px;
  color: var(--hl-ink);
}

h3 {
  font-family: 'Space Grotesk', 'Space Grotesk Local', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  margin: 24px 0 4px;
  color: var(--hl-ink);
}

p,
ul,
ol {
  margin: 12px 0;
}
ul,
ol {
  padding-left: 24px;
}
li {
  margin: 6px 0;
}

a {
  color: var(--hl-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: #c2410c;
}

code,
pre {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
}
code {
  background: var(--hl-paper-soft);
  padding: 1px 6px;
  border-radius: 3px;
}

.hl-todo {
  display: inline-block;
  padding: 2px 6px;
  background: #fef3c7;
  border-radius: 3px;
  font-size: 13px;
  color: #92400e;
}

.hl-section-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  color: var(--hl-orange);
  margin-right: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hl-border);
  vertical-align: top;
}
th {
  background: var(--hl-paper-soft);
  font-weight: 600;
}

.hl-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hl-border);
  font-size: 13px;
  color: var(--hl-ink-soft);
}
.hl-footer p {
  margin: 4px 0;
}

@media (max-width: 600px) {
  .hl-shell {
    padding: 20px 16px 60px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 19px;
  }
  h3 {
    font-size: 16px;
  }
}
