/* =========================================================
   PlayCrate — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   Loaded alone (never together with style.css). Same DARK
   grape-violet theme: #141019 background, ivory text,
   grape violet h2 headings.
   ========================================================= */

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

body {
  background: #141019;
  color: #F1EDF6;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #C8B3EE;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: #D8CFF0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #D8CFF0;
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Scope isolation: legal content sections must never inherit
   a colored background from any other stylesheet. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal header (a <header> element, never <section>) ---------- */

.legal-hero {
  background: linear-gradient(135deg, #7B5EA7 0%, #3E2F5E 55%, #1E1826 100%);
  padding: 76px 0 68px;
  border-bottom: 1px solid #2A2138;
}

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

.legal-back {
  display: inline-block;
  color: #F1EDF6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #1E1826;
  border: 1px solid #C8B3EE;
  border-radius: 20px;
  padding: 8px 18px;
  margin-bottom: 26px;
}

.legal-back:hover {
  color: #D8CFF0;
  border-color: #D8CFF0;
}

.legal-eyebrow {
  color: #D8CFF0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-hero h1 {
  color: #F1EDF6;
  font-size: 46px;
  line-height: 1.12;
}

.legal-updated {
  margin-top: 16px;
  color: #D8CFF0;
  font-size: 14px;
}

.legal-lead {
  margin-top: 26px;
  max-width: 800px;
  color: #F1EDF6;
  font-size: 17px;
}

/* ---------- Table of contents ---------- */

.legal-toc {
  background: #1E1826;
  border: 1px solid #5B4791;
  border-radius: 14px;
  padding: 30px 32px;
  margin-top: 44px;
}

.legal-toc h2 {
  color: #7B5EA7;
  font-size: 21px;
  margin-bottom: 18px;
}

.legal-toc ol {
  padding-left: 24px;
}

.legal-toc li {
  margin: 7px 0;
}

.legal-toc a {
  color: #F1EDF6;
}

.legal-toc a:hover {
  color: #C8B3EE;
}

/* ---------- Legal content ---------- */

.legal-content {
  padding: 60px 0 80px;
}

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

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

.legal-content h2 {
  color: #7B5EA7;
  font-size: 28px;
  padding-top: 18px;
  margin-bottom: 14px;
  scroll-margin-top: 30px;
}

.legal-content h3 {
  color: #D8CFF0;
  font-size: 21px;
  margin: 24px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 26px;
}

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

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

.legal-content em {
  color: #D8CFF0;
}

.back-top {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Legal footer ---------- */

.legal-footer {
  background: #141019;
  border-top: 1px solid #5B4791;
  padding: 38px 0 44px;
}

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

.legal-footer p {
  color: #F1EDF6;
  font-size: 14px;
  line-height: 1.8;
}

.legal-footer a {
  color: #C8B3EE;
}

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

.legal-home-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .legal-hero {
    padding: 52px 0 48px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 24px;
  }

  .legal-toc {
    padding: 24px 22px;
  }
}
