/* Shared styling for the OnDeck legal pages (EULA, Privacy, Refunds).
   Palette matches /ondeck/help so the legal pages read as siblings of the documentation
   rather than as a different site. */
:root {
  --bg: #1a1b1f;
  --panel: #212226;
  --card: #2e3136;
  --line: #34373d;
  --text: #f2f3f5;
  --muted: #b9bdc6;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --warn: #ffd27f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #a5a8ff;
  text-decoration: none;
}

a:hover {
  color: #c8cbff;
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav__brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav__back {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

.intro {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  margin: 0 0 36px;
  font-size: 15px;
}

.callout {
  background: rgba(255, 210, 127, 0.08);
  border: 1px solid rgba(255, 210, 127, 0.3);
  border-left: 3px solid var(--warn);
  padding: 16px 18px;
  margin: 28px 0;
  font-size: 15px;
}

section {
  margin: 0 0 34px;
  padding: 0 0 6px;
}

h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
}

p,
li {
  color: #dcdee3;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

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

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

/* Wide content must scroll inside its own container, never the page body. */
.scroll-x {
  overflow-x: auto;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .wrap {
    padding: 36px 20px 72px;
  }
  .nav {
    padding: 14px 20px;
  }
}
