/* Retecta privacy notice (retecta.com/privacy). One linked file, so the
   site's Content-Security-Policy (style-src 'self') holds; system fonts only,
   so nothing is fetched. The holding page's ink and paper, light by default
   and dark when the reader's device asks for it. */

:root {
  --bg: #F3F0EA;
  --text: #0B1220;
  --muted: #4A5468;
  --rule: #7A9CE6;
  --link: #2F55B0;
  --note-bg: #E6E0D4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --text: #F3F0EA;
    --muted: #AEB6C6;
    --rule: #7A9CE6;
    --link: #9DB8F0;
    --note-bg: #1A2335;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body { padding: 40px 16px 32px; }

main { max-width: 40rem; margin: 0 auto; }

/* THE LAYOUT RULE (docs/ui-and-copy.md rule 9): the text keeps a reading
   column and the space beside it holds the page's contents
   (landing/legalPages.mjs withContents), kept in view while reading. */
.legal {
  display: grid;
  grid-template-columns: minmax(13rem, 19rem) minmax(0, 42rem);
  gap: clamp(2rem, 4vw, 4rem);
  justify-content: center;
  align-items: start;
  max-width: 80rem;
  margin: 0 auto;
}
.legal main { max-width: none; margin: 0; }
.contents {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-top: 6.4rem;
  font-size: 0.9rem;
}
.contents-title {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.contents ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.contents li { margin: 0; line-height: 1.35; }
.contents a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .contents { display: none; }
}

/* The third-party notices (/third-party-notices). */
.notices { padding-left: 0; list-style: none; }
.notices li { margin-bottom: 0.6rem; }
.licence-text {
  margin: 0 0 1.5rem;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.8rem;
  line-height: 1.5;
  background: var(--note-bg);
}
.notices-link { margin: 3rem 0 0; font-size: 0.85rem; }
.notices-link a { color: var(--muted); }

.wordmark { margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.5rem; }
.wordmark a { color: var(--text); text-decoration: none; }

h1 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.updated { color: var(--muted); margin-bottom: 2rem; }

h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}

h3 { margin: 1.5rem 0 0.4rem; font-size: 1.05rem; }

p, li { line-height: 1.6; }
p { margin: 0 0 0.9rem; }
ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

/* The company footer (landing/legalPages.mjs). */
.site-foot {
  width: 100%;
  max-width: 80rem;
  margin: 3rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-foot .company { margin: 0 0 0.5rem; line-height: 1.5; }
.site-foot .legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--link); }
