/* ============================
   Legal Pages - Global Styles
   ============================ */

.legal-body {
  background-color: rgba(248, 240, 241, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  text-align: left;
  padding-bottom: 3rem;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   Header / Logo
   ============================ */

.legal-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.legal-logo {
  width: 140px;
  height: auto;
  opacity: 0.95;
  display: inline-block;
}

/* ============================
   Legal Content Layout
   ============================ */

.terms {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  line-height: 1.65;
}

.terms h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #222;
}

.terms h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #333;
  font-weight: 600;
}

.terms p {
  margin-bottom: 1rem;
  color: #444;
  font-size: 1rem;
}

.terms ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
  color: #444;
}

.terms li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ============================
   Metadata Block
   ============================ */

.legal-meta {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ============================
   Back Link
   ============================ */

.back-link {
  text-align: center;
  margin-top: 2.5rem;
}

.back-link a {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link a:hover {
  color: #000;
  border-color: #000;
}

/* ============================
   Mobile Tweaks
   ============================ */

@media (max-width: 600px) {
  .terms {
    padding: 1.25rem;
  }

  .terms h1 {
    font-size: 1.7rem;
  }

  .terms h2 {
    font-size: 1.2rem;
  }

  .legal-logo {
    width: 115px;
  }
}
