/* ============================
   Base layout for legal pages
   ============================ */

html, body.legal {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body.legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffeba2; /* matches main site background */
  color: #000000;
}

/* ============================
   Main content area
   ============================ */

body.legal main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.75rem 4rem;
}

/* Headings */

body.legal h1,
body.legal h2 {
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  margin-top: 0;
}

body.legal h1 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

body.legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

/* Paragraphs & text */

body.legal p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.3rem;
}

body.legal strong {
  font-weight: 700;
}

/* Links */

body.legal a {
  color: #0047cc;
  text-decoration: underline;
}

body.legal a:hover {
  text-decoration: none;
}

/* Lists */

body.legal ul,
body.legal ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

body.legal li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

/* ============================
   Footer (shared across pages)
   ============================ */

.site-footer {
  background-color: #ffeba2;
  border-top: 3px solid #000000;
  padding: 2.5rem 0 2rem;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Copyright */

.copyright {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Footer nav links */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.95rem;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Bottom bar: contact + socials */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.contact-link {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

.divider {
  color: #000000;
}

.footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-social span {
  font-weight: 600;
}

.footer-social a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* ============================
   Small screens
   ============================ */

@media (max-width: 768px) {
  body.legal main {
    padding: 2.25rem 1.25rem 3rem;
  }

  body.legal h1 {
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
  }

  body.legal h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }

  .footer-nav {
    gap: 0.5rem 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================
   Very small screens
   ============================ */

@media (max-width: 480px) {
  body.legal main {
    padding: 2rem 1rem 2.75rem;
  }

  body.legal h1 {
    font-size: 1.75rem;
  }

  body.legal p,
  body.legal li {
    font-size: 0.95rem;
  }
}
