/* Terms of Use and Privacy Policy pages */
.md-legal {
  --md-bg: var(--charcoal);
  --md-gold: var(--gold);
  --md-cream: var(--cream);
  --md-line: rgba(180,158,130,.35);
  background: var(--md-bg);
  color: var(--md-gold);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  padding: 16px 24px;
  box-sizing: border-box;
  width: 100%;
}
.md-legal *, .md-legal *::before, .md-legal *::after { box-sizing: border-box; }
.md-legal-inner { max-width: 820px; margin: 0 auto; }

/* Header */
.md-legal-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  background: var(--md-gold);
  color: var(--md-bg);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.md-legal h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 36px;
  line-height: 1.2;
  color: var(--md-cream);
  text-transform: uppercase;
}
.md-legal-date { margin: 0; font-weight: 700; font-size: .95rem; }

/* Contents */
.md-legal-toc {
  margin: 40px 0 8px;
  padding: 20px 0 0;
  border-top: 1px solid var(--md-gold);
}
.md-legal-toc-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--md-cream);
}
.md-legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 32px;
}
.md-legal-toc li { border-bottom: 1px solid var(--md-line); padding-bottom: 4px; }
.md-legal .md-legal-toc a { color: var(--md-gold); text-decoration: none; display: flex; gap: .6rem; }
.md-legal-toc a span { color: var(--md-cream); min-width: 1.6em; font-variant-numeric: tabular-nums; }
.md-legal .md-legal-toc a:hover, .md-legal .md-legal-toc a:focus-visible { color: var(--md-cream); }

/* Sections */
.md-legal section { scroll-margin-top: 120px; padding-top: 40px; }
.md-legal h2 {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--md-gold);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--md-cream);
}
.md-legal h2 .num { color: var(--md-gold); font-variant-numeric: tabular-nums; }
.md-legal h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--md-cream);
}
.md-legal p { margin: 0 0 14px; }
.md-legal strong { color: var(--md-cream); font-weight: 700; }
.md-legal a { color: var(--md-cream); text-underline-offset: 3px; }
.md-legal a:hover { color: #fff; }

.md-legal ul { list-style: none; margin: 0 0 16px; padding: 0; }
.md-legal ul li {
  position: relative;
  padding: 6px 0 6px 1.5rem;
  border-bottom: 1px solid var(--md-line);
}
.md-legal ul li:last-child { border-bottom: none; }
.md-legal ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: var(--md-gold);
  transform: rotate(45deg);
}

/* Contact card */
.md-legal-contact {
  margin: 8px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--md-gold);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.md-legal-contact div { display: grid; grid-template-columns: 1fr; }
.md-legal-contact dt { color: var(--md-cream); font-weight: 700; }
.md-legal-contact dd { margin: 0; }

@media (min-width: 768px) {
  .md-legal { padding: 16px 60px; }
  .md-legal h1 { font-size: 48px; }
  .md-legal-toc ol { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .md-legal-contact div { grid-template-columns: 110px 1fr; gap: 16px; }
}

/* Headings inside the legal content use the body face */
.md-legal h2, .md-legal h3 { font-family: var(--font-body); }

/* Page frame: the legal content sits on the charcoal band between header and footer */
.md-legal { padding-block: 56px; }
