/* Legal and policy pages for James Taylor Electric Violinist */
.legal-page {
  background:
    radial-gradient(circle at 82% 6%, rgba(210,162,58,.10), transparent 30rem),
    linear-gradient(180deg, #020202 0%, #090806 50%, #020202 100%);
}

.legal-hero {
  padding: 50px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0,0,0,.98), rgba(0,0,0,.86)),
    radial-gradient(circle at 75% 32%, rgba(210,162,58,.18), transparent 26rem);
}

.legal-hero-inner {
  max-width: 900px;
}

.legal-hero h1 {
  margin-bottom: 14px;
}

.legal-hero-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: #a79b89;
  font-size: .82rem;
}

.legal-section {
  padding: 34px 0 68px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(210,162,58,.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.028), rgba(0,0,0,.34));
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.legal-toc {
  position: sticky;
  top: 132px;
  border: 1px solid rgba(210,162,58,.34);
  border-radius: 18px;
  background: rgba(0,0,0,.58);
  padding: 20px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 11px;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: #c7baa5;
  font-size: .82rem;
  line-height: 1.35;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.legal-article {
  min-width: 0;
}

.legal-block {
  scroll-margin-top: 145px;
  margin-bottom: 42px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(210,162,58,.18);
}

.legal-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-block h2 {
  margin-bottom: 15px;
  color: var(--cream);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.legal-block h3 {
  margin-top: 24px;
  color: var(--gold-light);
  font-size: 1.15rem;
}

.legal-block p,
.legal-block li {
  color: #d1c5b3;
}

.legal-block p {
  margin: 0 0 15px;
}

.legal-block ul,
.legal-block ol {
  margin: 12px 0 18px;
  padding-left: 1.25rem;
}

.legal-block li {
  margin-bottom: 8px;
}

.legal-block a,
.legal-callout a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(244,210,124,.42);
  text-underline-offset: 3px;
}

.legal-block a:hover,
.legal-block a:focus-visible,
.legal-callout a:hover,
.legal-callout a:focus-visible {
  color: #fff0be;
  text-decoration-color: currentColor;
  outline: none;
}

.legal-callout {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid rgba(210,162,58,.34);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: rgba(210,162,58,.055);
  color: #d6cab8;
}

.legal-callout strong {
  color: var(--gold-light);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
  border: 1px solid rgba(210,162,58,.28);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: rgba(0,0,0,.34);
}

.legal-table th,
.legal-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(210,162,58,.16);
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  color: var(--gold-light);
  background: rgba(210,162,58,.07);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-table td {
  color: #d1c5b3;
  font-size: .9rem;
}

.legal-contact-card {
  display: grid;
  gap: 9px;
  max-width: 620px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(210,162,58,.32);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.legal-contact-card a {
  width: fit-content;
  color: var(--gold-light);
}

/* Compact Footer Option B on the new legal pages. */
.legal-page .footer-option-b {
  border-top: 1px solid rgba(210,162,58,.32);
  padding: 26px 0 18px;
  background: #000;
}

.legal-page .footer-b-shell {
  overflow: hidden;
  border: 1px solid rgba(210,162,58,.46);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 52px rgba(0,0,0,.34);
}

.legal-page .footer-b-main {
  display: grid;
  grid-template-columns: minmax(230px, 280px) 1fr;
  gap: 30px;
  align-items: center;
  padding: 24px 28px 22px;
}

.legal-page .footer-b-brand {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding-right: 28px;
  border-right: 1px solid rgba(210,162,58,.30);
}

.legal-page .footer-b-brand img {
  width: min(100%, 252px);
  height: auto;
}

.legal-page .footer-b-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.legal-page .footer-b-nav-group { min-width: 0; }

.legal-page .footer-b-nav-toggle {
  width: 100%;
  margin: 0 0 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: 900 .72rem/1.2 Lato, Arial, sans-serif;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .18em;
  cursor: default;
}

.legal-page .footer-b-chevron { display: none; }

.legal-page .footer-b-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
}

.legal-page .footer-b-links a {
  position: relative;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  transition: color .18s ease;
}

.legal-page .footer-b-links a:hover,
.legal-page .footer-b-links a:focus-visible {
  color: var(--cream);
  outline: none;
}

.legal-page .footer-b-contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  border-top: 1px solid rgba(210,162,58,.25);
  background: #000;
}

.legal-page .footer-b-contact-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.legal-page .footer-b-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(210,162,58,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--cream);
  font-size: .77rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.legal-page .footer-b-contact-pill svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 4px;
  border-radius: 50%;
  fill: none;
  stroke: var(--footer-contact-icon, var(--gold-light));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--footer-contact-icon-bg, rgba(210,162,58,.09));
}

.legal-page .footer-b-contact-pill--phone {
  --footer-contact-icon: #55d66b;
  --footer-contact-icon-bg: rgba(85,214,107,.12);
}

.legal-page .footer-b-contact-pill--email {
  --footer-contact-icon: #ef6b63;
  --footer-contact-icon-bg: rgba(239,107,99,.12);
}

.legal-page .footer-b-contact-pill--web {
  --footer-contact-icon: #58aaf8;
  --footer-contact-icon-bg: rgba(88,170,248,.12);
}

.legal-page .footer-b-contact-pill:hover,
.legal-page .footer-b-contact-pill:focus-visible,
.legal-page .footer-b-social:hover,
.legal-page .footer-b-social:focus-visible {
  border-color: rgba(244,210,124,.78);
  background: rgba(210,162,58,.08);
  color: var(--gold-light);
  transform: translateY(-1px);
  outline: none;
}

.legal-page .footer-b-socials {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.legal-page .footer-b-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210,162,58,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  color: var(--gold-light);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.legal-page .footer-b-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-page .footer-b-social:last-child svg {
  fill: currentColor;
  stroke: none;
}

.legal-page .footer-b-social--instagram {
  color: #e85ba5;
  border-color: rgba(232,91,165,.52);
  background: rgba(232,91,165,.07);
}

.legal-page .footer-b-social--facebook {
  color: #5b9df9;
  border-color: rgba(91,157,249,.52);
  background: rgba(91,157,249,.07);
}

.legal-page .footer-b-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 42px;
  padding: 10px 20px;
  border-top: 1px solid rgba(210,162,58,.18);
  color: #948a7b;
  font-size: .72rem;
  line-height: 1.35;
  letter-spacing: .015em;
  text-align: center;
}

.legal-page .footer-b-bottom-separator {
  color: rgba(210,162,58,.62);
}

.legal-page .footer-b-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 7px;
}

.legal-page .footer-b-legal a {
  color: #aaa091;
  transition: color .18s ease;
}

.legal-page .footer-b-legal a[aria-current="page"] {
  color: var(--gold-light);
}

.legal-page .footer-b-legal a:hover,
.legal-page .footer-b-legal a:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.legal-page .footer-b-legal span {
  color: rgba(210,162,58,.55);
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-toc {
    position: static;
  }

  .legal-page .footer-b-main {
    grid-template-columns: 210px 1fr;
    gap: 24px;
    padding-inline: 24px;
  }

  .legal-page .footer-b-brand { padding-right: 24px; }
  .legal-page .footer-b-nav { gap: 20px; }
  .legal-page .footer-b-contact-row { align-items: flex-end; padding-inline: 24px; }
  .legal-page .footer-b-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
  .legal-page .footer-b-contact-pill:last-child {
    grid-column: 1 / -1;
    width: max-content;
  }
}

@media (max-width: 700px) {
  .legal-hero { padding: 42px 0 38px; }
  .legal-section { padding: 28px 0 54px; }
  .legal-layout { padding: 18px; border-radius: 18px; gap: 24px; }
  .legal-toc { padding: 17px; }
  .legal-block { margin-bottom: 32px; padding-bottom: 28px; }

  .legal-page .footer-option-b { padding: 18px 0 14px; }
  .legal-page .footer-b-shell { border-radius: 18px; }
  .legal-page .footer-b-main { display: block; padding: 20px 18px 11px; }
  .legal-page .footer-b-brand {
    min-height: 0;
    justify-content: center;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(210,162,58,.25);
  }
  .legal-page .footer-b-brand img { width: min(100%, 236px); }
  .legal-page .footer-b-nav { display: block; padding-top: 8px; }
  .legal-page .footer-b-nav-group { border-bottom: 1px solid rgba(210,162,58,.18); }
  .legal-page .footer-b-nav-group:last-child { border-bottom: 0; }
  .legal-page .footer-b-nav-toggle {
    min-height: 46px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--gold-light);
    cursor: pointer;
  }
  .legal-page .footer-b-chevron {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
  }
  .legal-page .footer-b-nav-toggle[aria-expanded="true"] .footer-b-chevron { transform: rotate(180deg); }
  .legal-page .footer-b-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding: 0 0 13px;
  }
  .legal-page .footer-b-links a { padding: 7px 0; font-size: .84rem; }
  .legal-page .footer-b-nav-group.is-collapsed .footer-b-links { display: none; }
  .legal-page .footer-b-contact-row { display: block; padding: 15px 18px 16px; }
  .legal-page .footer-b-contact-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .legal-page .footer-b-contact-pill,
  .legal-page .footer-b-contact-pill:last-child {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    grid-column: auto;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .legal-page .footer-b-socials { justify-content: center; margin-top: 13px; }
  .legal-page .footer-b-social { width: 40px; height: 40px; }
  .legal-page .footer-b-bottom {
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding: 11px 16px 13px;
  }
  .legal-page .footer-b-bottom-separator { display: none; }
  .legal-page .footer-b-legal { margin: 3px 0; row-gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page .footer-b-contact-pill,
  .legal-page .footer-b-social,
  .legal-page .footer-b-chevron {
    transition: none;
  }
}


/* Shared section-aware scroll control for all legal pages. */

.legal-page .section-scroll-next {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9998;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(244,210,124,.72);
  border-radius: 50%;
  background: rgba(5,5,5,.12);
  color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.legal-page .section-scroll-next.is-visible {
  opacity: .86;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.legal-page .section-scroll-next svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
  transition: transform .18s ease;
}

.legal-page .section-scroll-next:hover,
.legal-page .section-scroll-next:focus-visible {
  opacity: 1;
  border-color: var(--gold-light);
  background: rgba(5,5,5,.22);
  outline: none;
}

.legal-page .section-scroll-next:hover svg,
.legal-page .section-scroll-next:focus-visible svg {
  transform: translateY(2px);
}

@media (max-width: 640px) {
  .legal-page .section-scroll-next {
    width: 42px;
    height: 42px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .legal-page .section-scroll-next svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page .section-scroll-next,
  .legal-page .section-scroll-next svg {
    transition: none;
  }
}
