:root {
  --bg: #f7f7f5;
  --ink: #111;
  --muted: #747874;
  --line: #dfe1dc;
  --green: #21c968;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

a {
  color: inherit;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.legal-brand svg {
  width: 18px;
  height: 19px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555a56;
  font-size: 13px;
  text-decoration: none;
}

.back-link span {
  transition: transform 0.25s ease;
}

.back-link:hover span {
  transform: translateX(-3px);
}

.legal-hero {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 20px clamp(70px, 9vw, 120px);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  width: 320px;
  height: 180px;
  content: "";
  background-image: radial-gradient(circle, #111 1px, transparent 1.25px);
  background-size: 10px 16px;
  opacity: 0.08;
  mask-image: linear-gradient(90deg, transparent, #000, transparent);
  animation: legal-drift 9s ease-in-out infinite;
}

.legal-hero::before {
  bottom: -30px;
  left: -80px;
  transform: rotate(8deg);
}

.legal-hero::after {
  top: 10px;
  right: -80px;
  transform: rotate(-8deg);
  animation-delay: -4.5s;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #767b77;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-kicker::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(33 201 104 / 12%);
}

.legal-hero h1 {
  margin-top: 23px;
  font-size: clamp(48px, 7vw, 98px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.legal-hero p {
  max-width: 520px;
  margin: 23px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 700px);
  gap: clamp(50px, 9vw, 130px);
  justify-content: center;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) 0;
}

.legal-toc {
  position: sticky;
  top: 30px;
  align-self: start;
}

.legal-toc strong {
  display: block;
  margin-bottom: 17px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: #7b807c;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: #111;
  transform: translateX(3px);
}

.legal-copy section {
  padding: 0 0 54px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

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

.legal-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.legal-copy h3 {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
}

.legal-copy p,
.legal-copy li {
  color: #5f6560;
  font-size: 14px;
  line-height: 1.75;
}

.legal-copy p {
  margin-top: 18px;
}

.legal-copy ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0 20px;
}

.legal-note {
  padding: 20px 22px;
  margin-top: 24px;
  color: #405148;
  font-size: 13px;
  line-height: 1.6;
  background: #e5f5eb;
  border-left: 3px solid #63c987;
  border-radius: 0 12px 12px 0;
}

.legal-footer {
  padding: 38px 20px;
  color: #858b86;
  background: #101210;
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: 11px;
}

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

.legal-footer a {
  color: #b9beba;
  text-decoration: none;
}

@keyframes legal-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 18px -8px; }
}

:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .legal-hero::before,
  .legal-hero::after {
    width: 210px;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
