/* Legal pages share the site's colours, typography, header and footer. */
.legal-page { background: var(--cream); }
.legal-skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--navy-700);
  border-radius: 8px;
  transform: translateY(-200%);
}
.legal-skip:focus { transform: none; }
.legal-hero {
  padding: 2rem 0 clamp(2.75rem, 5vw, 4.5rem);
  background: var(--cream);
  border-bottom: 1px solid #deded4;
}
.legal-hero .breadcrumb { margin-bottom: 2.5rem; }
.legal-hero__row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}
.legal-hero__copy { max-width: 780px; }
.legal-hero .eyebrow { color: var(--navy-700); }
.legal-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.9rem);
  margin: 1rem 0 1.15rem;
  overflow-wrap: anywhere;
}
.legal-hero .lead { max-width: 57ch; }
.legal-version {
  flex-shrink: 0;
  border-left: 1px solid #c9cec4;
  padding-left: 1.4rem;
  font-size: .82rem;
  color: var(--text);
}
.legal-version time { display: block; color: var(--ink); font-size: .95rem; margin-top: .25rem; }
.legal-body { background: #fff; padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal-sidebar { position: sticky; top: 110px; }
.legal-pages { display: grid; gap: .45rem; margin-bottom: 1.75rem; }
.legal-pages a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 1rem; border-radius: 9px; font-size: .92rem; }
.legal-pages a[aria-current="page"] { color: #fff; background: var(--navy-700); }
.legal-pages a:not([aria-current]):hover { background: var(--cream); color: var(--ink); }
.legal-toc { border-top: 1px solid var(--border); padding-top: 1.3rem; }
.legal-toc summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: .9rem; }
.legal-toc ol { list-style: none; padding: .75rem 0 0; counter-reset: contents; }
.legal-toc li { counter-increment: contents; }
.legal-toc a { display: flex; gap: .65rem; padding: .33rem .2rem; font-size: .87rem; line-height: 1.5; }
.legal-toc a::before { content: counter(contents, decimal-leading-zero); color: var(--navy); font-size: .73rem; line-height: 1.8; min-width: 1.2rem; }
.legal-toc a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; }
.legal-sidebar__help { margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--border); font-size: .88rem; }
.legal-sidebar__help a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; }
.legal-document { min-width: 0; max-width: 790px; }
.legal-intro { padding: 1.5rem 1.65rem; margin-bottom: 2.5rem; border-left: 3px solid var(--navy); background: var(--cream); border-radius: 0 14px 14px 0; }
.legal-intro strong { display: block; color: var(--ink); margin-bottom: .4rem; font-weight: 600; }
.legal-intro p { font-size: .98rem; margin: 0; }
.legal-page main { scroll-margin-top: 100px; }
.legal-section { scroll-margin-top: 120px; margin-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-section h2 { display: flex; align-items: baseline; gap: .8rem; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.22; margin-bottom: 1.1rem; }
.legal-section h2 span { font-family: var(--font-body); font-size: .76rem; color: var(--navy); letter-spacing: .04em; }
.legal-section h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.03rem; line-height: 1.4; margin: 1.5rem 0 .65rem; }
.legal-section p, .legal-section ul { margin-bottom: 1rem; }
.legal-section > :last-child { margin-bottom: 0; }
.legal-section ul { list-style: disc; padding-left: 1.35rem; }
.legal-section li + li { margin-top: .5rem; }
.legal-section li::marker { color: var(--navy); }
.legal-section a, .legal-document__end a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-address { font-style: normal; line-height: 1.9; padding-left: 1.2rem; border-left: 2px solid var(--peach); }
.legal-document__end { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-top: 1.6rem; font-size: .88rem; }
.legal-contact { padding: clamp(2rem, 5vw, 3rem) 0; }
.legal-contact__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.legal-contact h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .65rem; }
.legal-contact p { max-width: 54ch; }
.legal-contact .btn { flex-shrink: 0; }
@media (max-width: 900px) {
  .legal-hero__row { display: block; }
  .legal-version { margin-top: 1.5rem; padding-left: 0; border: 0; }
  .legal-version time { display: inline; margin-left: .4rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-sidebar { position: static; }
  .legal-pages { grid-template-columns: 1fr 1fr; margin-bottom: 1.25rem; }
  .legal-toc ol { columns: 2; column-gap: 1.5rem; }
  .legal-toc li { break-inside: avoid; }
  .legal-sidebar__help { display: none; }
  .legal-document { max-width: none; }
  .legal-contact__inner { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .legal-hero .breadcrumb { margin-bottom: 1.8rem; }
  .legal-pages a { font-size: .85rem; padding: .7rem; }
  .legal-pages a span { display: none; }
  .legal-toc ol { columns: 1; }
  .legal-intro { padding: 1.15rem 1.2rem; }
}
@media print {
  .legal-page { background: #fff; color: #000; font-size: 10pt; }
  .legal-page #site-header, .legal-page .footer, .legal-sidebar,
  .legal-contact, .legal-skip, .legal-page .whatsapp-float, .legal-page .mobile-cta,
  .legal-page .breadcrumb, .legal-document__end { display: none !important; }
  .legal-hero, .legal-body { background: #fff; padding: 1rem 0; }
  .legal-layout { display: block; }
  .legal-document { max-width: none; }
  .legal-section { margin-top: 1rem; padding-bottom: 1rem; }
  .legal-section h2, .legal-section h3 { break-after: avoid; }
  .legal-section p, .legal-section li { orphans: 3; widows: 3; }
}
