/* Legal / policy pages – layout inspired by bonusfan.com/Privacy */

.legal-page {
  background: var(--bg-primary);
  padding: clamp(32px, 6vw, 56px) 0 clamp(48px, 8vw, 80px);
  min-height: calc(100vh - var(--header-height) - 200px);
}

.legal-page__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-inline);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: var(--color-gold);
  color: var(--color-gold-text);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.legal-page__back:hover {
  filter: brightness(1.08);
}

.legal-page__back:active {
  transform: scale(0.98);
}

.legal-page__back-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.legal-content__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: clamp(28px, 5vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content__body {
  font-size: 15px;
  line-height: 1.75;
  color: #e8e0dc;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.legal-content__body h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 400;
  color: var(--color-gold);
  margin: 2em 0 0.75em;
  line-height: 1.25;
}

.legal-content__body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.5em 0 0.5em;
  line-height: 1.4;
}

.legal-content__body p {
  margin: 0 0 1em;
}

.legal-content__body p:last-child {
  margin-bottom: 0;
}

.footer-nav a.is-active {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 899px) {
  .legal-page__back {
    align-self: flex-start;
    margin-inline: 0;
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .legal-page__back-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .legal-page__back-icon {
    width: 20px;
    height: 20px;
  }
}
