::selection {
  background: rgba(29, 29, 31, 0.12);
  color: var(--qp-ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Canonical colour, radius, shadow, and font-family tokens come from
   tokens.css (loaded before this file). This block holds only the
   website-only tokens the legal pages reference. */
:root {
  --qp-black: var(--qp-ink);
  --qp-black-hover: #2d2d30;
  --site-grid: 1200px;
  --site-gutter: 48px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--qp-bg);
  color: var(--qp-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--qp-black);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 400;
  transform: translateY(-180%);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--qp-radius-pill);
  background: var(--qp-black);
  color: var(--qp-on-dark);
  padding: 12px 16px;
  font-size: 13px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

nav[aria-label="Main navigation"] {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 90;
  width: min(100% - var(--site-gutter), var(--site-grid));
  transform: translateX(-50%);
}

.nav-inner {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 40px;
}

.nav-logo {
  justify-self: start;
  color: var(--qp-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(4, 86px);
  align-items: center;
  justify-self: center;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.nav-links a,
.nav-btn-ghost {
  color: var(--qp-ink-soft);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.72;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-btn-ghost:hover,
.nav-btn-ghost:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.nav-btn-ghost,
.nav-btn-solid {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--qp-radius-pill);
  padding: 0 18px;
}

.nav-btn-solid {
  background: var(--qp-black);
  color: var(--qp-on-dark);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(29, 29, 31, 0.12);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-btn-solid:hover,
.nav-btn-solid:focus-visible {
  background: var(--qp-black-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(29, 29, 31, 0.18);
}

.nav-hamburger {
  display: none;
  min-height: 40px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: var(--qp-radius-pill);
  background: rgba(254, 255, 255, 0.58);
  color: var(--qp-ink);
  cursor: pointer;
  flex-direction: column;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 78px;
  left: 50%;
  z-index: 88;
  display: none;
  width: min(100% - 32px, var(--site-grid));
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-50%);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 22px;
  background: rgba(251, 253, 253, 0.96);
  box-shadow: var(--qp-shadow-lg);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px);
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  min-height: 44px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
  color: var(--qp-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.page-header {
  position: relative;
  padding: 170px var(--site-gutter) 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.92), rgba(251, 253, 253, 0) 42%),
    linear-gradient(180deg, var(--qp-card) 0%, var(--qp-bg) 100%);
}

.page-header::after {
  position: absolute;
  right: max(48px, calc((100vw - var(--site-grid)) / 2));
  bottom: 0;
  width: min(34vw, 420px);
  height: 1px;
  background: var(--qp-rule);
  content: "";
}

.page-header .inner {
  width: min(100%, var(--site-grid));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--qp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 840px;
  margin: 0;
  color: var(--qp-ink);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-deck {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(29, 29, 31, 0.66);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--qp-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(38px, 5vw, 72px);
  width: min(100% - var(--site-gutter), var(--site-grid));
  margin: 0 auto;
  padding: 72px 0 120px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 4px;
  max-height: calc(100dvh - 136px);
  overflow-y: auto;
  padding: 8px 0 0;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

.toc-label {
  margin-bottom: 12px;
  color: rgba(29, 29, 31, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid rgba(29, 29, 31, 0.075);
  color: rgba(29, 29, 31, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.28;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--qp-ink);
  transform: translateX(2px);
}

.content {
  display: grid;
  gap: 0;
  min-width: 0;
  border-top: 1px solid rgba(29, 29, 31, 0.13);
}

.section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  padding: 34px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
  scroll-margin-top: 118px;
}

.section:last-child {
  border-bottom: 0;
}

.section-num {
  color: rgba(29, 29, 31, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section h2 {
  grid-column: 2;
  margin: 0 0 14px;
  color: var(--qp-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

.section p,
.section ul,
.section table,
.rights-grid {
  grid-column: 2;
}

.section p {
  max-width: 820px;
  margin: 0 0 14px;
  color: rgba(29, 29, 31, 0.66);
  font-size: 15px;
  line-height: 1.66;
  text-wrap: pretty;
}

.section p:last-child {
  margin-bottom: 0;
}

.section strong {
  color: var(--qp-ink);
  font-weight: 700;
}

.section a,
.legal-mailto {
  color: var(--qp-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(29, 29, 31, 0.24);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 180ms ease;
}

html:not(.has-js) .qp-email[data-user][data-domain] {
  font-size: 0;
}

html:not(.has-js) .qp-email[data-user][data-domain]::before {
  content: attr(data-user) "@" attr(data-domain);
  font-size: 15px;
}

.section a:hover,
.section a:focus-visible,
.legal-mailto:hover,
.legal-mailto:focus-visible {
  text-decoration-color: rgba(29, 29, 31, 0.74);
}

.section ul {
  display: grid;
  gap: 10px;
  max-width: 820px;
  padding: 0;
  margin: 4px 0 16px;
  list-style: none;
}

.section li {
  position: relative;
  padding-left: 20px;
  color: rgba(29, 29, 31, 0.66);
  font-size: 15px;
  line-height: 1.58;
}

.section li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--qp-radius-pill);
  background: rgba(29, 29, 31, 0.64);
  content: "";
}

.subprocessor-table {
  width: 100%;
  max-width: 860px;
  margin: 8px 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.subprocessor-table th {
  border-bottom: 1px solid rgba(29, 29, 31, 0.2);
  padding: 0 18px 12px 0;
  color: var(--qp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.subprocessor-table td {
  border-bottom: 1px solid rgba(29, 29, 31, 0.09);
  padding: 16px 18px 16px 0;
  color: rgba(29, 29, 31, 0.66);
  line-height: 1.5;
  vertical-align: top;
}

.subprocessor-table td:first-child {
  white-space: nowrap;
}

.subprocessor-table tr:last-child td {
  border-bottom: 0;
}

.rights-grid {
  display: grid;
  max-width: 860px;
  margin: 8px 0 18px;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

.rights-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.rights-card strong {
  color: var(--qp-ink);
  font-size: 15px;
}

.rights-card span {
  color: rgba(29, 29, 31, 0.66);
  font-size: 15px;
  line-height: 1.5;
}

footer {
  border-top: 1px solid var(--qp-rule);
  background: var(--qp-bg-tint);
  color: rgba(29, 29, 31, 0.7);
  padding: 56px var(--site-gutter) 34px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 0.55fr));
  gap: 42px;
  width: min(100%, var(--site-grid));
  margin-inline: auto;
}

.footer-logo {
  margin-bottom: 14px;
  color: var(--qp-ink);
  font-size: 15px;
  font-weight: 700;
}

.footer-logo b {
  font-weight: 700;
}

.footer-tagline,
.footer-col a,
.footer-bottom {
  color: rgba(29, 29, 31, 0.62);
}

.footer-tagline {
  max-width: 260px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-heading {
  margin-bottom: 14px;
  color: rgba(29, 29, 31, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 180ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--qp-ink);
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  width: min(100%, var(--site-grid));
  margin: 48px auto 0;
  border-top: 1px solid var(--qp-rule);
  padding-top: 22px;
  font-size: 13px;
}

.btt {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: var(--qp-radius-pill);
  background: rgba(251, 253, 253, 0.92);
  color: var(--qp-ink);
  cursor: pointer;
  box-shadow: var(--qp-shadow-card);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.btt:hover,
.btt:focus-visible {
  background: var(--qp-card);
  transform: translateY(-2px);
}

.btt.visible {
  display: flex;
}

@media (max-width: 980px) {
  :root {
    --site-gutter: 28px;
  }

  .nav-inner {
    min-height: 56px;
    border: 1px solid rgba(29, 29, 31, 0.1);
    border-radius: var(--qp-radius-pill);
    background: rgba(251, 253, 253, 0.96);
    box-shadow: var(--qp-shadow-lg);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px);
    padding: 8px 12px 8px 16px;
  }

  .nav-links,
  .nav-btn-ghost,
  .nav-btn-solid {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  html:not(.has-js) .nav-hamburger {
    display: none;
  }

  html:not(.has-js) .mobile-nav {
    position: static;
    display: block;
    width: min(100% - var(--site-gutter), var(--site-grid));
    max-height: none;
    margin: 92px auto 0;
    transform: none;
  }

  .page-header {
    padding-top: 142px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .toc {
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .toc-label {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --site-gutter: 28px;
  }

  nav[aria-label="Main navigation"] {
    top: 16px;
    width: calc(100% - 24px);
  }

  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-header {
    padding: 128px var(--site-gutter) 64px;
  }

  .page-header h1 {
    font-size: clamp(44px, 14vw, 58px);
  }

  .legal-deck {
    margin-top: 22px;
    font-size: 16px;
  }

  .layout {
    width: min(100% - var(--site-gutter), var(--site-grid));
    padding: 36px 0 86px;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .section h2,
  .section p,
  .section ul,
  .section table,
  .rights-grid {
    grid-column: 1;
  }

  .section h2 {
    font-size: 23px;
  }

  .subprocessor-table,
  .subprocessor-table thead,
  .subprocessor-table tbody,
  .subprocessor-table tr,
  .subprocessor-table th,
  .subprocessor-table td {
    display: block;
    width: 100%;
  }

  .subprocessor-table thead {
    display: none;
  }

  .subprocessor-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(29, 29, 31, 0.1);
  }

  .subprocessor-table tr:last-child {
    border-bottom: 0;
  }

  .subprocessor-table td {
    display: grid;
    grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 0;
    padding: 5px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .subprocessor-table td::before {
    color: var(--qp-muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .rights-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .btt {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
