/* Footer and legal pages only. Retain the existing shared design and footer image. */
.jub-footer { gap: 24px; padding-right: 120px; }
.jub-footer .footer-brand { flex: 0 0 auto; }
.jub-footer .footer-details { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: center; }
.footer-links { overflow: hidden; }
/* The first separator of each wrapped row is clipped at the row edge. */
.footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; margin: 0 0 0 -1px; padding: 0; list-style: none; }
.footer-links li { position: relative; display: flex; flex: 1 0 auto; justify-content: center; align-items: center; padding: 0 8px; }
.footer-links li::before { content: ''; position: absolute; left: 0; top: calc(50% - 6px); height: 12px; border-left: 1px solid #91988e; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.jub-footer .footer-copyright { margin: 4px 0 0; color: #657160; font-size: 11px; line-height: 1.8; }
.legal-page { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 2; overflow-wrap: anywhere; line-break: strict; scroll-margin-top: 120px; }
.legal-page .legal-return { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.legal-page .legal-eyebrow { margin: 28px 0 8px; color: #657160; font-size: 10px; letter-spacing: .16em; }
.legal-page h2 { margin: 0 0 28px; font-size: 32px; font-weight: 500; line-height: 1.7; letter-spacing: .04em; }
.legal-page p { margin: 0 0 18px; line-height: 2; }
.legal-page h3 { margin: 48px 0 20px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--green); font-size: 21px; line-height: 1.8; font-weight: 600; letter-spacing: .025em; scroll-margin-top: 120px; }
.legal-page h4 { margin: 28px 0 12px; font-size: 17px; line-height: 1.8; font-weight: 600; }
.legal-page strong { font-weight: 600; }
.legal-page ol, .legal-page ul { margin: 0 0 24px; padding-left: 1.65em; }
.legal-page li { margin-bottom: 12px; padding-left: .25em; }
.legal-page hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.legal-page .legal-draft-note { margin: 0 0 32px; padding: 20px 24px; border-left: 3px solid #86977e; background: var(--paper); font-size: 14px; }
.legal-page .legal-draft-note strong { display: block; margin-bottom: 8px; color: var(--green); }
.legal-page .legal-draft-note p { margin-bottom: 10px; }
.legal-page .legal-draft-note p:last-child { margin-bottom: 0; }
.legal-page .legal-draft-note h3 { margin: 0 0 12px; padding: 0; border: 0; font-size: 18px; }
.legal-toc { margin-bottom: 36px; padding: 10px 0; border-block: 1px solid var(--line); }
.legal-toc summary { cursor: pointer; padding: 10px 0; color: var(--green); font-size: 14px; }
.legal-toc ol { list-style: none; padding: 8px 0 0; }
.legal-toc li { margin: 0; padding: 0; }
.legal-toc button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--green); font-size: 14px; line-height: 1.8; text-align: left; }
.legal-toc button:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-inline-link { display: inline-block; padding: 10px 0; color: var(--green); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.legal-page .legal-page-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-title-break { display: none; }
@media (max-width: 900px) {
  .jub-footer { flex-direction: column; align-items: center; padding-right: 34px; }
  .jub-footer .footer-details { width: 100%; margin-left: 0; }
}
@media (max-width: 700px) {
  .jub-footer { padding-right: 20px; }
  .footer-links li { padding: 0 6px; }
  .legal-page { scroll-margin-top: 102px; }
  .legal-page h2 { font-size: 25px; letter-spacing: .015em; }
  .legal-page h3 { font-size: 19px; scroll-margin-top: 102px; }
  .legal-page h4 { font-size: 16px; }
  .legal-page .legal-draft-note { padding: 18px; }
  .legal-page .legal-page-end { flex-direction: column; gap: 10px; }
  .contact-title-break { display: inline; }
}
