/* Reset & Base Styles */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fdfdfd;
  color: #222;
  line-height: 1.6;
}

main.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

h1, h2, h3 {
  font-weight: 600;
  color: #1d3557;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

p, li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
  background: #f8f9fa;
  padding: 1rem;
  border-left: 4px solid #0066cc;
  margin-top: 1.5rem;
  border-radius: 4px;
}

/* Table of Contents styling (if you add one later) */
.toc {
  background: #f0f4f8;
  border: 1px solid #dce3ec;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.toc h3 {
  margin-top: 0;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  color: #1d3557;
  font-weight: 500;
}

.toc a:hover {
  color: #e63946;
}

/* Responsive */
@media (max-width: 600px) {
  main.legal-page {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

.back-to-top {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #0077cc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.back-to-top:hover {
  color: #005599;
  text-decoration: underline;
}
