/* ==========================================================================
   ITAMNOW - Shared legal stylesheet (privacy.html and terms-of-service.html)
   Loaded ONLY by the legal pages. The light background is defined here so the
   legal pages never depend on /css/style.css.
   ========================================================================== */

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

.legal-page {
  background-color: #F5F8F9;
  color: #5A7078;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* Scope isolation: never allow other stylesheets to paint backgrounds over
   the legal content sections. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page a { color: #3E8E9E; text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Header (a <div> or <header> element with a solid background)
   -------------------------------------------------------------------------- */
.legal-header {
  background-color: #16282E;
  border-bottom: 4px solid #3E8E9E;
}
.legal-header .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #2A4049;
}
.legal-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}
.legal-brand:hover { color: #E3EDF0; text-decoration: none; }
.legal-home-link {
  font-size: 13px;
  font-weight: 600;
  color: #E3EDF0;
}
.legal-home-link:hover { color: #FFFFFF; }
.legal-header h1 {
  padding: 40px 0 12px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  color: #FFFFFF;
}
.legal-meta {
  padding-bottom: 40px;
  font-size: 14px;
  color: #E3EDF0;
}

/* --------------------------------------------------------------------------
   Content container
   -------------------------------------------------------------------------- */
.legal-content .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-content {
  padding: 48px 0 72px;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */
.legal-page nav.toc {
  background-color: #E3EDF0;
  border: 1px solid #D8E3E6;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 44px;
}
.legal-page nav.toc h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: #16282E;
}
.legal-page nav.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
}
.legal-page nav.toc li {
  margin-bottom: 8px;
  font-size: 14px;
}
.legal-page nav.toc a { color: #3E8E9E; font-weight: 600; }
.legal-page nav.toc a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.legal-content section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.legal-content h2 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  color: #16282E;
  padding-bottom: 10px;
  border-bottom: 2px solid #E3EDF0;
  margin-bottom: 16px;
}
.legal-content h2 .sec-num { color: #3E8E9E; }
.legal-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #16282E;
  margin: 22px 0 10px;
}
.legal-content p {
  margin-bottom: 14px;
  color: #5A7078;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 22px;
  color: #5A7078;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content strong { color: #16282E; }
.legal-content .address-note {
  background-color: #E3EDF0;
  border: 1px solid #D8E3E6;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
}
.legal-content .address-note p { margin-bottom: 4px; color: #5A7078; }
.legal-content .address-note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.legal-footer {
  background-color: #16282E;
  border-top: 4px solid #3E8E9E;
}
.legal-footer .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}
.legal-footer p {
  font-size: 13px;
  color: #E3EDF0;
}
.legal-footer a { color: #FFFFFF; font-weight: 600; }
.legal-footer a:hover { color: #E3EDF0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .legal-header h1 { font-size: 30px; }
  .legal-content h2 { font-size: 22px; }
  .legal-page nav.toc ol { columns: 1; }
  .legal-header-top { flex-direction: column; align-items: flex-start; gap: 8px; }
}
