/* ============================================================
   HOLD TYTE STUDIOS LLC — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   DARK film-studio theme matching style.css:
     body bg          #170D12
     headings         #F7F0F3
     body text        #E8DEE2
     secondary text   #A4949C
     accent           #A23A52
     panel            #24161C
     hairline         #38242E
   ============================================================ */

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

.legal-page {
  background-color: #170D12;
  color: #E8DEE2;
  font-size: 16px;
  line-height: 1.75;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scope isolation: legal content sections must never show an
   inherited background. Applies to body content only. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-page a:hover {
  color: #F7F0F3;
  text-decoration: underline;
  text-decoration-color: #A23A52;
  text-underline-offset: 4px;
}

/* ---------- Top bar ---------- */
.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: #170D12;
  border-bottom: 2px solid #A23A52;
}

.legal-brand {
  color: #F7F0F3;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 2px;
}

.legal-home {
  color: #F7F0F3;
  border: 1px solid #A23A52;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.legal-home:hover {
  background-color: #A23A52;
}

/* ---------- Layout container ---------- */
.legal-content .container,
.legal-footer .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Title header (div/header element, never section) ---------- */
.legal-title {
  padding-top: 70px;
  margin-bottom: 40px;
}

.legal-title h1 {
  color: #F7F0F3;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.legal-meta {
  color: #A4949C;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.legal-intro {
  color: #E8DEE2;
  font-size: 17px;
  border-left: 4px solid #A23A52;
  padding-left: 20px;
  max-width: 780px;
}

/* ---------- Table of contents ---------- */
nav.toc {
  background-color: #24161C;
  border: 1px solid #38242E;
  border-radius: 12px;
  padding: 30px 34px;
  margin: 0 0 60px;
}

nav.toc h2 {
  color: #F7F0F3;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}

nav.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 48px;
}

nav.toc li {
  margin: 7px 0;
  break-inside: avoid;
}

nav.toc a {
  color: #E8DEE2;
}

nav.toc a:hover {
  color: #F7F0F3;
}

/* ---------- Sections ---------- */
.legal-content section {
  margin-bottom: 54px;
}

.legal-content section h2 {
  color: #F7F0F3;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-top: 8px;
}

.legal-content section h3 {
  color: #F7F0F3;
  font-size: 20px;
  font-weight: 700;
  margin: 26px 0 12px;
}

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

.legal-content section ul,
.legal-content section ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.legal-content section li {
  margin: 6px 0;
}

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid #38242E;
  padding: 30px 0;
  text-align: center;
  color: #A4949C;
  font-size: 13px;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  nav.toc ol {
    columns: 1;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-title {
    padding-top: 50px;
  }
}
