/* Shared presentation for the policy documents and cookie settings. */
.pg-legal { background: #f8f5ef; }
.legal-page { padding: clamp(56px, 7vw, 108px) 0 clamp(90px, 10vw, 150px); }
.legal-page__top { max-width: 1160px; margin: 0 auto 42px; }
.legal-page__crumb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 36px; font-size: 13px; color: #68726c; }
.legal-page__crumb a { color: #23766c; text-decoration: none; }
.legal-page__crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-page__intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .75fr); gap: clamp(32px, 6vw, 90px); align-items: end; }
.pg-legal--compact-top .legal-page__intro { display: block; }
.legal-page__eyebrow { margin-bottom: 16px; color: #23766c; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.legal-page__intro h1 { max-width: 720px; font-size: clamp(48px, 6.4vw, 88px); font-weight: 500; line-height: 1.02; letter-spacing: -.055em; }
.legal-page__intro h1 em { color: #23766c; font-weight: 400; }
.legal-page__summary { max-width: 43ch; padding-bottom: 7px; color: #52645e; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.7; }
.legal-page__layout { display: grid; grid-template-columns: minmax(205px, .32fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 76px); align-items: start; max-width: 1160px; margin-inline: auto; }
.legal-page__nav { position: sticky; top: calc(var(--header-h) + 30px); padding: 24px 0; }
.legal-page__nav-title { margin-bottom: 16px; color: #23766c; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.legal-page__nav a { display: block; padding: 9px 0; color: #48615a; font-size: 13px; line-height: 1.4; text-decoration: none; }
.legal-page__nav a:hover { color: #173d39; text-decoration: underline; text-underline-offset: 3px; }
.pg-privacy .legal-page__intro { display: block; }
.pg-privacy .legal-page__top { margin-bottom: 34px; }
.legal-page__nav[data-legal-scrollspy] a { padding-left: 14px; border-left: 3px solid transparent; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.legal-page__nav[data-legal-scrollspy] a[aria-current="location"] { color: #173d39; font-weight: 700; border-left-color: #23766c; background: rgba(35, 118, 108, .08); }
.legal-page__paper { min-width: 0; padding: clamp(28px, 4.4vw, 64px); background: #fffdf9; border: 1px solid #e4ddd0; border-radius: 9px; box-shadow: 0 20px 44px rgba(73,65,48,.07); }
.legal-page__paper .legal { max-width: none; }
.legal-page__paper .legal .updated { margin-bottom: 30px; padding-bottom: 18px; color: #718078; border-color: #e5e0d6; }
.legal-page__paper .legal h2 { margin-top: 42px; padding-top: 25px; border-color: #e5e0d6; font-size: clamp(25px, 2.5vw, 34px); font-weight: 500; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-page__paper .legal h2:first-of-type { margin-top: 0; padding-top: 0; }
.legal-page__paper .legal p,
.legal-page__paper .legal li { color: #41534e; font-size: 15.5px; line-height: 1.8; }
.legal-page__paper .legal b { color: #17332f; }
.legal-page__paper .legal a { color: #23766c; }
.legal-page__paper .legal th { color: #17332f; }
.legal-page__paper .legal td,
.legal-page__paper .legal th { border-color: #e5e0d6; }
.legal-page__paper .legal-scroll { margin-block: 22px; }
.legal-page__paper .legal-scroll table { min-width: 560px; }
.legal-page__paper .legal span.updated { display: inline; padding: 0; margin: 0; border: 0; }
.legal-page__paper .legal > .updated:first-child { display: block; }
.legal-page__related { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #e5e0d6; font-size: 13px; }
.legal-page__related a { color: #23766c; text-decoration: underline; text-underline-offset: 3px; }
.pg-cookie-preferences .legal-page { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.pg-cookie-preferences .legal-page__top,
.pg-cookie-preferences .legal-page__layout { max-width: 920px; }
.pg-cookie-preferences .legal-page__top { margin-bottom: 24px; }
.pg-cookie-preferences .legal-page__intro h1 { font-size: clamp(40px, 5.5vw, 68px); }
.cookie-intro { margin-top: 18px; color: #52645e; font-size: 16px; line-height: 1.65; }
.pg-cookie-preferences .legal-page__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pg-cookie-preferences .legal-page__nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; }
.pg-cookie-preferences .legal-page__paper { padding: clamp(22px, 4vw, 40px); }
.cookie-choice { display: grid; gap: 12px; margin: 24px 0; }
.cookie-choice__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px 22px; background: #f8f5ef; border: 1px solid #e4ddd0; border-radius: 8px; }
.cookie-choice__row h3 { margin: 0 0 7px; font-family: var(--sans); font-size: 16px; font-weight: 700; color: #17332f; }
.cookie-choice__row p { margin: 0; font-size: 14px !important; }
.cookie-choice__tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: #e5eee7; border-radius: 20px; color: #216158; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cookie-choice__details { margin-top: 12px; }
.cookie-choice__details summary { width: fit-content; padding-block: 4px; color: #23766c; font-size: 13px; font-weight: 600; cursor: pointer; }
.cookie-choice__details summary:focus-visible { outline: 2px solid #23766c; outline-offset: 4px; border-radius: 2px; }
.cookie-choice__details p { margin-top: 8px; }
.cookie-choice__details code { font-size: 12px; overflow-wrap: anywhere; }
.cookie-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; min-width: 88px; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch__track { position: relative; display: block; width: 46px; height: 26px; flex: 0 0 46px; border: 1px solid #8a9690; border-radius: 20px; background: #d6ddd8; transition: background .2s ease, border-color .2s ease; pointer-events: none; }
.cookie-switch__track::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23,51,47,.2); transition: transform .2s ease; }
.cookie-switch input:checked + .cookie-switch__track { background: #23766c; border-color: #23766c; }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 2px solid #17332f; outline-offset: 4px; }
.cookie-switch input:disabled { cursor: wait; }
.cookie-switch input:disabled + .cookie-switch__track { opacity: .55; }
.cookie-switch__state { color: #41534e; font-size: 13px; font-weight: 700; pointer-events: none; }
.cookie-choice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cookie-choice__actions .btn { min-height: 46px; justify-content: center; }
.cookie-choice__actions .btn:disabled { opacity: .55; cursor: wait; }
.cookie-choice__status { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid #23766c; background: #edf3ed; border-radius: 0 6px 6px 0; color: #216158 !important; font-size: 14px !important; }
.cookie-choice__status[data-pending="true"] { border-color: #a77734; background: #f7f0e4; color: #775121 !important; }
@media (max-width: 850px) {
  .legal-page__layout { grid-template-columns: 1fr; gap: 22px; }
  .legal-page__nav { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; padding: 0; }
  .legal-page__nav-title { width: 100%; margin-bottom: 5px; }
  .legal-page__nav a { padding: 7px 0; }
}
@media (max-width: 640px) {
  .legal-page__intro { grid-template-columns: 1fr; gap: 18px; }
  .legal-page__top { margin-bottom: 30px; }
  .legal-page__crumb { margin-bottom: 28px; }
  .legal-page__paper { padding: 28px 22px; }
  .cookie-choice__row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .cookie-choice__tag { justify-self: start; }
  .cookie-choice__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-switch__track, .cookie-switch__track::after { transition: none; }
}
@media print {
  .pg-legal { background: #fff; }
  .legal-page { padding: 0; }
  .legal-page__nav, .legal-page__related { display: none; }
  .legal-page__layout { display: block; }
  .legal-page__paper { padding: 0; border: 0; box-shadow: none; }
}
