/* ============================================================
   INNOTEX — legal stylesheet (privacy.html / terms-of-service.html)
   Dark warm theme, shared legal page layout.
   Scope isolation: content sections never receive a background.
   ============================================================ */

:root {
  --ink: #191014;
  --panel: #24181A;
  --ivory: #F7EDE6;
  --salmon: #E87A5D;
  --pale: #F5B8A0;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background-color: #191014;
  color: #F7EDE6;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* ============================================================
   SCOPE ISOLATION — content sections stay transparent,
   only the page header and footer carry their own color.
   ============================================================ */

.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL HEADER (div, NOT a section) — solid panel background,
   h1 must contrast strongly with it.
   ============================================================ */

.legal-header {
  background-color: #24181A;
  border-bottom: 3px solid #E87A5D;
  padding: 58px 0 50px;
}

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

.legal-header .legal-kicker {
  display: inline-block;
  color: #F5B8A0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-header h1 {
  color: #F7EDE6;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
}

.legal-header .legal-updated {
  color: #F5B8A0;
  font-size: 14px;
  font-weight: 600;
}

.legal-header .legal-entity {
  color: #F7EDE6;
  font-size: 15px;
  max-width: 720px;
  margin-top: 12px;
}

/* ============================================================
   LEGAL CONTENT — any container with max-width MUST also
   center itself and add horizontal padding.
   ============================================================ */

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

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

/* table of contents */

.legal-content .toc-panel {
  background-color: #24181A;
  border: 1px solid #E87A5D;
  padding: 28px 32px;
  margin-bottom: 52px;
}

.legal-content .toc-panel h2 {
  color: #F5B8A0;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
}

.legal-content .toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.legal-content .toc-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #3A2622;
}

.legal-content .toc-list a {
  display: block;
  color: #F7EDE6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 0;
}

.legal-content .toc-list a:hover {
  color: #E87A5D;
}

/* body sections */

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

.legal-content h2 {
  color: #E87A5D;
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-top: 6px;
}

.legal-content h3 {
  color: #F7EDE6;
  font-size: 18px;
  font-weight: 800;
  margin: 20px 0 8px;
}

.legal-content p {
  color: #F7EDE6;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: #F7EDE6;
  font-size: 16px;
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: #F5B8A0;
  font-weight: 800;
}

.legal-content a {
  color: #E87A5D;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #1E1416;
  border-top: 2px solid #E87A5D;
  padding: 30px 0 34px;
}

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

.legal-footer .legal-home {
  color: #F7EDE6;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.legal-footer .legal-home:hover {
  color: #F5B8A0;
}

.legal-footer .legal-home .arrow {
  color: #E87A5D;
}

.legal-footer .legal-foot-line {
  color: #F5B8A0;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .legal-header {
    padding: 44px 0 38px;
  }

  .legal-header h1 {
    font-size: 32px;
  }

  .legal-content .toc-list {
    grid-template-columns: 1fr;
  }

  .legal-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
