/* ============================================================
   ApplianceNow — Legal Pages Stylesheet (privacy, terms)
   Loaded ONLY by legal pages. Steel-slate dark theme.
   ============================================================ */

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

body {
  background-color: #12151A;
  color: #E4E9EE;
  font-size: 16px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ Legal page header (solid background) ============ */

.legal-header {
  background-color: #1B2026;
  border-bottom: 3px solid #5F7484;
}

.legal-header-top {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2A3037;
}

.legal-brand {
  color: #D8DEE4;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 16px;
}

.legal-brand:hover {
  color: #E4E9EE;
  text-decoration: none;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: #D8DEE4;
  font-size: 14px;
}

.legal-nav a:hover {
  color: #E4E9EE;
  text-decoration: none;
  border-bottom: 2px solid #5F7484;
}

.legal-title-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.legal-title {
  color: #E4E9EE;
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.legal-meta {
  color: #D8DEE4;
  font-size: 14px;
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* ============ Legal content container ============ */

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

.legal-body {
  padding: 56px 0 72px;
}

/* ============ Table of contents ============ */

.toc {
  background-color: #1B2026;
  border-top: 3px solid #5F7484;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.toc-title {
  color: #E4E9EE;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  margin: 8px 0;
}

.toc-list a {
  color: #D8DEE4;
  font-size: 15px;
}

.toc-list a:hover {
  color: #E4E9EE;
  text-decoration: none;
  border-bottom: 1px solid #5F7484;
}

/* ============ Scope isolation: sections stay transparent ============ */

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

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

/* ============ Legal sections ============ */

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

.legal-content section h2 {
  color: #E4E9EE;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  padding-top: 18px;
  border-top: 1px solid #2A3037;
  scroll-margin-top: 24px;
}

.legal-content section h2::before {
  content: "\2192";
  color: #5F7484;
  margin-right: 12px;
}

.legal-content section p {
  color: #D8DEE4;
  font-size: 16px;
  margin-top: 14px;
}

.legal-content section ul,
.legal-content section ol {
  color: #D8DEE4;
  font-size: 16px;
  margin-top: 12px;
  padding-left: 26px;
}

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

.legal-content section strong {
  color: #E4E9EE;
}

.legal-content a {
  color: #8AA0B0;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #E4E9EE;
}

/* ============ Legal footer ============ */

.legal-footer {
  background-color: #1B2026;
  border-top: 3px solid #5F7484;
  padding: 26px 0;
}

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

.legal-footer p {
  color: #D8DEE4;
  font-size: 14px;
  margin: 4px 0;
}

.legal-footer a {
  color: #E4E9EE;
  text-decoration: underline;
}

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

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

@media (max-width: 640px) {
  .legal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-title-block {
    padding: 40px 24px 36px;
  }

  .toc {
    padding: 22px;
  }

  .legal-body {
    padding: 40px 0 56px;
  }
}
