:root {
  color-scheme: dark;
  --bg: #010101;
  --text: #fff;
  --secondary: rgba(255, 255, 255, 0.6);
  --line: #323232;
  --blue: #497fde;
  --page-left: clamp(40px, calc(40px + (100vw - 1280px) * 0.046875), 70px);
  --page-right: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: 4px; }
.shell {
  width: min(calc(100% - var(--page-left) - var(--page-right)), 1120px);
  margin-left: max(var(--page-left), calc((100% - 1920px) / 2 + 70px));
}
.legal-header {
  display: flex;
  width: min(calc(100% - var(--page-left) - var(--page-right)), 1810px);
  min-height: 112px;
  margin-left: max(var(--page-left), calc((100% - 1920px) / 2 + 70px));
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 21px;
  font: 500 27px/32px "IBM Plex Mono", ui-monospace, monospace;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--blue);
  font-size: 18px;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.back:hover, .back:focus-visible { background: #6494eb; }
.legal-main { padding: clamp(96px, 8vw, 154px) 0 200px; }
.eyebrow {
  margin: 0 0 32px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
}
h1 {
  max-width: 1040px;
  margin: 0;
  font: 400 clamp(46px, 4.4vw, 84px)/1.06 "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
}
.lead { max-width: 760px; margin: 40px 0 96px; color: var(--secondary); font-size: 20px; line-height: 1.5; }
.notice { margin: 0 0 40px; padding: 20px 24px; border-left: 3px solid var(--blue); background: rgba(73, 127, 222, 0.14); }
.legal-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0 80px;
  padding: 48px 0;
  scroll-margin-top: 32px;
}
.legal-section h2 {
  grid-column: 1;
  margin: 0;
  color: var(--secondary);
  font: 400 16px/20px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}
.legal-section > :not(h2) { grid-column: 2; }
.legal-section > :nth-child(2) { margin-top: 0; }
.legal-section h3 { margin: 32px 0 12px; font-size: 20px; }
.legal-section p, .legal-section li { max-width: 900px; color: var(--secondary); line-height: 1.65; }
.legal-section a { color: #8eb5ff; }
.legal-section ul, .legal-section ol { padding-left: 24px; }
.legal-section li + li { margin-top: 10px; }
.details { display: grid; gap: 0; margin: 0; }
.details div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; }
.details dt { color: var(--secondary); }
.details dd { margin: 0; }
.placeholder { padding: 2px 6px; border-radius: 4px; background: rgba(73, 127, 222, 0.18); color: #b8d1ff; }
.legal-footer {
  width: min(calc(100% - var(--page-left) - var(--page-right)), 1810px);
  margin-left: max(var(--page-left), calc((100% - 1920px) / 2 + 70px));
  padding: 0 0 48px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 18px;
}
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 20px; }
.legal-footer a:hover, .legal-footer a:focus-visible { color: #fff; }

@media (max-width: 620px) {
  :root { --page-left: 16px; --page-right: 16px; }
  body { font-size: 16px; }
  .shell, .legal-header, .legal-footer { width: calc(100% - 32px); margin-inline: 16px; }
  .legal-header { min-height: 78px; }
  .brand { gap: 9px; font-size: 18px; line-height: 22px; }
  .brand img { width: 34px; height: 34px; }
  .back { min-height: 36px; padding: 7px 9px; font-size: 14px; }
  .legal-main { padding: 80px 0; }
  .eyebrow { margin-bottom: 24px; }
  h1 { font-size: 40px; line-height: 44px; }
  .lead { margin: 28px 0 64px; font-size: 17px; }
  .legal-section { padding: 36px 0; }
  .legal-section { grid-template-columns: 1fr; gap: 20px; }
  .legal-section h2, .legal-section > :not(h2) { grid-column: 1; }
  .legal-section h2 { font-size: 14px; line-height: 18px; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .legal-footer { padding-bottom: 40px; }
}
