/* QShield SSR adapter: AV DS 4 semantic tokens + the product teal override. */
:root {
  color-scheme: light;
  --background: 216 20% 97%;
  --foreground: 220 25% 10%;
  --border: 216 12% 88%;
  --card: 216 18% 98%;
  --card-foreground: 220 25% 10%;
  --muted: 216 12% 92%;
  --muted-foreground: 216 10% 45%;
  --primary: 172 66% 37%;
  --primary-foreground: 0 0% 99%;
  --ring: 172 66% 37%;
  --font-sans: "IBM Plex Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px hsl(220 25% 10% / 0.06),
    0 1px 2px hsl(220 25% 10% / 0.04);
  --privacy-shell: 72rem;
  --privacy-reading: 46rem;
}

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

html {
  background: hsl(var(--background));
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: hsl(var(--primary));
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 3px;
}

.privacy-skip {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  border-radius: calc(var(--radius) - 0.25rem);
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
}

.privacy-skip:focus {
  transform: translateY(0);
}

.privacy-shell {
  width: min(100% - 2rem, var(--privacy-shell));
  margin-inline: auto;
}

.privacy-header {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.privacy-header__inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: hsl(var(--foreground));
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.privacy-brand__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 0.25rem);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.privacy-language {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.1rem);
  background: hsl(var(--background));
}

.privacy-language a {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 0.25rem);
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.privacy-language a[aria-current="page"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm);
}

.privacy-main {
  width: min(100% - 2rem, var(--privacy-shell));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) 4.5rem;
  flex: 1;
}

.privacy-document {
  width: min(100%, var(--privacy-reading));
  margin-inline: auto;
}

.privacy-document::before {
  content: "";
  width: 3.5rem;
  height: 0.25rem;
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: hsl(var(--primary));
}

.privacy-document h1 {
  max-width: 22ch;
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.08;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.privacy-document h1 + p {
  margin-block: 1.2rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.94rem;
}

.privacy-document h2 {
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.privacy-document p,
.privacy-document li {
  color: hsl(var(--card-foreground));
  font-size: 1.04rem;
}

.privacy-document p {
  margin: 0;
}

.privacy-document ul {
  margin-block: 0.75rem 0;
  padding-left: 1.35rem;
}

.privacy-document li + li {
  margin-top: 0.45rem;
}

.privacy-document strong {
  font-weight: 720;
}

.privacy-document code {
  padding: 0.12rem 0.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.35rem;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.privacy-document a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}

.privacy-document .privacy-status {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.privacy-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.privacy-actions a {
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  color: hsl(var(--foreground));
  text-decoration: none;
}

.privacy-actions a:hover {
  border-color: hsl(var(--primary));
}

.privacy-actions .privacy-action--primary {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm);
}

.privacy-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.privacy-footer__inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

@media (max-width: 35rem) {
  .privacy-shell,
  .privacy-main {
    width: min(100% - 1.5rem, var(--privacy-shell));
  }

  .privacy-header__inner {
    min-height: auto;
    padding-block: 0.75rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-language {
    width: 100%;
  }

  .privacy-language a {
    flex: 1;
  }

  .privacy-main {
    padding-block: 2.5rem 3.5rem;
  }

  .privacy-document h1 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .privacy-document h2 {
    margin-top: 2.5rem;
  }

  .privacy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .privacy-skip {
    transition: none;
  }
}

@media print {
  .privacy-header,
  .privacy-footer,
  .privacy-skip {
    display: none;
  }

  body,
  html {
    background: transparent;
  }

  .privacy-main {
    width: 100%;
    padding: 0;
  }
}
