/* Shared styling for the three standalone document pages. These deliberately
   do not load the canvas runtime: a privacy policy has to be readable even if
   every script on the site fails, and it has to be printable and zoomable,
   which the landing page's scroll engine is not. */

:root {
  --ink: #1A1A1A;
  --ink-soft: #3C4B4E;
  --teal: #1B636D;
  --teal-deep: #164F57;
  --cream: #FBF7F1;
  --cream-deep: #F1E9DD;
  --rule: rgba(27, 99, 109, .16);
}

* { box-sizing: border-box; }

html {
  /* No touch-action or scroll hijacking here — these pages scroll and zoom
     the way the browser intends. */
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  background-attachment: fixed;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

/* A visible skip link, not one that only appears for sighted mouse users. */
.skip {
  position: absolute;
  right: -9999px;
  top: 8px;
  z-index: 10;
  background: var(--teal);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { right: 12px; }

.wrap {
  max-width: 76ch;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

header.doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 8px;
}
.home:hover { text-decoration: underline; }

.brand { font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }

h1 {
  font-weight: 800;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 30px 0 6px;
}

.updated { margin: 0 0 30px; color: var(--ink-soft); font-size: 15px; }

h2 {
  font-weight: 700;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.3;
  margin: 36px 0 10px;
  color: var(--teal-deep);
}

h3 { font-weight: 700; font-size: 17px; margin: 22px 0 6px; }

p { margin: 0 0 14px; }

ul, ol { margin: 0 0 16px; padding-inline-start: 22px; }
li { margin-bottom: 8px; }

a { color: var(--teal); }

/* Focus has to be visible on every interactive element, on every background. */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.note {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  border-inline-start: 4px solid var(--teal);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
}
.note p:last-child { margin-bottom: 0; }

/* Anything still waiting on a real value from the business. Deliberately loud:
   these must not reach production unnoticed. */
.todo {
  background: #FFF3CD;
  border: 1px dashed #B8860B;
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 700;
  color: #6B4E00;
  white-space: nowrap;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15.5px; }
caption { text-align: start; font-weight: 700; padding-bottom: 8px; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; color: var(--teal-deep); }
.scroll-x { overflow-x: auto; }

footer.doc {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}
footer.doc nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 20px 16px 60px; }
}

@media print {
  body { background: #fff; }
  .skip, .home { display: none; }
}

/* The consent control in the privacy policy. */
#consent-reset {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 200ms, transform 120ms;
}
#consent-reset:hover { background: var(--teal-deep); }
#consent-reset:active { transform: scale(.97); }
#consent-reset[disabled] { opacity: .5; cursor: not-allowed; }
#consent-state { color: var(--ink-soft); font-size: 15px; }
