/* ==========================================================================
   Bin City Las Vegas — styles for the legal / policy pages.
   Loaded AFTER /assets/bincity-booking.css, which supplies the tokens,
   nav, footer and .page shell. This file only adds long-form document
   typography, the fee table, and the conspicuous-notice blocks.

   NOTE: the .conspicuous block is not decoration. NRS 104A.2214 requires a
   disclaimer of the implied warranty of merchantability in a lease to be in
   writing and CONSPICUOUS. Do not restyle it to blend in.
   ========================================================================== */

.legal { max-width: 840px; }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  margin: 28px 0 40px;
}

.doc-meta b { color: var(--accent); font-weight: 700; }

/* ── Table of contents ── */
.toc {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--red);
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.5);
  margin-bottom: 14px;
}

.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 7px; font-size: 0.9rem; break-inside: avoid; }
.toc a { color: rgba(245, 245, 240, 0.8); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ── Long-form document typography ── */
.legal section { margin-bottom: 44px; scroll-margin-top: 110px; }

.legal h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.legal h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 26px 0 10px;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.82);
  margin-bottom: 14px;
}

.legal ul,
.legal ol { padding-left: 24px; margin-bottom: 18px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--white); font-weight: 700; }

.legal a { color: var(--accent); }
.legal a:hover { color: var(--white); }

.legal .defined { color: var(--white); font-weight: 700; }

/* ── Conspicuous notice: legally required emphasis, not decoration ── */
.conspicuous {
  background: rgba(217, 26, 26, 0.09);
  border: 2px solid var(--red);
  border-radius: 3px;
  padding: 22px 24px;
  margin: 24px 0;
}

.conspicuous p,
.conspicuous li {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.92rem;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.conspicuous p:last-child,
.conspicuous li:last-child { margin-bottom: 0; }

/* ── Safety warning block ── */
.warning {
  background: rgba(232, 163, 61, 0.1);
  border-left: 4px solid var(--warn);
  border-radius: 3px;
  padding: 20px 24px;
  margin: 20px 0;
}

.warning h3 { color: var(--warn); margin-top: 0; }
.warning p:last-child, .warning li:last-child { margin-bottom: 0; }

/* ── Fee table ── */
.fee-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 22px 0;
}

.fee-table { width: 100%; border-collapse: collapse; min-width: 560px; }

.fee-table th {
  background: var(--charcoal);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.55);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fee-table td {
  padding: 15px 18px;
  font-size: 0.93rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  color: rgba(245, 245, 240, 0.82);
}

.fee-table tr:last-child td { border-bottom: none; }
.fee-table td.amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}

/* ── Cross-reference to another policy ── */
.xref {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.9rem;
  color: rgba(245, 245, 240, 0.7);
}

.xref p:last-child { margin-bottom: 0; }

/* ── Footer nav on legal pages ── */
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.82rem;
}

.legal-footer-links a { color: rgba(245, 245, 240, 0.55); text-decoration: none; }
.legal-footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .toc ol { columns: 1; }
  .toc { padding: 20px; }
  .legal p, .legal li { font-size: 0.96rem; }
}
