/* ============================================================
   Lacomo Limited - Legal pages (privacy / terms-of-service)
   Loaded ONLY by /privacy and /terms-of-service
   Dark ember theme shared with the main site.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #171009;
  color: #EFE3D2;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: #E0682C;
  text-decoration: none;
}

a:hover {
  color: #FBF4EA;
}

/* Legal header - a header element, never a section */

.legal-header {
  background-color: #171009;
  border-bottom: 1px solid #3A2A18;
}

.legal-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.legal-brand {
  color: #FBF4EA;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
}

.legal-brand:hover {
  color: #EFE3D2;
}

.legal-kicker {
  color: #B39C82;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Content */

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

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

.legal-content h1 {
  color: #FBF4EA;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 10px;
}

.legal-updated {
  color: #B39C82;
  font-size: 14px;
  margin-bottom: 26px;
}

.legal-intro {
  color: #EFE3D2;
  margin-bottom: 40px;
  max-width: 720px;
}

/* Table of contents */

.toc {
  background-color: #231810;
  border: 1px solid #3A2A18;
  border-radius: 8px;
  padding: 26px 30px;
  margin-bottom: 48px;
}

.toc h2 {
  color: #FBF4EA;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc ol {
  list-style: decimal;
  padding-left: 22px;
}

.toc li {
  margin: 8px 0;
  font-size: 15px;
}

.toc a {
  color: #E0682C;
}

.toc a:hover {
  color: #FBF4EA;
}

/* Sections */

.legal-content section {
  padding: 10px 0 6px;
}

.legal-content h2 {
  color: #FBF4EA;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 1px solid #3A2A18;
}

.legal-content h3 {
  color: #FBF4EA;
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 10px;
}

.legal-content p {
  color: #EFE3D2;
  margin: 0 0 16px;
  max-width: 760px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-content li {
  margin: 6px 0;
  color: #EFE3D2;
}

/* Scope isolation: keep legal sections transparent so only the
   legal.css background scheme applies to page content. */

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

/* Legal footer */

.legal-footer {
  background-color: #171009;
  border-top: 1px solid #3A2A18;
  margin-top: 60px;
}

.legal-footer .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 30px 24px;
}

.legal-footer p {
  color: #B39C82;
  font-size: 14px;
  margin: 4px 0;
}

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

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

/* Responsive */

@media (max-width: 640px) {
  .legal-content h1 {
    font-size: 30px;
  }

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

  .toc {
    padding: 20px;
  }

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