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

:root {
  --lime: #CCFF00;
  --black: #0A0A0A;
  --white: #FAFAFA;
  --gray: #888;
  --gray-light: #E8E8E8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Onest', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
}

.legal-header__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 4vw, 22px);
  letter-spacing: -0.03em;
}

.logo b {
  background: var(--lime);
  padding: 2px 7px 3px;
  border-radius: 6px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  border: 2px solid var(--black);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.legal-back:hover {
  transform: translateY(-1px);
  background: var(--lime);
}

.legal-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) 20px clamp(32px, 6vw, 48px);
}

.legal-hero__pill {
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
  margin-bottom: 16px;
}

.legal-hero__meta {
  font-size: 14px;
  color: var(--gray);
}

.legal-hero__meta strong {
  color: var(--black);
  font-weight: 600;
}

.legal-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px clamp(64px, 10vw, 96px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 6vw, 56px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 80px;
}

.legal-nav__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.legal-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-nav a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--gray);
  transition: color 0.2s, background 0.2s;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--black);
  background: rgba(204, 255, 0, 0.25);
}

.legal-content section {
  scroll-margin-top: 96px;
  padding-bottom: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--gray-light);
}

.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.legal-content h2 span {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  background: var(--lime);
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.legal-content p {
  margin-bottom: 14px;
  font-size: clamp(15px, 2vw, 16px);
  color: #333;
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}

.legal-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: clamp(15px, 2vw, 16px);
  color: #333;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 2px;
  transform: rotate(45deg);
}

.legal-content a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--lime);
}

.legal-content a:hover {
  background: rgba(204, 255, 0, 0.35);
}

.legal-callout {
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 20px;
}

.legal-callout p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.legal-callout a {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.legal-callout strong {
  color: var(--lime);
}

.legal-footer {
  border-top: 1px solid var(--gray-light);
  padding: 40px 20px 48px;
  text-align: center;
}

.legal-footer .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.legal-footer__links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--lime);
}

.legal-footer__copy {
  font-size: 12px;
  color: var(--gray);
}

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

  .legal-nav {
    position: relative;
    top: auto;
    margin-bottom: 32px;
    padding: 16px;
    background: #fff;
    border: 2px solid var(--black);
    border-radius: 16px;
    box-shadow: 0 4px 0 var(--black);
  }

  .legal-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .legal-nav a {
    font-size: 12px;
    padding: 10px;
  }

  .legal-content h2 {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .legal-nav ul {
    grid-template-columns: 1fr;
  }

  .legal-header__inner {
    padding: 14px 16px;
  }

  .legal-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-layout {
    padding-left: 16px;
    padding-right: 16px;
  }
}
