/*
 * Legal Pages Styles (Privacy Policy, Terms & Conditions)
 * Clean, readable styling for legal content
 */

/* =====================
   Base legal page layout
===================== */

.legal-page {
  overflow: auto;
  background-color: #f7f7f7;
  font-family: var(--font-body);
  color: var(--color-text);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================
   Header
===================== */

.legal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.logo-link {
  display: inline-block;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #1a1a1a;
}

.back-button svg {
    flex-shrink: 0;
}

.legal-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* =====================
   Content card
===================== */

.legal-content {
  flex: 1;
  background: white;
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* =====================
   Typography
===================== */

.legal-content h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 36px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 14px;
  color: #777;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-heading);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.75;
  color: var(--color-muted);
  font-weight: 300;
}

.legal-content section {
  margin-bottom: 32px;
}

.legal-content section:last-of-type {
  margin-bottom: 0;
}

/* =====================
   Lists
===================== */

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* =====================
   Links
===================== */

.legal-content a {
  color: var(--color-heading);
  text-decoration: underline;
}

.legal-content a:hover {
  text-decoration: none;
}

/* =====================
   Footer
===================== */

.legal-footer {
  margin-top: 40px;
  text-align: center;
}

/* =====================
   Mobile styles
===================== */

@media (max-width: 768px) {
  .legal-container {
    padding: 24px 16px;
  }

  .legal-content {
    padding: 32px 24px;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-content h2 {
    font-size: 1rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .legal-content {
    padding: 24px 20px;
  }

  .legal-content h1 {
    font-size: 24px;
  }
}
