/* ============================================================
   WSENGINEER - Legal pages stylesheet (privacy / terms)
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #FBF7F1;
  color: #7A6B58;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.legal-page * {
  box-sizing: border-box;
}

/* Scope isolation: content sections inside the legal body never
   carry an opaque background that could clash with the light theme. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page a {
  color: #E8762D;
  text-decoration: none;
}

.legal-page a:hover {
  color: #C85E1E;
  text-decoration: underline;
}

/* ============================================================
   Legal page header
   Solid safety-orange band; the h1 sits in strong white contrast.
   ============================================================ */

.legal-header {
  background-color: #E8762D;
  color: #FFFFFF;
  padding: 56px 0 54px;
}

.legal-header .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.legal-header p {
  font-size: 16px;
  color: #FBE3D0;
  margin: 0;
}

.legal-header .legal-meta {
  display: inline-block;
  background-color: #FFFFFF;
  color: #E8762D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.legal-header a {
  color: #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

.legal-header a:hover {
  color: #2A2118;
  text-decoration: none;
  border-bottom-color: #2A2118;
}

/* ============================================================
   Layout
   Any container with a max-width must centre itself and pad
   horizontally so content never touches the viewport edges.
   ============================================================ */

.legal-content {
  padding: 52px 0 40px;
}

.legal-content .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content .container-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content .toc-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Table of contents
   Styled strictly with the .toc class so the shared navigation
   never receives sticky positioning from a bare nav selector.
   ============================================================ */

.toc {
  background-color: #F3E8DA;
  border: 1px solid #E8DCC8;
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2A2118;
  margin: 0 0 14px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
}

.toc ul li {
  margin: 0;
  padding: 0;
}

.toc ul li a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2A2118;
  padding: 5px 0;
  border-bottom: 1px solid #E8DCC8;
}

.toc ul li a:hover {
  color: #E8762D;
  text-decoration: none;
}

/* ============================================================
   Content typography
   Deep ink headings and iron-tan body text on the warm paper
   background keep strong contrast throughout.
   ============================================================ */

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: #2A2118;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8762D;
}

.legal-content h2 .sec-num {
  display: inline-block;
  min-width: 34px;
  font-weight: 800;
  color: #E8762D;
}

.legal-content h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #2A2118;
  margin: 22px 0 10px;
}

.legal-content p {
  font-size: 15.5px;
  color: #7A6B58;
  margin: 0 0 14px;
}

.legal-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.legal-content ul li {
  font-size: 15.5px;
  color: #7A6B58;
  margin: 0 0 8px;
  padding-left: 22px;
  position: relative;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background-color: #E8762D;
  border-radius: 2px;
}

.legal-content ol {
  margin: 0 0 16px;
  padding: 0 0 0 22px;
}

.legal-content ol li {
  font-size: 15.5px;
  color: #7A6B58;
  margin: 0 0 8px;
}

.legal-content strong {
  color: #2A2118;
  font-weight: 700;
}

.legal-content .highlight {
  background-color: #F3E8DA;
  border-left: 4px solid #E8762D;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 16px;
}

.legal-content .highlight p {
  margin: 0;
}

/* Back-to-top helper inside the legal body */
.back-top {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #E8762D;
  margin-top: 6px;
}

/* ============================================================
   Legal footer
   Compact strip that links back to the homepage.
   ============================================================ */

.legal-footer {
  background-color: #2A2118;
  color: #FFFFFF;
  padding: 24px 0;
}

.legal-footer .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-footer p {
  font-size: 13px;
  color: #FFFFFF;
  margin: 0;
}

.legal-footer a {
  font-size: 13px;
  color: #FFFFFF;
}

.legal-footer a:hover {
  color: #E8762D;
}

.legal-footer .legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .legal-content h2 {
    font-size: 21px;
  }

  .legal-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
