/* ============================================================
   DGJ SOLUTIONS LLC — Legal stylesheet (privacy + terms)
   Loaded ONLY by legal pages. Does NOT depend on style.css.
   ============================================================ */

.legal-page {
  background-color: #F7FBFA;
  color: #0F1715;
}

:root {
  --lg-bg: #F7FBFA;
  --lg-ink: #0F1715;
  --lg-muted: #3E5C54;
  --lg-mint: #2DD4BF;
  --lg-deep: #0D9488;
  --lg-soft: #99F6E4;
  --lg-dark: #062E2B;
  --lg-line: #DCEBE6;
}

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

html {
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--lg-bg);
  color: var(--lg-ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--lg-deep);
}

/* Scope isolation: legal content sections never inherit colored backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(135deg, #062E2B 0%, #0D9488 100%);
  padding: 56px 0 48px;
}

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

.legal-brand {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2DD4BF;
  margin-bottom: 18px;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
}

.legal-updated {
  margin-top: 14px;
  color: #99F6E4;
  font-size: 0.95rem;
}

/* ---------- Content layout ---------- */
.legal-content {
  padding: 48px 0 24px;
}

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

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Table of contents ---------- */
.toc {
  position: sticky;
  top: 24px;
  background-color: #FFFFFF;
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  padding: 22px;
}

.toc-title {
  font-weight: 800;
  color: var(--lg-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 8px;
}

.toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--lg-muted);
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: var(--lg-deep);
}

/* ---------- Article ---------- */
.legal-article section {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--lg-line);
}

.legal-article section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0D9488;
  margin-bottom: 16px;
  line-height: 1.25;
  scroll-margin-top: 24px;
}

.legal-article p {
  color: #0F1715;
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-article a {
  text-decoration: underline;
}

.address-block {
  background-color: #FFFFFF;
  border-left: 4px solid #2DD4BF;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  color: #0F1715;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #FFFFFF;
  border-top: 3px solid #2DD4BF;
  padding: 24px 0;
}

.legal-footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer a {
  font-weight: 700;
  text-decoration: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }
}
