.legal-main { padding-top: 64px; }

.legal-hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 10%, rgba(1, 200, 189, 0.12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #F8FBFB 100%);
  border-bottom: 1px solid rgba(13, 86, 94, 0.08);
}

.legal-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 48px 56px;
}

.legal-title {
  font-family: Liebling, Inter, serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  max-width: 820px;
}

.legal-intro {
  font-family: Liebling, Inter, serif;
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 680px;
  margin-top: 18px;
}

.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 96px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 88px;
}

.legal-toc-label {
  font-family: Liebling, Inter, serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 14px;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.legal-toc a:hover {
  background: rgba(13, 86, 94, 0.08);
  color: var(--teal);
}

.legal-content section {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 88px;
}

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

.legal-content h2 {
  font-family: Liebling, Inter, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.legal-content h3 {
  font-family: Liebling, Inter, serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
  margin: 32px 0 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 16px;
}

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

.legal-content a:hover {
  color: var(--teal-dark);
}

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

.legal-content li {
  position: relative;
  padding-left: 21px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-600);
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-accent);
}

.legal-company {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.legal-company strong {
  display: block;
  font-family: Liebling, Inter, serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.legal-company p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .legal-hero-inner,
  .legal-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-hero-inner {
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legal-toc a {
    padding: 9px 14px;
    border: 1px solid rgba(13, 86, 94, 0.14);
    background: white;
  }
}
