:root {
  --ink: #17151e;
  --ink-soft: #575260;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --purple: #755fe2;
  --purple-dark: #5945c7;
  --purple-pale: #ebe6ff;
  --line: #dedbe5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--purple-dark); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #b8acf6; outline-offset: 4px; }

.legal-header {
  border-bottom: 1px solid rgba(23, 21, 30, .08);
  background: rgba(251, 250, 247, .96);
}

.legal-nav {
  width: min(1200px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--purple);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}

.legal-brand img { border-radius: 11px; }

.back-link {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

.legal-wrapper,
.instructions {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 112px;
}

.legal-wrapper h1,
.instructions h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}

.last-updated {
  margin: 18px 0 54px;
  color: #7a7480;
  font-size: 13px;
}

.legal-wrapper > .last-updated + p,
.instructions > p:first-of-type {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.legal-wrapper h2 {
  margin: 58px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.legal-wrapper p { margin: 12px 0; }
.legal-wrapper ul, .legal-wrapper ol { padding-left: 24px; }
.legal-wrapper li + li { margin-top: 8px; }

.legal-wrapper table {
  width: 100%;
  margin: 26px 0 40px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.legal-wrapper th,
.legal-wrapper td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-wrapper th {
  color: var(--ink-soft);
  background: #f4f1ed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.instructions h1 { margin-bottom: 24px; }
.instructions ol { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: delete-step; }
.instructions ol li { position: relative; min-height: 64px; padding: 4px 0 26px 58px; counter-increment: delete-step; }
.instructions ol li + li { border-top: 1px solid var(--line); padding-top: 26px; }
.instructions ol li::before {
  content: counter(delete-step, decimal-leading-zero);
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.instructions ol li + li::before { top: 26px; }

.instructions > p:not(:first-of-type) {
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--purple);
  background: var(--surface);
  color: var(--ink-soft);
}

.instructions code {
  display: inline-block;
  max-width: 100%;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #3f374f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.mailto-btn {
  min-height: 50px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mailto-btn:hover { background: var(--purple-dark); }

@media (max-width: 680px) {
  .legal-nav,
  .legal-wrapper,
  .instructions { width: calc(100% - 36px); }
  .legal-nav { min-height: 72px; }
  .legal-brand { font-size: 22px; }
  .legal-brand img { width: 38px; height: 38px; }
  .back-link { font-size: 12px; }
  .legal-wrapper,
  .instructions { padding: 64px 0 86px; }
  .legal-wrapper h1,
  .instructions h1 { font-size: clamp(42px, 13vw, 54px); }
  .last-updated { margin-bottom: 42px; }
  .legal-wrapper > .last-updated + p,
  .instructions > p:first-of-type { font-size: 16px; }
  .legal-wrapper h2 { margin-top: 46px; }
  .legal-wrapper table { display: block; overflow-x: auto; white-space: nowrap; }
  .instructions ol li { padding-left: 44px; }
  .instructions > p:not(:first-of-type) { padding: 18px; }
}

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