* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.65;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header (matches the home and About pages) */
header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e1e8ed;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.logo {
  width: 12rem;
  height: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.nav-links a {
  color: #444;
  text-decoration: none;
}
.nav-links a:hover {
  color: #1d4ed8;
}

/* Legal article: a readable line length in a wide frame */
.legal {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.legal .updated {
  font-size: 0.92rem;
  color: #777;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 2.25rem 0 0.75rem;
}
.legal h3 {
  font-size: 1.05rem;
  color: #222;
  margin: 1.25rem 0 0.4rem;
}
.legal p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.legal ul {
  color: #444;
  margin: 0 0 1rem 1.25rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal a {
  color: #1d4ed8;
}
.legal .note {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-left: 3px solid #1d4ed8;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.legal .toc {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.legal .toc ol {
  margin-left: 1.25rem;
}

/* Footer (matches the home and About pages) */
footer {
  background: #fff;
  border-top: 1px solid #e1e8ed;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: #666;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img {
  width: 12rem;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
}
.footer-grid h4 {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 0.75rem;
}
.footer-grid ul {
  list-style: none;
}
.footer-grid li {
  margin-bottom: 0.5rem;
}
.footer-grid a {
  color: #555;
  text-decoration: none;
}
.footer-grid a:hover {
  color: #1d4ed8;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid #e1e8ed;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #888;
}

/* Phones: 16px gutter, single column */
@media (max-width: 760px) {
  .container {
    padding: 0 1rem;
  }
  .logo {
    width: 9rem;
  }
  .nav-links .link-hide {
    display: none;
  }
  .legal {
    padding-top: 2rem;
  }
  .legal h1 {
    font-size: 1.7rem;
  }
  .legal h2 {
    font-size: 1.15rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.75rem 1.25rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
