/* ============================================================
   SET APP Corporation — legal stylesheet
   Used by privacy.html and terms-of-service.html only.
   This stylesheet loads INSTEAD of style.css.
   ============================================================ */

.legal-page {
  background-color: #140E12;
  color: #F6EDF0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ LEGAL HEADER ============ */

.legal-header {
  background-color: #5C1E30;
  border-bottom: 3px solid #C4456C;
  padding: 40px 0 36px;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-brand {
  display: inline-block;
  color: #E8A9B8;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-bottom: 18px;
  transition: color 0.2s;
}

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

.legal-header h1 {
  color: #F6EDF0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.legal-updated {
  color: #E8A9B8;
  font-size: 0.95rem;
}

/* ============ LEGAL CONTENT ============ */

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

/* Scope-isolation: never paint backgrounds over the legal text */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

/* ============ TABLE OF CONTENTS ============ */

.toc {
  background-color: #1D1319;
  border: 1px solid #35242C;
  border-left: 4px solid #C4456C;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc h2 {
  color: #F6EDF0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

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

.toc a {
  color: #E8A9B8;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* ============ SECTION STYLING ============ */

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

.legal-content h2 {
  color: #E8A9B8;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #35242C;
}

.legal-content h3 {
  color: #F6EDF0;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

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

.legal-content ul {
  margin: 0 0 16px 24px;
  color: #F6EDF0;
}

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

.legal-content a {
  color: #E8A9B8;
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: #F6EDF0;
}

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

/* ============ LEGAL FOOTER ============ */

.legal-footer {
  border-top: 3px solid #C4456C;
  background-color: #140E12;
  padding: 28px 0;
  text-align: center;
}

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

.legal-footer p {
  color: #E8A9B8;
  font-size: 0.9rem;
}

.legal-footer a {
  color: #E8A9B8;
  text-decoration: underline;
  transition: color 0.2s;
}

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

/* ============ RESPONSIVE ============ */

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}
