/* ============================================================
   LEGAL PAGES (Terms of Service, Privacy Policy)
   ============================================================ */

.legal-main {
  background-color: var(--bg-app);
  min-height: 100vh;
}

/* --- Page Header ------------------------------------------- */

.legal-header {
  background-color: var(--color-primary-base);
  color: var(--color-neutral-000);
  text-align: center;
  padding: 5rem var(--space-4) 3.5rem;
}

.legal-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.legal-header-meta {
  font-size: var(--text-sm);
  opacity: 0.75;
}

.legal-header-subtitle {
  font-size: var(--text-lg);
  font-style: italic;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Container --------------------------------------------- */

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) 6rem;
}

/* --- Intro ------------------------------------------------- */

.legal-intro {
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.8;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--color-primary-base);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

/* --- Sections ---------------------------------------------- */

.legal-section {
  margin-bottom: var(--space-8);
}

.legal-heading {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary-base);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--border-subtle);
}

.legal-section p {
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* --- List -------------------------------------------------- */

.legal-list {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-list li {
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.7;
  padding-left: var(--space-4);
  position: relative;
}

.legal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary-base);
  font-weight: 700;
}

/* --- Link -------------------------------------------------- */

.legal-link {
  color: var(--color-primary-base);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover {
  opacity: 0.75;
}

/* --- Disclaimer -------------------------------------------- */

.legal-disclaimer {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  border-top: 1.5px solid var(--border-subtle);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
}

/* --- Mobile ------------------------------------------------ */

@media (max-width: 600px) {
  .legal-header {
    padding: 3rem var(--space-4) var(--space-6);
  }
}
