/* Legal pages, using the same type and chrome as the homepage. */

:root {
  --bg: #08090c;
  --surface: #0f1217;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7eaf0;
  --text-dim: #9aa3af;
  --text-muted: #737d8a;
  --accent: #f59e3c;
  --accent-light: #ffb968;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --max-w: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 2;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-height: 68px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand span {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.brand b {
  color: var(--accent);
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 4px;
}

.btn:hover {
  background: var(--accent-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.page {
  padding: 56px 0 0;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.lede {
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 8px;
}

.lede a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.lede a:hover {
  border-color: var(--accent);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}

.tab {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab.active {
  color: #14100a;
  background: var(--accent);
  border-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.note {
  color: var(--text-dim);
  font-size: 15px;
  margin: 22px 0 0;
}

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

.legal-section h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
}

.legal-section h3 .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-right: 8px;
}

.legal-section p,
.legal-section li {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
}

.legal-section p {
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 12px 0 12px 1.15em;
}

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

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.legal-ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  display: inline-block;
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.foot ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .legal-section h3 {
    font-size: 20px;
  }
}
