/* =====================================================================
 * VT Legal Pages — styles for the Privacy Policy + Terms pages and the
 * footer links this plugin injects. Uses the Venue Transform theme's CSS
 * variables (--gold, --ink, etc.), which are present on the live theme.
 * =================================================================== */

/* ---- footer legal / policy links (injected into .footer__bottom) ---- */
.footer__policies { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__policies a {
  color: var(--on-dark-m, #9FAAB6); font-size: .86rem; letter-spacing: .01em;
  text-decoration: none; transition: color .2s ease;
}
.footer__policies a:hover { color: var(--gold-light, #E0C47A); }
.footer__policies--fallback { justify-content: center; padding: 14px 0 24px; }
 * LEGAL PAGE LAYOUT — clean, on-brand, easy to scan
 * =================================================================== */
.legal { padding: clamp(34px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); background: var(--paper); }
.legal__wrap {
  display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 64px);
  align-items: start; max-width: 1080px; margin-inline: auto;
}

/* effective-date chip */
.legal__meta {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 8px 15px; border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line); color: var(--muted);
  font-family: var(--sans); font-size: .82rem; letter-spacing: .03em; text-transform: uppercase;
}
.legal__meta strong { color: var(--ink); font-weight: 600; }
.legal__meta::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }

/* sticky table of contents */
.legal__toc { position: sticky; top: calc(var(--header-h) + 18px); }
.legal__toc-h {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; padding-left: 14px;
}
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal__toc li { counter-increment: toc; margin: 0; }
.legal__toc a {
  display: flex; gap: 10px; padding: 7px 12px 7px 14px; border-left: 2px solid var(--line);
  color: var(--muted); font-size: .9rem; line-height: 1.35; text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold-deep); font-weight: 600; font-size: .78rem; }
.legal__toc a:hover { color: var(--ink); border-left-color: var(--gold); background: var(--paper-2); }

/* body + sections */
.legal__body { min-width: 0; max-width: 760px; }
.legal__intro { font-size: 1.1rem; line-height: 1.7; font-weight: 300; color: var(--text); margin: 0 0 8px; }
.legal__sec { padding-top: clamp(26px, 3.4vw, 40px); margin-top: clamp(26px, 3.4vw, 40px); border-top: 1px solid var(--line); }
.legal__sec:first-of-type { border-top: 0; margin-top: 22px; padding-top: 0; }
.legal__sec > h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.15; color: var(--ink); margin: 0 0 .55em;
}
.legal__sec > h2 .legal__no {
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-deep); background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 9px; line-height: 1; flex: 0 0 auto; transform: translateY(-3px);
}
.legal__sec h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 1.4em 0 .4em; }
.legal__sec p { font-weight: 300; line-height: 1.72; color: var(--text); margin: 0 0 1em; }
.legal__sec p strong,
.legal__sec li strong { font-weight: 600; color: var(--ink); }
.legal__sec a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* styled bullet lists */
.legal__list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.legal__list li { position: relative; padding-left: 26px; margin-bottom: .55em; font-weight: 300; line-height: 1.65; color: var(--text); }
.legal__list li::before {
  content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--gold); transform: rotate(45deg);
}

/* SMS example callouts */
.legal__example {
  border-left: 3px solid var(--gold); background: var(--paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 0 0 1.1em;
}
.legal__example-h {
  display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.legal__example p { font-style: italic; color: var(--ink); margin: 0; font-weight: 300; }

/* contact card at the end */
.legal__contact {
  margin-top: clamp(30px, 4vw, 48px); padding: clamp(22px, 3vw, 32px);
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
}
.legal__contact h2 { font-family: var(--serif); color: #fff; font-size: 1.5rem; margin: 0 0 .5em; display: block; }
.legal__contact p { color: var(--on-dark); font-weight: 300; margin: 0 0 .3em; line-height: 1.7; }
.legal__contact a { color: var(--gold-light); text-decoration: none; }
.legal__contact a:hover { text-decoration: underline; }
.legal__contact .legal__cname { color: #fff; font-weight: 600; }

/* responsive */
@media (max-width: 900px) {
  .legal__wrap { grid-template-columns: 1fr; gap: 26px; }
  .legal__toc { position: static; top: auto; padding: 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
  .legal__toc ol { columns: 2; column-gap: 18px; }
  .legal__toc a { border-left: 0; padding-left: 0; }
  .legal__toc a:hover { background: transparent; }
}
@media (max-width: 560px) {
  .legal__toc ol { columns: 1; }
  .legal__sec > h2 { gap: 9px; }
}

/* numbered process list (Terms §3) */
.legal__olist { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: lo; }
.legal__olist li { position: relative; padding-left: 40px; margin-bottom: .6em; font-weight: 300; line-height: 1.65; color: var(--text); counter-increment: lo; min-height: 26px; display: flex; align-items: center; }
.legal__olist li::before {
  content: counter(lo); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line);
  color: var(--gold-deep); font-family: var(--sans); font-weight: 600; font-size: .82rem;
}
