/* Bridge to Bold — Legal & Cookie Compliance UI */

.v2-footer__legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 1.5rem;
  width: 100%;
}

.v2-footer__legal-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.v2-footer__legal-btn:hover { color: var(--gold, #b8923a); }

.v2-footer__legal-bar {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-footer__legal-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-footer__legal-bar-head h3 {
  margin: 0;
  font-family: var(--font-sans, "Sora", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #b8923a);
}

.v2-footer__legal-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.v2-footer__legal-all:hover { color: var(--gold, #b8923a); }

.v2-footer__legal-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}

.v2-footer__legal-links a,
.v2-footer__legal-links .v2-footer__legal-btn {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s;
}

.v2-footer__legal-links a:hover,
.v2-footer__legal-links a:focus,
.v2-footer__legal-links a:active,
.v2-footer__legal-links .v2-footer__legal-btn:hover,
.v2-footer__legal-links .v2-footer__legal-btn:focus,
.v2-footer__legal-links .v2-footer__legal-btn:active {
  color: var(--gold, #b8923a);
}

.v2-footer__legal-bar + .v2-footer__bottom {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 0;
  border-top: none;
}

.v2-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.15rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-form-notice--footer {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.v2-form-notice--footer a {
  color: rgba(184, 146, 58, 0.85);
}

.v2-footer__menu strong {
  display: block;
  margin: 0 0 1.15rem;
  font-family: var(--font-sans, "Sora", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #b8923a);
}

.v2-footer__menu--programs ul li a {
  line-height: 1.45;
  max-width: none;
}

.v2-legal-page { padding-top: 6.5rem; }

.v2-legal-doc {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
}

.v2-legal-doc__head { margin-bottom: 1.5rem; grid-column: 1 / -1; }

.v2-legal-doc__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted, #4a5f73);
}

.v2-legal-doc__body p { margin: 0 0 1rem; }

.v2-legal-h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy, #0d1b2a);
}

.v2-legal-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.v2-legal-list li { margin-bottom: 0.45rem; }

.v2-legal-note {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(184, 146, 58, 0.1);
  border: 1px solid rgba(184, 146, 58, 0.22);
  font-size: 0.88rem;
  line-height: 1.6;
}

.v2-legal-note > p {
  margin: 0;
}

.v2-legal-note > p + p {
  margin-top: 0.65rem;
}

.v2-legal-related {
  position: sticky;
  top: 6rem;
  padding: 1.25rem;
  background: var(--sand, #f2efea);
  border-radius: 12px;
}

.v2-legal-related h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy, #0d1b2a);
}

.v2-legal-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.v2-legal-related a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy, #0d1b2a);
}

.v2-legal-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.v2-legal-index-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 12px;
}

.v2-legal-index-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.v2-legal-index-card p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #4a5f73;
}

.v2-legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

.v2-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.v2-legal-table th,
.v2-legal-table td {
  border: 1px solid rgba(13, 27, 42, 0.1);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.v2-legal-table th {
  background: #0d1b2a;
  color: #fff;
  font-weight: 600;
}

.v2-legal-table tr:nth-child(even) td { background: #faf9f7; }

.v2-form-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(13, 27, 42, 0.04);
  border: 1px solid rgba(13, 27, 42, 0.08);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #4a5f73;
}

.v2-form-notice a { color: #8a6d1f; font-weight: 600; }

.v2-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #4a5f73;
  cursor: pointer;
}

.v2-form-consent input { margin-top: 0.15rem; accent-color: #b8923a; flex-shrink: 0; }

.v2-donate-legal {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(13, 27, 42, 0.04);
  border: 1px solid rgba(13, 27, 42, 0.08);
}

.v2-donate-legal h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v2-donate-legal ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.v2-donate-legal a { font-size: 0.82rem; font-weight: 600; color: #8a6d1f; }

/* Cookie banner */
.b2b-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  /* Below site header/nav (1000+) so mobile menu stays usable */
  z-index: 900;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.b2b-cookie-banner.is-visible { transform: translateY(0); }

.b2b-cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  background: #0d1b2a;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.28);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
}

.b2b-cookie-banner__copy h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.b2b-cookie-banner__copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.b2b-cookie-banner__copy a { color: #cba54c; }

.b2b-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.b2b-cookie-btn {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.b2b-cookie-btn--gold { background: #b8923a; color: #fff; border-color: #b8923a; }
.b2b-cookie-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.b2b-cookie-btn--outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.15); }

.b2b-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.b2b-cookie-modal.is-open {
  display: grid;
  pointer-events: auto;
}

.b2b-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
}

.b2b-cookie-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-height: min(90vh, 640px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(13, 27, 42, 0.24);
  overflow: hidden;
}

.b2b-cookie-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.5rem 1.5rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.b2b-cookie-modal__panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: #0d1b2a;
}

.b2b-cookie-modal__scroll > p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #4a5f73;
}

.b2b-cookie-modal__inventory {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #4a5f73;
}

.b2b-cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.b2b-cookie-toggle:last-of-type { border-bottom: 0; }

.b2b-cookie-toggle strong {
  display: block;
  font-size: 0.88rem;
  color: #0d1b2a;
}

.b2b-cookie-toggle span {
  display: block;
  font-size: 0.78rem;
  color: #4a5f73;
  margin-top: 0.15rem;
}

.b2b-cookie-toggle input { width: 1.1rem; height: 1.1rem; accent-color: #b8923a; }

.b2b-cookie-toggle input:disabled { opacity: 0.5; }

.b2b-cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  background: #fff;
}

.b2b-cookie-modal__actions .b2b-cookie-btn--outline {
  color: #0d1b2a;
  background: #fff;
  border-color: rgba(13, 27, 42, 0.15);
}

body.b2b-cookie-modal-open .b2b-cookie-banner,
body.v2-nav-open .b2b-cookie-banner {
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 768px) {
  .v2-legal-doc { grid-template-columns: 1fr; }
  .v2-legal-related { position: static; }
  .b2b-cookie-banner__inner { grid-template-columns: 1fr; }
  .b2b-cookie-banner__actions { justify-content: stretch; }
  .b2b-cookie-banner__actions .b2b-cookie-btn { flex: 1; }
  .v2-footer__legal-links,
  .v2-footer__legal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .v2-footer__legal-links,
  .v2-footer__legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .v2-footer__legal-links,
  .v2-footer__legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
