/* =========================================================
   ZERC LLC — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   Palette: Midnight Azure + Periwinkle + Aqua
   ========================================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

.legal-page {
  background-color: #0B0F1A;
  color: #EDF1FF;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.legal-page a {
  color: #7A8CFF;
  text-decoration: none;
}

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

/* ---------- Legal header ---------- */
.legal-header {
  background: linear-gradient(135deg, #101831 0%, #0E1430 55%, #161D38 100%);
  border-bottom: 1px solid #232C4D;
  padding: 72px 24px 56px;
  text-align: center;
}

.legal-header .crumb {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3ED5B0;
  margin-bottom: 16px;
}

.legal-header h1 {
  color: #EDF1FF;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto 18px;
}

.legal-header .meta {
  color: #9AA6C6;
  font-size: 15px;
}

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

/* Scope isolation: never tint sections inside the legal body content */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content {
  padding: 64px 0 0;
}

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

.legal-content h2 {
  color: #EDF1FF;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #232C4D;
}

.legal-content h3 {
  color: #EDF1FF;
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 10px;
}

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

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

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

.legal-content strong {
  color: #EDF1FF;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #10162A;
  border: 1px solid #232C4D;
  border-radius: 16px;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.toc h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3ED5B0;
}

.toc ol {
  list-style: none;
  margin: 0;
  columns: 1;
}

.toc li {
  margin-bottom: 6px;
}

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

.toc a:hover {
  color: #7A8CFF;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #10162A;
  border-top: 1px solid #232C4D;
  padding: 40px 24px;
  text-align: center;
  color: #6F7AA0;
  font-size: 14px;
}

.legal-footer .back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #7A8CFF;
  font-weight: 600;
}

.legal-footer .back-link:hover {
  color: #3ED5B0;
}

.legal-footer address {
  font-style: normal;
  margin-top: 10px;
  color: #9AA6C6;
}

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 32px;
  }
  .legal-header {
    padding: 56px 20px 44px;
  }
  .legal-content .container {
    padding: 0 20px;
  }
}
