/* Preserve the welcome footer on every rider route. */
.surface-footer{flex-shrink:0}
@media(max-width:819px){
 html .surface-footer,html.legal-reader-mode .surface-footer{
  padding-top:clamp(24px,4vh,32px);
  padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
 }
}
@media(max-width:819px) and (max-height:480px){
 html .surface-footer,html.legal-reader-mode .surface-footer{
  padding-top:12px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
 }
}
/* Preserve the existing extreme-height legal reader accessibility fallback. */
@media(max-width:819px) and (max-height:350px){
 html.legal-reader-mode .surface-footer{padding-block:0;gap:0}
}

/* The existing download dialog is reached only from the footer. */
@media(min-width:820px){html .visual .download-desktop-slot{display:none}}

/* Desktop: one uninterrupted row for legal links, download and language. */
@media(min-width:820px){
 html.welcome-view .legal-links,html .legal-links{display:grid;grid-template-columns:minmax(0,112px) minmax(0,46px) minmax(0,36px) minmax(0,94px) minmax(0,60px);grid-template-rows:36px;gap:4px;align-items:center;justify-content:center;width:364px;max-width:100%}
 html.welcome-view .footer-legal-group,html .footer-legal-group,html.welcome-view .footer-tools,html .footer-tools{display:contents}
 html.welcome-view .legal-links a,html .legal-links a,html.welcome-view .footer-lang,html .footer-lang,html .footer-download{display:flex;align-items:center;justify-content:center;justify-self:stretch;min-width:0;min-height:36px;height:36px;padding:0;margin:0;line-height:16px;font-size:10.5px;white-space:nowrap;text-align:center}
 html .footer-download{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin:0;border:0;background:transparent;box-shadow:none;color:#78888b;font-weight:400;text-decoration:none;cursor:pointer}
 html .footer-download svg{width:13px;height:13px;flex:none}
 html .footer-download:hover{color:var(--petrol);text-decoration:underline}
 html .footer-download:focus-visible{outline:2px solid var(--petrol);outline-offset:2px}
}
@media(min-width:820px) and (max-width:1100px){
 html .surface-footer{padding-inline:16px}
}

/* Keep the one-row footer legible with normal and fallback fonts. */
@media(min-width:820px){
 html.welcome-view .legal-links,html .legal-links{grid-template-columns:minmax(0,114px) minmax(0,50px) minmax(0,40px) minmax(0,96px) minmax(0,60px);width:376px}
}
@media(min-width:820px) and (max-width:1100px){html .surface-footer{padding-inline:12px}}

/* Owner refinement: readable desktop footer, same single-row layout and mobile unchanged. */
@media(min-width:820px){
 html .surface-footer{padding-inline:clamp(12px,2vw,32px)}
 html.welcome-view .legal-links,html .legal-links{width:460px;grid-template-columns:minmax(0,144px) minmax(0,62px) minmax(0,48px) minmax(0,118px) minmax(0,72px);grid-template-rows:40px;gap:4px}
 html.welcome-view .surface-footer .legal-links a,html .surface-footer .legal-links a,
 html.welcome-view .surface-footer .footer-lang,html .surface-footer .footer-lang,
 html .surface-footer .footer-download{font-size:13px;font-weight:550;line-height:20px;height:40px;min-height:40px;color:#36535a}
 html .surface-footer .footer-download{color:#075260;font-weight:600}
 html .surface-footer .footer-lang svg,html .surface-footer .footer-download svg{width:15px;height:15px;flex:none}
 html .surface-footer .legal-links a:hover,html .surface-footer .footer-lang:hover,html .surface-footer .footer-download:hover{color:#073c47;text-decoration:underline}
 html .surface-footer .footer-mark{font-size:11px;font-weight:750;color:#52696e}
 html .surface-footer .footer-separator{background:#91a3a6}
}
@media(min-width:960px) and (max-width:1100px){
 html .surface-footer{padding-inline:10px}
 html.welcome-view .legal-links,html .legal-links{width:440px;grid-template-columns:minmax(0,134px) minmax(0,58px) minmax(0,46px) minmax(0,114px) minmax(0,72px)}
 html.welcome-view .surface-footer .legal-links a,html .surface-footer .legal-links a,
 html.welcome-view .surface-footer .footer-lang,html .surface-footer .footer-lang,
 html .surface-footer .footer-download{font-size:12.5px}
}
@media(min-width:820px) and (max-width:959px){
 html .surface-footer{padding-inline:4px}
 html.welcome-view .legal-links,html .legal-links{width:394px;grid-template-columns:minmax(0,124px) minmax(0,52px) minmax(0,42px) minmax(0,103px) minmax(0,61px);gap:3px}
 html.welcome-view .surface-footer .legal-links a,html .surface-footer .legal-links a,
 html.welcome-view .surface-footer .footer-lang,html .surface-footer .footer-lang,
 html .surface-footer .footer-download{font-size:11.5px;font-weight:500}
 html .surface-footer .footer-lang svg,html .surface-footer .footer-download svg{width:13px;height:13px}
}

/* Customer desktop legal preview: only the document box owns vertical scrolling. */
@media(min-width:820px){
 html.legal-reader-mode,html.legal-reader-mode body{height:100%;overflow:hidden;overscroll-behavior:none}
 html.legal-reader-mode .experience{height:100svh;min-height:0;overflow:clip;align-items:stretch}
 html.legal-reader-mode .surface{height:100%;min-height:0;overflow:clip}
 html.legal-reader-mode .surface-body{flex:1 1 0;min-height:0;align-items:center;justify-content:center;padding-top:84px;padding-bottom:20px}
 html.legal-reader-mode #legal{display:flex;flex-direction:column;height:100%;min-height:0;min-width:0}
 html.legal-reader-mode #legal .screen-intro{flex:none;margin:0 0 24px}
 html.legal-reader-mode #legal-reader{flex:1 1 0;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scroll-padding-block:12px;border:1px solid #e0e8e6;border-radius:16px;background:#fff}
 html.legal-reader-mode #legal-reader .legal-document{margin:0;border:0;border-radius:0}
 html.legal-reader-mode .surface-footer{flex:0 0 auto}
}
@media(min-width:820px) and (max-height:600px){
 html.legal-reader-mode .surface-body{padding-top:76px;padding-bottom:12px}
 html.legal-reader-mode #legal .screen-intro{margin-bottom:16px}
}

/* Customer registration: center the acknowledgement as a group in either locale. */
#signup .signup-consent{width:fit-content;max-width:100%;margin-inline:auto;grid-template-columns:18px minmax(0,max-content);justify-content:center;text-align:center}
#signup .signup-consent-copy{text-align:center}
