/* Public policies: shared with WordPress, standalone preview and static build. */
html.rmcw-legal-active, body.rmcw-legal-active { scroll-behavior: auto !important; }
body.rmcw-legal-active { background: #f0f2f5 !important; color: #242824; }
.rmcw-legal-active .app { min-height: 100vh; background: #f0f2f5; }
.rmcw-legal-active .page.rlu-policy-page { width: 100%; max-width: 880px !important; margin: 0 auto; padding: 32px 44px 72px; }
.legal-document, .legal-site-header { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.legal-document { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-document *, .legal-site-header * { box-sizing: border-box; }
.legal-document a, .legal-site-header a { color: #175b75; text-decoration: underline; text-underline-offset: .2em; }
.legal-document a:hover, .legal-site-header a:hover { color: #242824; text-decoration-thickness: 2px; }
.legal-document :is(a,button):focus-visible, .legal-site-header a:focus-visible, .legal-skip:focus-visible,
.legal-document :is(h1,h2)[tabindex]:focus-visible { outline: 2px solid #175b75; outline-offset: 5px; }
.legal-document :is(h1,h2)[id] { scroll-margin-block: 28px; }
.legal-site-header { max-width: 1120px; margin: 0 auto; padding: 24px 44px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid #cbd1d7; }
.legal-logo { display: inline-flex; align-items: center; min-height: 44px; }
.legal-logo img { display: block; width: 210px; max-width: 100%; height: auto; }
.legal-site-header nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease; }
.legal-site-header nav a:hover { background: #e5edf3; }
.legal-site-header nav a[aria-current] { color: #175b75; border-bottom-color: #175b75; text-decoration: none; }
.legal-skip { position: fixed; z-index: 100000; top: 12px; left: 12px; padding: 12px 18px; background: #fff; color: #175b75; transform: translateY(-200%); }
.legal-skip:focus { transform: translateY(0); }
.legal-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.legal-tools button { min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid #abb7be; border-radius: 6px; background: transparent; color: #242824; font: inherit; font-size: 14px !important; line-height: 1.5 !important; font-weight: 600; cursor: pointer; transition: background-color 160ms ease; }
.legal-tools button:hover { background: #e0e7ec; }
.legal-tools .legal-print { background: #86ddff; border-color: #175b75; }
.legal-tools .legal-print:hover { background: #e2f3fa; }
.legal-document-heading { position: relative; padding: 24px 0 28px; margin-bottom: 36px; border-bottom: 1px solid #cbd5df; }
.legal-document-heading::before { content: ""; position: absolute; pointer-events: none; top: 0; left: 0; width: 44px; height: 3px; background: #86ddff; }
.legal-document p { font-size: inherit !important; line-height: inherit !important; }
.legal-document .legal-eyebrow { color: #626862; font-size: 12px !important; font-weight: 650; letter-spacing: .14em; margin: 0 0 12px; }
.legal-document h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; margin: 0 0 20px; color: #242824; }
.legal-document .legal-intro { font-size: 18px !important; line-height: 1.65 !important; margin: 0 0 20px; color: #626862; }
.legal-document .legal-version { color: #626862; font-size: 14px !important; margin: 0; }
.legal-sections { min-width: 0; }
.legal-sections section { margin: 0 0 38px; }
.legal-sections section + section { padding-top: 20px; border-top: 1px solid #d6dde5; }
.legal-sections h2, .legal-contact h2 { font-size: 21px; font-weight: 650; line-height: 1.45; letter-spacing: -.015em; margin: 0 0 20px; color: #242824; }
.legal-sections h2 { display: flex; align-items: baseline; gap: 12px; }
.legal-section-number { flex-shrink: 0; color: #175b75; font-variant-numeric: tabular-nums; }
.legal-sections p { margin: 0 0 18px; }
.legal-sections ul { padding-left: 24px; margin: 0 0 20px; }
.legal-sections li + li { margin-top: 12px; }
.legal-sections dl { margin: 0 0 24px; }
.legal-sections dt { font-weight: 700; margin: 18px 0 4px; }
.legal-sections dd { margin: 0; }
.legal-back-top { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.legal-contact { margin-top: 44px; padding: 24px 0 0; border-top: 1px solid #cbd5df; }
.legal-contact address { font-style: normal; margin-bottom: 12px; }
.legal-contact > a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-contact p { font-size: 15px !important; color: #626862; margin: 12px 0; }
.legal-contact nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-contact nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.legal-contact nav .legal-cookie-settings { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: #175b75; font: inherit; font-size: 15px !important; line-height: 1.5 !important; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.legal-contact nav .legal-cookie-settings:hover { color: #242824; text-decoration-thickness: 2px; }

/* Policies and Cookie settings on screens without the full site footer (account type, sign-up,
   log in, confirm email, reset password) and in the account menu. Only once the Cookie Policy is
   published (repairLinkUpCompactLegalFooterHtml / sidebarLegalLinksHtml). */
.rlu-legal-footer { padding: 20px 16px 28px; border-top: 1px solid #d6dde5; background: #f9fafc; }
.rlu-legal-footer nav, .rlu-sidebar-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; max-width: 1120px; margin: 0 auto; }
.rlu-sidebar-legal { justify-content: flex-start; gap: 0 14px; margin: 12px 0 0; }
.rlu-legal-footer a, .rlu-legal-footer button, .rlu-sidebar-legal a, .rlu-sidebar-legal button { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: #175b75; font: inherit; font-size: 14px !important; font-weight: 600; line-height: 1.4 !important; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.rlu-sidebar-legal a, .rlu-sidebar-legal button { min-height: 32px; font-size: 13px !important; }
.rlu-legal-footer :is(a, button):focus-visible, .rlu-sidebar-legal :is(a, button):focus-visible { outline: 3px solid #175b75; outline-offset: 2px; border-radius: 2px; }
/* Notice at Collection link next to a place that collects personal information. */
.rlu-collection-notice { display: block; margin: 6px 0 0; color: #626862; font-size: 13px; font-weight: 400; line-height: 1.5; }
.rlu-collection-notice a { color: #175b75; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

/* Tables in policy text (the Cookie Policy list): the table scrolls inside its own region on
   narrow screens, so the page itself never scrolls sideways. */
.legal-table-wrap { max-width: 100%; margin: 0 0 24px; overflow-x: auto; border: 1px solid #cbd5df; border-radius: 6px; background: #f9fafc; }
.legal-table-wrap:focus-visible { outline: 2px solid #175b75; outline-offset: 3px; }
.legal-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 1.55; overflow-wrap: normal; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid #d6dde5; text-align: left; vertical-align: top; }
.legal-table th { background: #e9eef2; color: #242824; font-weight: 650; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { font-size: 14px; overflow-wrap: anywhere; }
/* Gate G21 (docs/legal-changes-2026-10-05.md section 5): boxed clauses that must stand out, and on
   phones each table row becomes a stacked card whose cells are labelled from data-label. Used only
   by the 2026-10-05 drafts; the live 2026-09-25 text has neither class. */
.legal-important { border-left: 4px solid #175b75; background: #eef5f8; padding: 12px 16px; margin: 16px 0; }
.legal-important p { font-weight: 700; margin: 0 0 8px; }
.legal-important .legal-important-label { letter-spacing: .02em; }
@media (max-width: 640px) {
  .legal-table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td, .legal-table tbody th { display: block; }
  .legal-table caption { display: block; padding: 10px 12px 0; text-align: left; }
  .legal-table tr { border-bottom: 1px solid #d6dde5; padding: 8px 0; }
  .legal-table td::before, .legal-table tbody th::before { content: attr(data-label); display: block; font-weight: 650; }
}
@media print { .legal-table-wrap { overflow: visible; } }

/* Cookie banner and Cookie settings (assets/consent.js). Shown only once the Cookie Policy is
   published. The three choices share one style: none is presented as the "main" action. */
.rlu-consent-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* While the banner is open the Install App pill is hidden (as it is behind dialogs), so it never
   stacks above the banner and hides a focused control (WCAG 2.4.11). Need Help? moves up with the
   banner (messages are lines in the page, never over it), and focus scrolling keeps clear of both.
   The :has() rule outranks the public pages' 72px scroll-padding in styles-v794.css. */
html.rlu-consent-open .repairlinkup-install-button, html.rlu-consent-open #repairlinkupInstallButton { display: none !important; }
@media (min-height: 481px) {
  html.rlu-consent-open { scroll-padding-bottom: calc(var(--rlu-consent-h, 0px) + 16px); }
  html.rlu-consent-open:has(body:not(.rmcw-account-app-active) .repairlinkup-help-fab) { scroll-padding-bottom: calc(var(--rlu-consent-h, 0px) + 76px + env(safe-area-inset-bottom)); }
  html.rlu-consent-open body { padding-bottom: var(--rlu-consent-h, 0px) !important; }
}
/* Need Help? with the banner open (FLOAT-05): it waits hidden until a choice is made, at every width and in the app;
   the footer keeps Contact Support. Lifted above the banner it covered words: on phones the home search ("What needs
   fixing?" 52%), and at 1366x900 on a first visit the example facility card's text (v16.1). The third id outranks the
   short-screen home rule (site-system.css), which shows it at the page end. */
html.rlu-consent-open:not(#rlu-a):not(#rlu-b):not(#rlu-c) body .repairlinkup-help-fab { display: none !important; }
.rlu-consent-banner, .rlu-consent-dialog-bg { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #242824; text-align: left; letter-spacing: normal; }
.rlu-consent-banner *, .rlu-consent-dialog-bg * { box-sizing: border-box; }
.rlu-consent-banner { position: fixed; z-index: 190; left: 0; right: 0; bottom: 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #cbd1d7; background: #f9fafc; box-shadow: 0 -10px 30px rgba(36, 40, 36, .12); }
.rlu-consent-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.rlu-consent-copy { min-width: 0; }
.rlu-consent-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 4px; }
.rlu-consent-preview { display: inline-block; padding: 1px 8px; border: 1px solid #8a4b00; border-radius: 4px; background: #fff4e5; color: #b54708; font-size: 12px; font-weight: 650; line-height: 1.5; }
.rlu-consent-banner .rlu-consent-title { margin: 0; color: #242824; font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.rlu-consent-banner p { margin: 0; color: #626862; font-size: 14px; line-height: 1.55; }
.rlu-consent-banner p + p { margin-top: 6px; }
.rlu-consent-banner a { color: #175b75; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.rlu-consent-gpc { color: #175b75 !important; font-weight: 600; }
.rlu-consent-actions, .rlu-consent-dialog-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rlu-consent-btn { min-width: 0; min-height: 44px; margin: 0; padding: 9px 16px; border: 1.5px solid #175b75; border-radius: 6px; background: #fff; color: #175b75; font: inherit; font-size: 14px !important; font-weight: 650; line-height: 1.3 !important; text-align: center; white-space: normal; cursor: pointer; transition: background-color 160ms ease; }
.rlu-consent-btn:hover { background: #e5edf3; }
.rlu-consent-banner :is(a, button):focus-visible, .rlu-consent-dialog :is(a, button, input, h2):focus-visible { outline: 3px solid #175b75 !important; outline-offset: 2px !important; }
.rlu-consent-dialog-bg { position: fixed; z-index: 700000; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(7, 17, 31, .55); }
.rlu-consent-dialog { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #cbd1d7; border-radius: 10px; background: #f9fafc; box-shadow: 0 30px 80px rgba(7, 17, 31, .3); }
.rlu-consent-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rlu-consent-dialog h2 { margin: 0; color: #242824; font-size: 21px; font-weight: 650; line-height: 1.4; }
.rlu-consent-close { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #242824; font: inherit; font-size: 26px !important; line-height: 1 !important; cursor: pointer; }
.rlu-consent-close:hover { background: #e5edf3; }
.rlu-consent-dialog p { margin: 8px 0 0; color: #626862; font-size: 15px; line-height: 1.6; }
.rlu-consent-categories { margin: 16px 0 20px; border-top: 1px solid #d6dde5; }
.rlu-consent-category { padding: 14px 0; border-bottom: 1px solid #d6dde5; }
.rlu-consent-category-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.rlu-consent-category h3 { margin: 0; color: #242824; font-size: 16px; font-weight: 650; line-height: 1.5; }
.rlu-consent-dialog .rlu-consent-category-text { margin-top: 4px; font-size: 14px; }
.rlu-consent-state { color: #626862; font-size: 14px; font-weight: 600; line-height: 1.5; }
.rlu-consent-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.rlu-consent-switch input { width: 24px; height: 24px; margin: 0; accent-color: #175b75; cursor: pointer; }
.rlu-consent-switch input:disabled { cursor: not-allowed; }
@media (max-width: 760px) {
  .rlu-consent-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .rlu-consent-banner { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .rlu-consent-banner .rlu-consent-title { font-size: 15px; }
  .rlu-consent-banner p { line-height: 1.45; }
  .rlu-consent-inner { gap: 10px; }
  .rlu-consent-actions, .rlu-consent-dialog-actions { gap: 6px; }
  .rlu-consent-btn { padding: 6px 6px; }
  .rlu-consent-dialog { padding: 20px 16px; }
}
@media (max-width: 360px) {
  .rlu-consent-btn { padding: 4px; font-size: 13px !important; }
  .rlu-consent-banner { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  /* !important: the site's global paragraph rules (brand-theme.css) otherwise win. */
  .rlu-consent-banner p { font-size: 13px !important; line-height: 1.4 !important; }
  .rlu-consent-inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rlu-consent-btn { transition: none; } }
@media print { .rlu-consent-banner, .rlu-consent-dialog-bg { display: none !important; } html.rlu-consent-open body { padding-bottom: 0 !important; } }
/* Short screens (400% zoom, a phone in landscape): a fixed banner would cover most of the page
   (WCAG 1.4.10 Reflow). It becomes a strip at the top of the page instead, which scrolls away; it
   is already the first element in the body, so its three choices still come first. Placed last so
   it wins over the rules above at any width. */
@media (max-height: 480px) {
  .rlu-consent-banner { position: static; padding: 12px 16px; box-shadow: none; border-top: 0; border-bottom: 1px solid #cbd1d7; }
}

/* Privacy notice where the public support form collects contact details. */
.public-support-form .public-support-privacy { margin: 0; color: #626862; font-size: 14px; line-height: 1.6; }
.public-support-form .public-support-privacy a { color: #175b75; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 520px) {
 .rmcw-legal-active .page.rlu-policy-page { padding: 24px 22px 44px; }
 .legal-site-header { padding: 20px 22px; gap: 12px; }
 .legal-site-header nav { gap: 8px; }
 .legal-tools { margin-bottom: 32px; }
 .legal-document .legal-intro { font-size: 17px !important; }
 .legal-sections h2, .legal-contact h2 { font-size: 20px; }
 .legal-document-heading { padding: 22px 0 26px; margin-bottom: 32px; }
 .legal-sections h2 { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
 .legal-site-header nav a, .legal-tools button { transition: none; }
}
@media print {
 @page { margin: 18mm; }
 body.rmcw-legal-active, .rmcw-legal-active .app { background: #fff !important; color: #242824 !important; }
 .rmcw-legal-active .page.rlu-policy-page { max-width: none !important; padding: 0; }
 .legal-site-header, .legal-skip, .legal-tools, .legal-back-top, .legal-contact nav, .repairlinkup-help-fab { display: none !important; }
 .legal-document { font-size: 11pt; line-height: 1.5; }
 .legal-document-heading { padding: 0 0 20px; margin-bottom: 28px; border: 0; border-bottom: 1px solid #aaa; border-radius: 0; background: none; box-shadow: none; }
 .legal-document-heading::before { display: none; }
 .legal-document .legal-version { padding: 0; border: 0; background: none; }
 .legal-document h1 { font-size: 26pt; }
 .legal-document h2 { font-size: 15pt; break-after: avoid; }
 .legal-document p, .legal-document li, .legal-document dd { orphans: 3; widows: 3; }
 .legal-document :is(h1,h2)[tabindex]:focus-visible { outline: none; }
 .legal-contact { background: #fff; border: 1px solid #aaa; padding: 16px; box-shadow: none; border-radius: 0; }
 .legal-contact { break-inside: avoid; }
 .legal-sections section { margin-bottom: 20px; padding-bottom: 12px; }
 .legal-sections section + section { padding-top: 0; border: 0; }
 .legal-sections h2 { display: block; }
 .legal-section-number { display: inline; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; font-size: inherit; }
 .legal-document :is(a,p,h1,h2,span,dt,dd,strong) { color: #242824 !important; }
}
