:root {
  --bg: #0a0e17;
  --bg-elevated: #121826;
  --text: #f2eee8;
  --text-muted: #8c93a6;
  --border: #232b3d;
  --accent: #ff5a3c;
  --accent-contrast: #0a0e17;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf6f3;
    --bg-elevated: #ffffff;
    --text: #1a1f2b;
    --text-muted: #5b6478;
    --border: #e8e1da;
    --accent: #e8481f;
    --accent-contrast: #ffffff;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(720px, 100% - 36px);
  margin: 0 auto;
}

.legal-top {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
}

.legal-top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand .brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 6px;
}

.brand .brand-accent {
  color: var(--accent);
}

.back-link {
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-main {
  padding: 40px 0 56px;
}

.eyebrow {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.updated {
  margin: 0 0 36px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-nav {
  margin: 0 0 36px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.legal-nav strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.legal-nav ol {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-nav li {
  margin: 4px 0;
}

.legal-nav a {
  color: var(--text);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

article section {
  margin: 0 0 32px;
  scroll-margin-top: 24px;
}

h2 {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
}

h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

p,
ul,
ol,
table {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 6px 0;
}

.muted {
  color: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-elevated);
  font-weight: 600;
}

.legal-footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-links a:hover,
.legal-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 32px, 720px);
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
