/* Support + Privacy legal pages — same tokens as base.css */

.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--page-bg);
}

.legal-page__header {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legal-page__header .site-header__inner {
  justify-content: flex-start;
}

.legal-page__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - (var(--content-pad) * 2));
  max-width: 520px;
  padding: 24px 0 40px;
  text-align: center;
}

.legal-page__main--doc {
  justify-content: flex-start;
  max-width: 640px;
  text-align: left;
  padding-top: 24px;
  padding-bottom: 64px;
}

.support-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  animation: support-rise 0.55s ease-out both;
}

.support-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--surface);
}

.support-hero__text {
  margin: 0;
  max-width: 28em;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

.support-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: none;
  margin-top: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.support-hero__cta:hover {
  filter: brightness(1.06);
}

.support-hero__cta-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.support-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
  animation: support-rise 0.55s ease-out 0.12s both;
}

.support-fallback__label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.support-fallback__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.support-fallback__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--surface);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.support-fallback__link:hover {
  border-bottom-color: var(--surface);
}

.support-fallback__link[hidden] {
  display: none;
}

.support-privacy {
  margin-top: 28px;
  animation: support-rise 0.55s ease-out 0.2s both;
}

.support-privacy__link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.support-privacy__link:hover {
  color: var(--surface);
  border-bottom-color: var(--surface);
}

.legal-page__footer {
  width: calc(100% - (var(--content-pad) * 2));
  max-width: var(--content-max);
  padding: 20px 0 max(28px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.legal-page__footer a {
  color: inherit;
  text-decoration: none;
}

.legal-page__footer a:hover {
  color: var(--surface);
}

.legal-page__footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.privacy-doc__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.privacy-doc__updated {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--text-faint);
}

.privacy-doc__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-doc__content h2 {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.privacy-doc__content p,
.privacy-doc__content li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

.privacy-doc__content ul {
  margin: 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes support-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-hero,
  .support-fallback,
  .support-privacy {
    animation: none;
  }
}

@media (max-width: 768px) {
  .legal-page__main {
    padding: 32px 0 64px;
  }

  .support-hero__text {
    font-size: 16px;
  }

  .legal-page__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
