/* Legal Pages Styling */

.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0C0A09;
}

.legal-main {
  flex: 1;
}

.legal-page {
  background: #0C0A09;
  color: #FAFAF9;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.legal-back {
  padding: 1.5rem;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, #0C0A09 0%, rgba(12, 10, 9, 0.9) 100%);
  z-index: 10;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.3);
  background: #1C1917;
  color: #D4A574;
  transition: all 0.25s ease;
}

.back-button:hover {
  background: #D4A574;
  color: #0C0A09;
  border-color: #D4A574;
}

.back-button svg {
  width: 24px;
  height: 24px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Prose styling for markdown content */
.prose {
  color: #A8A29E;
  line-height: 1.75;
}

.prose h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: #FAFAF9;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #FAFAF9;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #D4A574;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose strong {
  color: #FAFAF9;
  font-weight: 600;
}

.prose a {
  color: #D4A574;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #E8C9A4;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose ul li {
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.prose code {
  background: #1C1917;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose blockquote {
  border-left: 3px solid #D4A574;
  padding-left: 1rem;
  margin-left: 0;
  color: #78716C;
  font-style: italic;
}

/* Legal Footer */
.legal-footer {
  background: #0C0A09;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.legal-footer-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #78716C;
  text-decoration: none;
}

.legal-footer-logo:hover {
  color: #A8A29E;
}

.legal-footer-links {
  display: flex;
  gap: 1.5rem;
}

.legal-footer-links a {
  font-size: 0.875rem;
  color: #78716C;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: #D4A574;
}

/* Privacy Overview Links */
.privacy-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.privacy-link-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #1C1917;
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.privacy-link-card:hover {
  background: #292524;
  border-color: rgba(212, 165, 116, 0.4);
  transform: translateY(-2px);
}

.privacy-link-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 10px;
  color: #D4A574;
}

.privacy-link-icon svg {
  width: 24px;
  height: 24px;
}

.privacy-link-content {
  flex: 1;
  min-width: 0;
}

.privacy-link-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #FAFAF9;
  margin: 0 0 0.25rem 0;
  padding: 0;
  border: none;
}

.privacy-link-content p {
  font-size: 0.875rem;
  color: #A8A29E;
  margin: 0 0 0.5rem 0;
}

.privacy-link-label {
  font-size: 0.75rem;
  color: #78716C;
  font-style: italic;
}

.privacy-link-arrow {
  flex-shrink: 0;
  color: #D4A574;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.privacy-link-card:hover .privacy-link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.privacy-link-arrow svg {
  width: 20px;
  height: 20px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .legal-back {
    padding: 1rem;
  }

  .back-button {
    width: 40px;
    height: 40px;
  }

  .back-button svg {
    width: 20px;
    height: 20px;
  }

  .legal-content {
    padding: 1rem 1rem 3rem;
  }

  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.25rem;
  }

  .privacy-link-card {
    padding: 1rem;
    gap: 1rem;
  }

  .privacy-link-icon {
    width: 40px;
    height: 40px;
  }

  .privacy-link-icon svg {
    width: 20px;
    height: 20px;
  }

  .privacy-link-content h3 {
    font-size: 1rem;
  }

  .privacy-link-content p {
    font-size: 0.8125rem;
  }
}
