.legal-page {
  min-height: 100vh;
}

.legal-main {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 58px;
}

.legal-layout {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.6fr);
  border: 1px solid rgba(74, 44, 59, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 90px rgba(74, 44, 59, 0.1);
  animation: legal-reveal 0.7s var(--ease-out) both;
}

.legal-hero {
  display: flex;
  position: relative;
  min-height: 710px;
  padding: 54px 42px 34px;
  overflow: hidden;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(155deg, #f9dbe4 0%, #f1bacd 58%, #eab1c4 100%);
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  border: 1px solid rgba(74, 44, 59, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.legal-hero::before {
  top: 235px;
  left: 50%;
  width: 330px;
  height: 330px;
  transform: translateX(-50%);
}

.legal-hero::after {
  top: 292px;
  left: 50%;
  width: 218px;
  height: 218px;
  border-style: dashed;
  transform: translateX(-50%);
}

.legal-hero-privacy {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(155deg, #e4edf5 0%, #e8d8e0 54%, #f1c9d7 100%);
}

.legal-kicker {
  display: flex;
  position: relative;
  z-index: 2;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: #8a4561;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(215, 128, 160, 0.14);
}

.legal-hero h1 {
  position: relative;
  z-index: 2;
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(43px, 4.7vw, 67px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.legal-hero h1 em {
  color: #9f4968;
  font-weight: 400;
}

.legal-intro {
  position: relative;
  z-index: 2;
  margin: 24px 0 0;
  color: #684b58;
  font-size: 13px;
  line-height: 1.65;
}

.legal-illustration {
  display: grid;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 315px;
  margin: 52px 0 0;
  place-items: center;
}

.legal-illustration img {
  width: min(270px, 88%);
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(74, 44, 59, 0.16));
  animation: legal-bunny-float 4s ease-in-out infinite;
}

.legal-updated {
  position: relative;
  z-index: 2;
  margin: 5px 0 0;
  color: #764e5e;
  font-size: 9px;
  font-weight: 700;
}

.legal-content {
  padding: 52px clamp(34px, 5vw, 74px) 64px;
  background: rgba(255, 255, 255, 0.7);
}

.legal-toc {
  display: flex;
  margin-bottom: 42px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}

.legal-toc a {
  padding: 7px 10px;
  border: 1px solid rgba(74, 44, 59, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.legal-toc a:hover {
  border-color: rgba(215, 128, 160, 0.45);
  color: var(--ink);
}

.legal-content section {
  scroll-margin-top: 28px;
}

.legal-content section + section {
  margin-top: 37px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-content p,
.legal-content li {
  color: #67545d;
  font-size: 12px;
  line-height: 1.78;
}

.legal-content p {
  margin: 0;
}

.legal-content p + p {
  margin-top: 13px;
}

.legal-content ul {
  display: grid;
  margin: 15px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.legal-content li {
  position: relative;
  padding-left: 18px;
}

.legal-content li::before {
  position: absolute;
  top: 0.82em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.legal-content a {
  color: #9f4968;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-footer {
  display: flex;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 9px;
}

.legal-footer-brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.legal-footer-brand span {
  color: var(--coral);
}

.legal-footer p {
  margin: 0;
}

.legal-footer nav {
  display: flex;
  margin-left: auto;
  gap: 18px;
}

.legal-footer nav a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer nav a[aria-current="page"] {
  color: var(--ink);
}

@keyframes legal-reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
}

@keyframes legal-bunny-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

  .legal-hero {
    min-height: auto;
    padding: 38px 32px 24px;
  }

  .legal-hero::before,
  .legal-hero::after {
    display: none;
  }

  .legal-hero h1 {
    font-size: 51px;
  }

  .legal-illustration {
    position: absolute;
    right: 25px;
    bottom: 26px;
    width: 190px;
    min-height: 0;
  }

  .legal-intro {
    max-width: calc(100% - 210px);
  }

  .legal-updated {
    margin-top: 42px;
  }

  .legal-content {
    padding: 40px 34px 48px;
  }
}

@media (max-width: 620px) {
  .legal-main {
    width: min(100% - 28px, 1160px);
    padding: 16px 0 38px;
  }

  .legal-layout {
    border-radius: 24px;
  }

  .legal-hero {
    padding: 29px 23px 22px;
  }

  .legal-hero h1 {
    margin-top: 20px;
    font-size: 40px;
  }

  .legal-intro {
    max-width: calc(100% - 100px);
    margin-top: 16px;
    font-size: 11px;
  }

  .legal-illustration {
    right: -2px;
    bottom: 18px;
    width: 118px;
  }

  .legal-updated {
    margin-top: 54px;
    font-size: 8px;
  }

  .legal-content {
    padding: 29px 22px 37px;
  }

  .legal-toc {
    margin-bottom: 30px;
    padding-bottom: 17px;
  }

  .legal-content section + section {
    margin-top: 29px;
    padding-top: 27px;
  }

  .legal-content h2 {
    font-size: 24px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 11px;
    line-height: 1.72;
  }

  .legal-footer {
    width: min(100% - 28px, 1160px);
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .legal-footer nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-layout,
  .legal-illustration img {
    animation: none;
  }
}
