/* ============================================================
   Cousin Tytus llc — Legal pages stylesheet
   Used ONLY by privacy.html and terms-of-service.html
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0B0E14;
  color: #E8EAED;
  font-size: 16px;
  line-height: 1.75;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
}

/* Scope isolation: only page content sections, never the header or footer */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Any max-width container gets centered with side padding */
.legal-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Legal header ============ */

.legal-header {
  background-color: #131722;
  border-bottom: 1px solid #232A3A;
  padding: 48px 0 42px;
}

.legal-brand {
  display: inline-block;
  color: #F2F4F8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: 1px solid #3A4255;
  padding: 8px 14px;
  margin-bottom: 28px;
}

.legal-brand:hover {
  border-color: #D6336C;
  color: #D6336C;
}

.legal-header h1 {
  color: #F2F4F8;
  font-size: 46px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.legal-meta {
  color: #A6ADBB;
  font-size: 14px;
}

/* ============ Legal content ============ */

.legal-content {
  background-color: #0B0E14;
  padding: 48px 0 44px;
}

.toc {
  background-color: #131722;
  border: 1px solid #232A3A;
  padding: 30px 32px;
  margin-bottom: 52px;
}

.toc h2 {
  color: #F2F4F8;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #232A3A;
}

.toc ol {
  list-style: none;
}

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

.toc a {
  color: #C6CCD6;
  text-decoration: none;
  font-size: 15px;
}

.toc a:hover {
  color: #F2F4F8;
  text-decoration: underline;
  text-decoration-color: #D6336C;
  text-underline-offset: 3px;
}

.legal-section {
  margin-bottom: 44px;
}

.legal-section h2 {
  color: #F2F4F8;
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232A3A;
}

.legal-section h3 {
  color: #F2F4F8;
  font-size: 18px;
  margin: 20px 0 10px;
}

.legal-section p {
  color: #C6CCD6;
  margin-bottom: 14px;
}

.legal-section ul,
.legal-section ol {
  color: #C6CCD6;
  margin: 0 0 14px 24px;
}

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

.legal-section strong {
  color: #E8EAED;
}

.legal-section a {
  color: #C6CCD6;
}

.legal-section a:hover {
  color: #F2F4F8;
  text-decoration: underline;
  text-decoration-color: #D6336C;
}

/* ============ Legal footer ============ */

.legal-footer {
  background-color: #0B0E14;
  border-top: 1px solid #232A3A;
  padding: 34px 0 42px;
}

.legal-footer p {
  color: #A6ADBB;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #C6CCD6;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #F2F4F8;
  text-decoration: underline;
  text-decoration-color: #D6336C;
}

/* ============ Responsive ============ */

@media (max-width: 640px) {
  .legal-header {
    padding: 36px 0 28px;
  }

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

  .toc {
    padding: 22px;
    margin-bottom: 40px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-wrap {
    padding: 0 18px;
  }
}
