/* ============================================================
   Vis Portal Limited — wisetech.buzz
   Shared legal stylesheet for privacy.html & terms-of-service.html
   Loaded standalone (never together with style.css)
   ============================================================ */

:root {
  --bg: #0B0E14;
  --bg-2: #0F141D;
  --surface: #151B27;
  --surface-2: #1B2230;
  --border: #252E3E;
  --border-soft: #1D2433;
  --text: #E9ECF2;
  --muted: #9BA6B8;
  --muted-2: #6E7A8C;
  --accent: #FF4D8D;
  --accent-deep: #E03B7A;
  --mint: #3DDC97;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCOPE ISOLATION — never let homepage section styling bleed in
   ============================================================ */

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

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

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

.legal-header {
  background: linear-gradient(135deg, #2B1622 0%, #0F141D 60%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}

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

.legal-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 26px;
}

.legal-header .back-link:hover {
  color: var(--accent);
}

.legal-header .legal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.legal-header .legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

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

.legal-content section {
  padding: 0 0 40px;
  margin: 0 0 8px;
  background-color: transparent;
}

.legal-content section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-content section p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-content section ul,
.legal-content section ol {
  margin: 0 0 18px 22px;
  color: var(--muted);
}

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

.legal-content section li strong,
.legal-content section p strong {
  color: var(--text);
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  color: var(--mint);
}

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

.toc {
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--surface);
  padding: 28px 30px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 16px;
}

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

.toc ol li {
  counter-increment: toc;
  margin-bottom: 10px;
  padding-left: 0;
}

.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  color: var(--accent);
  margin-right: 12px;
  font-size: 0.85rem;
}

.toc ol li a {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc ol li a:hover {
  color: var(--accent);
}

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

.legal-footer {
  background-color: #080B10;
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer .legal-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.legal-footer p {
  color: var(--muted-2);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.legal-footer .back-home {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-footer .back-home:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

@media (max-width: 620px) {
  .legal-header {
    padding: 30px 0 34px;
  }

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

  .toc {
    padding: 22px 20px;
  }
}
