:root {
  --legal-ink: #0a0c10;
  --legal-panel: #12151b;
  --legal-paper: #f5f4f0;
  --legal-copy: #262a31;
  --legal-muted: #6c7078;
  --legal-line: #d9d7d0;
  --legal-orange: #ff5a0a;
  --legal-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--legal-copy);
  background: var(--legal-paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #ff5a0a66;
  outline-offset: 4px;
}

.legal-header {
  min-height: 76px;
  padding: 0 max(5vw, 28px);
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--legal-white);
  background: var(--legal-ink);
  border-bottom: 1px solid #ffffff1c;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.legal-brand img {
  display: block;
  width: 128px;
  max-height: 48px;
  object-fit: contain;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.legal-header nav a {
  text-decoration: none;
}

.legal-header nav a:hover {
  color: var(--legal-orange);
}

.legal-login {
  padding: 9px 16px;
  border: 1px solid #ffffff55;
  border-radius: 7px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 76px max(6vw, 32px) 70px;
  color: var(--legal-white);
  background:
    radial-gradient(circle at 78% 20%, #ff5a0a2b, transparent 25%),
    linear-gradient(115deg, #090b0e 0 62%, #171a20 100%);
}

.legal-hero::after {
  content: '';
  position: absolute;
  right: 6%;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow:
    0 0 0 54px #ffffff08,
    0 0 0 108px #ffffff05;
}

.legal-eyebrow,
.legal-kicker {
  color: var(--legal-orange);
  font:
    700 11px/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-hero p {
  max-width: 650px;
  margin: 0;
  color: #d4d6da;
  font-size: 17px;
}

.legal-updated {
  display: inline-block;
  margin-top: 28px;
  padding-top: 12px;
  color: #aeb2ba;
  border-top: 1px solid #ffffff2b;
  font-size: 12px;
}

.legal-layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 80px;
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: space-between;
  gap: 72px;
}

.legal-toc {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 24px 22px 24px 34px;
  color: #d8d9dc;
  background: var(--legal-panel);
  border-radius: 12px;
  box-shadow: 0 18px 45px #10121617;
}

.legal-toc::before {
  content: '';
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 18px;
  width: 2px;
  background: linear-gradient(var(--legal-orange), #ff5a0a22);
}

.legal-toc strong {
  display: block;
  margin-bottom: 13px;
  color: var(--legal-white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-toc a {
  position: relative;
  display: block;
  padding: 7px 0;
  color: #b9bdc5;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -20px;
  width: 7px;
  height: 7px;
  background: var(--legal-panel);
  border: 2px solid var(--legal-orange);
  border-radius: 50%;
}

.legal-toc a:hover {
  color: var(--legal-white);
}

.legal-content {
  min-width: 0;
}

.legal-intro {
  margin: 0 0 44px;
  padding: 24px 26px;
  background: var(--legal-white);
  border-left: 4px solid var(--legal-orange);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 14px 34px #191c2210;
  font-size: 16px;
}

.legal-section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--legal-line);
  scroll-margin-top: 28px;
}

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

.legal-section h2 {
  margin: 6px 0 15px;
  color: #111318;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 23px 0 8px;
  color: #1a1d23;
  font-size: 15px;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 12px 0 16px;
  padding-left: 20px;
}

.legal-section li {
  margin: 7px 0;
  padding-left: 5px;
}

.legal-section li::marker {
  color: var(--legal-orange);
}

.legal-note {
  padding: 18px 20px;
  background: #eceae4;
  border-radius: 9px;
  color: #43474f;
  font-size: 14px;
}

.legal-footer {
  padding: 30px max(5vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #aeb2ba;
  background: var(--legal-ink);
  font-size: 13px;
}

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

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 800px) {
  .legal-header {
    min-height: 68px;
    padding-inline: 20px;
  }

  .legal-header nav a:not(.legal-login) {
    display: none;
  }

  .legal-hero {
    padding: 58px 24px 54px;
  }

  .legal-hero::after {
    opacity: 0.55;
  }

  .legal-layout {
    width: min(100% - 32px, 760px);
    padding-top: 32px;
    display: block;
  }

  .legal-toc {
    position: relative;
    top: auto;
    margin-bottom: 36px;
  }

  .legal-intro {
    padding: 20px;
  }

  .legal-footer {
    flex-direction: column;
  }
}

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