/* ============================================================
   DXR HOLDINGS LLC — css/legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   Legal pages load ONLY this stylesheet. Dark warm charcoal
   theme with apricot-gold headings, matching the main site.
   ============================================================ */

:root {
  --charcoal: #141210;
  --panel: #221D16;
  --ivory: #F6F1E8;
  --gold: #C79A3B;
  --pale-gold: #E9D5A8;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: #F6F1E8;
  background-color: #141210;
  overflow-x: hidden;
}

/* ---------- Legal header ---------- */

.legal-header {
  background-color: #221D16;
  border-bottom: 1px solid #C79A3B;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.legal-brand-glyph { width: 14px; height: 14px; background-color: #C79A3B; flex: 0 0 14px; }
.legal-brand-text { display: block; }
.legal-wordmark {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #F6F1E8;
  line-height: 1;
}
.legal-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #C79A3B;
  text-transform: uppercase;
  margin-top: 4px;
}
.legal-home {
  color: #E9D5A8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.legal-home:hover { color: #F6F1E8; text-decoration: underline; }

/* ---------- Legal content ---------- */

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

.legal-content h1 {
  font-family: var(--font-head);
  font-size: 42px;
  line-height: 1.2;
  color: #F6F1E8;
  margin: 0 0 10px;
}
.legal-updated { color: #E9D5A8; font-size: 14px; margin: 0 0 8px; }
.legal-intro { color: #F6F1E8; }

/* Scope isolation: keep any section backgrounds transparent on legal pages. */
.legal-page .legal-content section { background-color: transparent !important; }

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

.toc {
  background-color: #221D16;
  border: 1px solid #C79A3B;
  padding: 22px 28px;
  margin: 36px 0 16px;
}
.toc h2 { margin: 0 0 14px; font-size: 20px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 7px 0; }
.toc a { color: #E9D5A8; text-decoration: none; }
.toc a:hover { color: #F6F1E8; text-decoration: underline; }

/* ---------- Sections ---------- */

.legal-content section { margin-top: 44px; }
.legal-content section:first-of-type { margin-top: 32px; }
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 26px;
  color: #C79A3B;
  margin: 0 0 14px;
}
.legal-content h3 { font-size: 18px; color: #F6F1E8; margin: 22px 0 8px; }
.legal-content p { margin: 0 0 14px; color: #F6F1E8; }
.legal-content ul { color: #F6F1E8; margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin: 6px 0; }
.legal-content a { color: #E9D5A8; text-decoration: underline; }
.legal-content a:hover { color: #F6F1E8; }

/* ---------- Legal footer ---------- */

.legal-footer {
  background-color: #221D16;
  border-top: 1px solid #C79A3B;
  padding: 30px 24px;
  text-align: center;
}
.legal-footer p { margin: 0 0 8px; color: #F6F1E8; font-size: 14px; }
.legal-footer a { color: #E9D5A8; text-decoration: underline; }
.legal-footer a:hover { color: #F6F1E8; }
.legal-footer .legal-footer-meta { color: #E9D5A8; font-size: 13px; margin-top: 10px; }

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

@media (max-width: 620px) {
  .legal-header { flex-wrap: wrap; }
  .legal-content h1 { font-size: 32px; }
  .legal-content h2 { font-size: 22px; }
}
