/* ========== LEGAL PAGES (Privacy / Terms) ========== */

.legal-hero {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  padding: calc(var(--header-height) + 48px) 0 72px;
  overflow: hidden;
}

.legal-hero__glow {
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(242, 230, 0, 0.14) 0%, transparent 65%);
  top: -80px;
  right: -120px;
  pointer-events: none;
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.legal-breadcrumb a:hover {
  color: var(--color-accent);
}

.legal-hero__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.legal-hero__label-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.legal-hero__label-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  max-width: 80px;
}

.legal-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-hero__square {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  animation: accentSquareSpin 3.5s linear infinite;
  transform-origin: center center;
}

.legal-hero__desc {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

/* Body */
.legal-body {
  padding: var(--section-pad) 0;
  background: #fafaf8;
}

.legal-body__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 24px 20px;
}

.legal-toc__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.legal-toc__list a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1.4;
  transition: color 0.2s;
}

.legal-toc__list a:hover {
  color: #0a0a0a;
}

.legal-toc__cta {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 12px 16px;
}

.legal-content {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.legal-content__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-section__index {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 800;
}

.legal-section__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.legal-section__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.legal-section__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-light);
}

.legal-section__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a0a0a;
  color: var(--color-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-content__note {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.75);
}

.legal-content__note a {
  color: var(--color-accent);
  font-weight: 700;
}

.legal-content__note a:hover {
  text-decoration: underline;
}

/* CTA */
.legal-cta {
  background: #0a0a0a;
  padding: 56px 0;
}

.legal-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.legal-cta__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  line-height: 1.6;
}

.legal-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.legal-cta__ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.legal-cta__ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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

  .legal-toc {
    position: static;
  }

  .legal-toc__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: calc(var(--header-height) + 32px) 0 48px;
  }

  .legal-toc__list {
    grid-template-columns: 1fr;
  }

  .legal-cta__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .legal-cta__actions {
    width: 100%;
    justify-content: center;
  }

  .legal-cta__actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }
}
