/*
  DeskFlow website stylesheet.
  Plain CSS, no external resources: system fonts only, no web fonts, no images from other domains.
  Light and dark themes follow the visitor's system setting (prefers-color-scheme).
  Brand colours: #208AEF (blue), #2FB380 (green), #F59F00 (amber). Text colours are darker or lighter
  variants chosen to keep a contrast ratio of at least 4.5:1.
*/

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --bg-tint: #eaf3fe;
  --surface: #ffffff;
  --border: #dbe4ef;
  --border-strong: #b9cbe0;

  --text: #0f172a;
  --text-muted: #475569;
  --heading: #0b1324;

  --link: #0b63c4;
  --link-hover: #084f9e;

  --brand: #208aef;
  --brand-green: #2fb380;
  --brand-amber: #f59f00;

  --btn-bg: #0b63c4;
  --btn-bg-hover: #084f9e;
  --btn-text: #ffffff;

  --blue-bg: #eaf3fe;
  --green-text: #12714a;
  --green-bg: #e8f7f0;
  --amber-text: #8a5300;
  --amber-bg: #fff4e0;
  --violet-text: #5b3cc4;
  --violet-bg: #f1ecff;
  --teal-text: #0b6e7d;
  --teal-bg: #e3f6f9;

  --bar-track: #e2e8f0;
  --focus: #0b63c4;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 12px 32px rgb(15 23 42 / 8%);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 72rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0e1729;
    --bg-tint: #10233f;
    --surface: #111c30;
    --border: #22324d;
    --border-strong: #34507a;

    --text: #e6edf5;
    --text-muted: #a9b6c6;
    --heading: #f3f7fb;

    --link: #7cbcff;
    --link-hover: #a6d1ff;

    --btn-bg: #6cb4ff;
    --btn-bg-hover: #94c9ff;
    --btn-text: #06111f;

    --blue-bg: #10233f;
    --green-text: #5fd3a0;
    --green-bg: #0f2a22;
    --amber-text: #ffc053;
    --amber-bg: #2b2210;
    --violet-text: #c4b5fd;
    --violet-bg: #231a42;
    --teal-text: #6fdfee;
    --teal-bg: #0d2a30;

    --bar-track: #26364f;
    --focus: #7cbcff;

    --shadow-sm: none;
    --shadow: 0 1px 0 rgb(255 255 255 / 4%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1875rem;
}

h4 {
  font-size: 1.05rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-tint);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--btn-text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--heading);
}

.site-header .brand {
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
}

.main-nav {
  order: 3;
  width: 100%;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--bg-tint);
  color: var(--heading);
}

.main-nav a[aria-current="page"] {
  background: var(--blue-bg);
  color: var(--link);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.lang-switch:hover {
  border-color: var(--link);
  color: var(--link);
}

.lang-switch svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 860px) {
  .site-header .brand {
    margin-right: 0;
  }

  .main-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }
}

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--link);
}

.btn-secondary:hover {
  border-color: var(--link);
  color: var(--link-hover);
}

.btn-play {
  padding-block: 0.55rem;
  text-align: left;
}

.btn-play .btn-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-play .btn-label small {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-play .btn-label span {
  font-size: 1.15rem;
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.chips svg {
  width: 16px;
  height: 16px;
  color: var(--green-text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(56rem 28rem at -10% -20%, rgb(32 138 239 / 17%), transparent 62%),
    radial-gradient(48rem 26rem at 110% 0%, rgb(47 179 128 / 16%), transparent 60%),
    var(--bg-soft);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 2.75rem 3.25rem;
}

@media (min-width: 920px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding-block: 4.5rem 5rem;
  }
}

.app-id {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.app-id img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.app-id p {
  margin: 0;
}

.app-id .name {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-id .sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
}

.fine {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Product mock-ups (decorative, described with aria-label) ---------- */
.mock-stack {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.widget-mock {
  width: 100%;
  max-width: 27rem;
  padding: 1.1rem 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--surface), var(--bg-tint));
  box-shadow: var(--shadow);
}

.wm-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wm-head img {
  width: 42px;
  height: 42px;
}

.wm-head p {
  margin: 0;
  line-height: 1.25;
}

.wm-title {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.wm-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.wm-score {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.4rem 0.75rem;
  border-radius: 14px;
  background: var(--surface);
}

.wm-score strong {
  color: var(--green-text);
  font-size: 1.8rem;
  line-height: 1;
}

.wm-score span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.wm-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.wm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.88rem;
}

.wm-row b {
  color: var(--heading);
}

.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.35rem;
  border-radius: 50%;
}

.bar {
  height: 8px;
  margin-top: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bar-track);
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.c-water {
  background: #22b8cf;
}

.c-breaks {
  background: #f59f00;
}

.c-stand {
  background: #20c997;
}

.c-eyes {
  background: #845ef7;
}

.c-steps {
  background: #2fb380;
}

.w-38 {
  width: 38%;
}

.w-50 {
  width: 50%;
}

.w-56 {
  width: 56%;
}

.w-73 {
  width: 73%;
}

.w-100 {
  width: 100%;
}

.notif-mock {
  width: 100%;
  max-width: 25rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notif-mock p {
  margin: 0;
}

.nm-app {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.nm-app img {
  width: 18px;
  height: 18px;
}

.nm-title {
  margin-top: 0.35rem !important;
  color: var(--heading);
  font-weight: 750;
}

.nm-body {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nm-actions {
  display: flex;
  gap: 1.4rem;
  margin-top: 0.6rem !important;
  color: var(--link);
  font-size: 0.88rem;
  font-weight: 750;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 4.75rem;
  }
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.section-head .lead {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--link);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0.9rem 0 0.35rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card p + p {
  margin-top: 0.6rem;
}

.icon-badge {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.tone-blue {
  background: var(--blue-bg);
  color: var(--link);
}

.tone-green {
  background: var(--green-bg);
  color: var(--green-text);
}

.tone-amber {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.tone-violet {
  background: var(--violet-bg);
  color: var(--violet-text);
}

.tone-teal {
  background: var(--teal-bg);
  color: var(--teal-text);
}

.check-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.9rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green-bg);
  box-shadow: inset 0 0 0 2px var(--green-text);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0.36rem;
  width: 0.45rem;
  height: 0.26rem;
  border-bottom: 2px solid var(--green-text);
  border-left: 2px solid var(--green-text);
  transform: rotate(-45deg);
}

.card .check-list {
  margin: 0.75rem 0 0;
}

.card-premium {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 0.8rem;
  font-weight: 750;
}

/* ---------- Health Connect section ---------- */
.section-health {
  background:
    radial-gradient(40rem 22rem at 100% 0%, rgb(47 179 128 / 14%), transparent 65%),
    radial-gradient(36rem 22rem at 0% 100%, rgb(32 138 239 / 12%), transparent 65%),
    var(--bg);
}

.health-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 920px) {
  .health-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hc-visual {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
}

.hc-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hc-card p {
  margin: 0;
}

.hc-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hc-label svg {
  width: 18px;
  height: 18px;
}

.hc-value {
  margin-top: 0.3rem !important;
  color: var(--heading);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.hc-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.badge-local {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 0.9rem;
  font-weight: 750;
}

.badge-local svg {
  width: 18px;
  height: 18px;
}

/* ---------- Languages ---------- */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-list li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 650;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 52rem;
}

.faq details {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 1rem 3.25rem 1rem 1.15rem;
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  color: var(--link);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
}

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

/* ---------- Call to action band ---------- */
.cta-band {
  text-align: center;
}

.cta-band .cta-row {
  justify-content: center;
}

.cta-band img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}

.cta-band .lead {
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.75rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 26rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.footer-title {
  margin-bottom: 0.75rem;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
}

.footer-links a:hover {
  color: var(--link);
}

.no-tracking {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green-text) !important;
  font-size: 0.9rem;
  font-weight: 750;
}

.no-tracking svg {
  width: 18px;
  height: 18px;
}

.footnote {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */
.page-head {
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(40rem 18rem at 0% 0%, rgb(32 138 239 / 12%), transparent 65%),
    var(--bg-soft);
}

.page-head .lead {
  margin-bottom: 0;
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  gap: 1.75rem;
  padding-block: 2rem 4rem;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 3rem;
  }
}

.toc-side {
  display: none;
}

@media (min-width: 1024px) {
  .toc-side {
    display: block;
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding-right: 0.25rem;
  }

  .toc-mobile {
    display: none;
  }
}

.toc-title {
  margin-bottom: 0.5rem;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  background: var(--bg-tint);
  color: var(--heading);
}

.toc ol ol a {
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.87rem;
}

.toc-mobile details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.toc-mobile summary {
  padding: 0.85rem 1rem;
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
}

.toc-mobile details > ol {
  padding: 0 0.5rem 0.75rem;
}

.doc {
  min-width: 0;
  max-width: 47rem;
}

.doc > section,
.doc > .section-block {
  margin-bottom: 2.75rem;
}

.doc h2 {
  padding-top: 0.25rem;
}

.doc h3 {
  margin-top: 1.9rem;
}

.doc h4 {
  margin-top: 1.4rem;
}

.doc ul,
.doc ol {
  padding-left: 1.35rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc li > ul,
.doc li > ol {
  margin-top: 0.4rem;
}

[id] {
  scroll-margin-top: 1rem;
}

.in-short {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--blue-bg);
}

.in-short p {
  margin: 0;
}

.in-short strong {
  color: var(--heading);
}

.statement {
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--brand-green);
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  color: var(--heading);
  font-weight: 650;
}

.callout {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.callout p:last-child,
.callout ul:last-child,
.callout ol:last-child {
  margin-bottom: 0;
}

.callout.warn {
  border-color: transparent;
  background: var(--amber-bg);
}

.callout.warn strong {
  color: var(--amber-text);
}

.callout.ok {
  border-color: transparent;
  background: var(--green-bg);
}

.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 36rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap.compact table {
  min-width: 28rem;
}

caption {
  padding: 0.8rem 1rem;
  color: var(--heading);
  font-weight: 750;
  text-align: left;
  caption-side: top;
}

th,
td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody th {
  color: var(--heading);
  font-weight: 650;
}

td p,
th p {
  margin: 0 0 0.4rem;
}

td p:last-child,
th p:last-child {
  margin-bottom: 0;
}

.perm {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.path {
  color: var(--heading);
  font-weight: 650;
}

.steps {
  margin: 0 0 1.25rem;
  padding: 0 !important;
  counter-reset: step;
  list-style: none;
}

.steps > li {
  position: relative;
  margin-bottom: 0.9rem;
  padding-left: 2.6rem;
}

.steps > li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.92rem;
  font-weight: 800;
}

.step-card {
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-card h2,
.step-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
}

.step-num {
  display: inline-grid;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-bg);
  color: var(--link);
  font-size: 1rem;
  font-weight: 800;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.25rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0 !important;
  list-style: none;
}

.back-top {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--border);
}

/* ---------- 404 ---------- */
.not-found {
  padding-block: 5rem;
  text-align: center;
}

.not-found img {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
}

.not-found .cta-row {
  justify-content: center;
}

.not-found .lead {
  margin-inline: auto;
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .btn,
  .lang-switch,
  .chips li,
  .card,
  .in-short,
  .statement,
  .callout {
    border: 1px solid CanvasText;
  }
}

/* ---------- Print (handy for saving the policy as PDF) ---------- */
@media print {
  .main-nav,
  .lang-switch,
  .toc,
  .skip-link,
  .cta-row,
  .footer-grid nav,
  .mock-stack,
  .hc-visual {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  a {
    color: #000000;
  }

  .doc a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .legal-layout {
    display: block;
  }

  .page-head,
  .site-footer,
  .in-short,
  .statement,
  .callout,
  .table-wrap {
    border: 1px solid #999999;
    background: none;
    box-shadow: none;
  }

  table {
    min-width: 0;
  }
}
