/* ============================================================
   TAGFilms LLC — /css/legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   Dark cinema theme matching the main site.
   ============================================================ */

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

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

.legal-page .legal-content section {
  background-color: transparent !important;
}

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

/* ---------- Legal header (div/header element, not section) ---------- */

.legal-header {
  background-color: #1E1723;
  border-bottom: 1px solid #2E2336;
}

.legal-header .brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 24px;
}

.legal-header .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F5F1F6;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 20px;
  text-decoration: none;
}

.legal-header .brand-link:hover {
  color: #D46A8F;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background-color: #D46A8F;
  border-radius: 2px;
  flex: none;
}

.legal-header .header-back {
  color: #CBC2D0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.legal-header .header-back:hover {
  color: #D46A8F;
}

.legal-header h1 {
  color: #F5F1F6;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  padding-bottom: 30px;
}

/* ---------- Content ---------- */

.legal-content {
  padding: 56px 0 72px;
}

.legal-content .updated-note {
  color: #8E7A93;
  font-size: 14px;
  margin-bottom: 36px;
}

.legal-content .intro {
  color: #CBC2D0;
  font-size: 17px;
  margin-bottom: 40px;
}

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

.legal-content section h2 {
  color: #F5F1F6;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  color: #F5F1F6;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-content p {
  color: #CBC2D0;
  margin-bottom: 16px;
}

.legal-content strong {
  color: #F5F1F6;
  font-weight: 700;
}

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

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

.legal-content a {
  color: #D46A8F;
  text-decoration: none;
}

.legal-content a:hover {
  color: #B54E76;
  text-decoration: underline;
}

.legal-content .anchor-top {
  display: inline-block;
  margin-top: 8px;
  color: #8E7A93;
  font-size: 13px;
}

.legal-content .anchor-top:hover {
  color: #D46A8F;
}

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

.legal-toc {
  background-color: #1E1723;
  border: 1px solid #2E2336;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 44px;
}

.legal-toc .toc-title {
  color: #F5F1F6;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.legal-toc li {
  margin-bottom: 10px;
}

.legal-toc li:last-child {
  margin-bottom: 0;
}

.legal-toc a {
  color: #D46A8F;
  text-decoration: none;
  font-weight: 600;
}

.legal-toc a:hover {
  color: #B54E76;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.legal-footer {
  background-color: #1E1723;
  border-top: 1px solid #2E2336;
}

.legal-footer .footer-inner {
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 32px;
    padding-bottom: 24px;
  }

  .legal-content {
    padding: 40px 0 56px;
  }

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

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

  .legal-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
