/* ==========================================================================
   ZuiLiu — Shared Legal Stylesheet (privacy.html & terms-of-service.html)
   Loaded ONLY by the legal pages. Never loaded by the homepage.
   ========================================================================== */

:root {
  --ivory: #F8F5F1;
  --espresso: #27171F;
  --espresso-soft: #4A3441;
  --fuchsia: #D946EF;
  --fuchsia-deep: #A21CAF;
  --fuchsia-mist: #FDF4FF;
  --fuchsia-soft: #F0ABFC;
  --white: #FFFFFF;
  --line: #E7DDD2;
  --line-fuchsia: #E9B7F3;
}

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

html {
  scroll-behavior: smooth;
}

/* Scope isolation: legal pages define their own body background/colors. */
.legal-page {
  background-color: #F8F5F1;
  color: #27171F;
}

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

a {
  color: #A21CAF;
  text-decoration: none;
}

a:hover {
  color: #D946EF;
}

/* ==========================================================================
   LEGAL HEADER (must be a div/header, never a section)
   ========================================================================== */

.legal-header {
  background: linear-gradient(135deg, #A21CAF 0%, #D946EF 60%, #F0ABFC 100%);
  padding: 72px 0 64px;
  color: #FFFFFF;
}

.legal-header .container {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header .eyebrow {
  display: inline-block;
  background: #FDF4FF;
  color: #A21CAF;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.legal-header .lede {
  color: #FDF4FF;
  font-size: 1.08rem;
  max-width: 680px;
}

.legal-header .updated {
  margin-top: 18px;
  font-size: 0.88rem;
  color: #F0ABFC;
  font-weight: 600;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.toc-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid #E7DDD2;
  padding: 26px 0;
}

.toc-wrap .container {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 0 24px;
}

.toc-wrap h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #A21CAF;
  margin-bottom: 14px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #4A3441;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc a:hover {
  background: #FDF4FF;
  color: #A21CAF;
}

/* ==========================================================================
   LEGAL CONTENT
   ========================================================================== */

.legal-content {
  padding: 56px 0 8px;
}

.legal-content .container {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scope isolation: neutralize any homepage section background bleed. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-bottom: 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid #E7DDD2;
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  color: #A21CAF;
  font-size: 1.45rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  color: #27171F;
  font-size: 1.12rem;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #4A3441;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 18px 24px;
  color: #4A3441;
}

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

.legal-content strong {
  color: #27171F;
}

.legal-content .company-block {
  background: #FDF4FF;
  border: 1px solid #E9B7F3;
  border-left: 4px solid #D946EF;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-content .company-block p {
  margin-bottom: 6px;
  color: #27171F;
}

.legal-content .company-block p:last-child {
  margin-bottom: 0;
}

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

.legal-footer {
  background: #27171F;
  border-top: 4px solid #D946EF;
  padding: 34px 0;
  color: #EDE3DC;
}

.legal-footer .container {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  color: #C9BBB4;
  font-size: 0.92rem;
}

.legal-footer a {
  color: #F0ABFC;
  font-weight: 700;
}

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

.legal-footer .sep {
  color: #A8978F;
  margin: 0 8px;
}

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

@media (max-width: 720px) {
  .toc {
    grid-template-columns: 1fr;
  }

  .legal-header {
    padding: 52px 0 44px;
  }
}
