/* -----------------------------------
   Legal Layout
----------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111;
}

/* 🔥 Prevent full page scroll */
body {
  overflow: hidden;
}

.legal-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.legal-header {
  height: 64px;
  border-bottom: 1px solid #eee;
  background: #ffffff;

  display: flex;
  align-items: center;
}

.legal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;

  display: flex;
  align-items: center;
}

.legal-header img {
  height: 38px;
  width: auto;
  display: block;
}

/* Content */

.legal-content {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;

  overflow-y: auto; /* 🔥 only content scrolls */
  overflow-x: hidden;
  min-height: 0;
}

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

.legal-content h2 {
  font-size: 18px;
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.legal-content ul {
  padding-left: 20px;
}

/* -------------------------------------------------
   Unified Site Footer
------------------------------------------------- */

.site-footer {
  border-top: 1px solid #eee;
  background: #ffffff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #555;
}

.footer-left img {
  height: 22px;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right a {
  font-size: 13px;
  text-decoration: none;
  color: #555;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Ensure footer always sits at bottom */
.legal-page > .site-footer {
  margin-top: auto;
}