/* THE EILYN STRONG PROJECT, INCORPORATED
   Legal pages (privacy.html, terms-of-service.html)
   Loaded alone — this file defines its own dark background. */

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  background: #151219;
  color: #F2EFF4;
}

/* scope isolation — never allow stray section backgrounds inside legal content */
.legal-page .legal-content section {
  background-color: transparent !important;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
}

p {
  margin: 0 0 18px;
  color: #F2EFF4;
}

a {
  color: #6F58A0;
  text-decoration: none;
}

a:hover {
  color: #C9BCE0;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #F2EFF4;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #F2EFF4;
}

:focus-visible {
  outline: 2px solid #C9BCE0;
  outline-offset: 2px;
}

/* ===== Legal header ===== */
.legal-header {
  background: #211B2C;
  border-bottom: 1px solid #6F58A0;
  padding: 52px 0 46px;
}

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.legal-square {
  width: 14px;
  height: 14px;
  background: #6F58A0;
  flex: none;
}

.legal-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #F2EFF4;
  line-height: 1.1;
}

.legal-caption {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #6F58A0;
  text-transform: uppercase;
}

.legal-header h1 {
  margin: 36px 0 10px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #F2EFF4;
}

.legal-sub {
  margin: 0;
  font-size: 15px;
  color: #C9BCE0;
}

/* ===== Layout ===== */
.legal-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-content {
  padding-top: 42px;
  padding-bottom: 70px;
}

/* ===== Table of contents ===== */
.toc {
  position: sticky;
  top: 24px;
  margin-top: 42px;
  background: #211B2C;
  border: 1px solid #3A2F4D;
  padding: 24px 22px;
}

.toc h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6F58A0;
  margin: 0 0 16px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

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

.toc a {
  color: #C9BCE0;
  font-size: 14px;
  line-height: 1.7;
}

.toc a:hover {
  color: #6F58A0;
}

/* ===== Legal content ===== */
.legal-content h2 {
  color: #6F58A0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  scroll-margin-top: 30px;
}

.legal-content section {
  padding: 30px 0;
  border-bottom: 1px solid #2A2438;
}

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

/* ===== Legal footer ===== */
.legal-footer {
  background: #151219;
  border-top: 1px solid #6F58A0;
  padding: 30px 0;
}

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

.legal-home-link {
  color: #6F58A0;
  font-weight: 700;
  letter-spacing: 1px;
}

.legal-home-link:hover {
  color: #C9BCE0;
}

.legal-footer p {
  margin: 0;
  font-size: 13px;
  color: #F2EFF4;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc {
    position: static;
  }

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