/* ============================================================
   Fixngo Now Inc. — Shared Legal Stylesheet (privacy / terms)
   Legal pages load ONLY this file.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

.legal-page {
  background-color: #F6F4F0;
  color: #2A2733;
  overflow-x: hidden;
}

.legal-page a { color: #6C4AB6; text-decoration: none; }
.legal-page a:hover { color: #4A3B8F; text-decoration: underline; }

/* ---------- Scope isolation: no section backgrounds leak in ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal header (a header element, not a section) ---------- */
.legal-header {
  background: linear-gradient(135deg, #4A3B8F 0%, #6C4AB6 100%);
  padding: 72px 0 56px;
  margin-bottom: 48px;
}
.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header .legal-eyebrow {
  display: inline-block;
  background-color: #FFFFFF;
  color: #4A3B8F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 3px;
  margin-bottom: 22px;
}
.legal-header h1 {
  font-size: 44px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 14px;
}
.legal-header p {
  color: #E9E4F5;
  font-size: 17px;
  max-width: 640px;
}
.legal-header .legal-back {
  display: inline-block;
  margin-top: 26px;
  color: #FFFFFF;
  font-weight: 700;
  background-color: #4A3B8F;
  border: 2px solid #FFFFFF;
  padding: 10px 20px;
  border-radius: 4px;
}
.legal-header .legal-back:hover { background-color: #FFFFFF; color: #4A3B8F; text-decoration: none; }

/* ---------- Content layout ---------- */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.legal-intro {
  background-color: #FFFFFF;
  border: 1px solid #E9E4F5;
  border-left: 4px solid #6C4AB6;
  border-radius: 8px;
  padding: 26px 30px;
  margin-bottom: 40px;
}
.legal-intro p { color: #3A3644; font-size: 17px; }

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #E9E4F5;
  border-radius: 8px;
  padding: 30px 34px;
  margin-bottom: 48px;
}
.legal-toc h2 {
  font-size: 20px;
  color: #4A3B8F;
  margin-bottom: 18px;
  font-weight: 800;
}
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li { margin-bottom: 10px; }
.legal-toc li::before {
  counter-increment: toc;
  content: counter(toc);
  display: inline-block;
  width: 26px;
  height: 26px;
  background-color: #E9E4F5;
  color: #4A3B8F;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  line-height: 26px;
  border-radius: 3px;
  margin-right: 12px;
}
.legal-toc a { color: #2A2733; font-weight: 600; }
.legal-toc a:hover { color: #6C4AB6; text-decoration: none; }

/* ---------- Sections ---------- */
.legal-content section {
  margin-bottom: 34px;
}
.legal-content h2 {
  font-size: 26px;
  color: #4A3B8F;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E9E4F5;
}
.legal-content h3 {
  font-size: 19px;
  color: #4A3B8F;
  font-weight: 800;
  margin: 22px 0 10px;
}
.legal-content p {
  color: #3A3644;
  margin-bottom: 14px;
}
.legal-content ul {
  list-style: none;
  margin: 0 0 16px;
}
.legal-content ul li {
  color: #3A3644;
  padding: 6px 0 6px 26px;
  position: relative;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  width: 8px;
  height: 8px;
  background-color: #6C4AB6;
  transform: rotate(45deg);
}
.legal-contact-box {
  background-color: #FFFFFF;
  border: 1px solid #E9E4F5;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 18px 0;
}
.legal-contact-box p { color: #3A3644; margin-bottom: 8px; }
.legal-contact-box p:last-child { margin-bottom: 0; }
.legal-note {
  background-color: #E9E4F5;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 18px 0;
}
.legal-note p { color: #3A3644; margin-bottom: 0; }

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #4A3B8F;
  color: #D9D2EC;
  text-align: center;
  padding: 44px 24px;
  font-size: 15px;
}
.legal-footer .legal-footer-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.legal-footer a { color: #FFFFFF; text-decoration: underline; }
.legal-footer a:hover { color: #6C4AB6; }
.legal-footer p { color: #D9D2EC; line-height: 1.9; }
.legal-footer .legal-footer-brand {
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #FFFFFF;
  margin-bottom: 12px;
  font-size: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .legal-header h1 { font-size: 32px; }
  .legal-content h2 { font-size: 22px; }
}
