/* legal.meetvendi.com: one stylesheet for every page.
   System fonts only; no external requests. The CSP allows only same-origin
   styles, so pages carry no inline styles. */

:root {
  color-scheme: light dark;
  --text: #1a1a1a;
  --muted: #595959;
  --link: #1f5fbf;
  --bg: #ffffff;
  --panel: #f4f5f7;
  --border: #d5d9df;
  --focus: #1f5fbf;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #a8a8a8;
    --link: #8ab4f8;
    --bg: #161616;
    --panel: #202124;
    --border: #3c4043;
    --focus: #8ab4f8;
  }
}

*,
*::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: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

/* Skip link: hidden until it has keyboard focus. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--link);
  border: 2px solid var(--focus);
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

header,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

header {
  padding-top: 2rem;
}

.brand {
  font-weight: 600;
  margin: 0;
}

.brand a {
  color: var(--text);
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
}

main {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
}

h1 {
  font-size: 2.125rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2.75rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

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

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.lead {
  font-size: 1.125rem;
}

/* "The short version" box at the top of each document. */
.summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem 0.25rem;
  margin: 0 0 2rem;
}

.summary h2 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

/* Table of contents. */
.toc {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 0.25rem;
  margin: 0 0 1rem;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.toc ol {
  columns: 2 17rem;
  column-gap: 2.5rem;
}

.toc li {
  break-inside: avoid;
}

.toc li + li {
  margin-top: 0.2rem;
}

/* Numbered clauses (Terms of Service): each section.clause counts as one
   section, and the items of its ol.clauses show as 5.1, 5.2 and so on, so
   cross-references like "section 5.6" can be found on the page. */
main {
  counter-reset: section;
}

section.clause {
  counter-increment: section;
}

ol.clauses {
  list-style: none;
  padding-left: 2.75rem;
  counter-reset: clause;
}

ol.clauses > li {
  position: relative;
  counter-increment: clause;
}

ol.clauses > li::before {
  content: counter(section) "." counter(clause);
  position: absolute;
  left: -2.75rem;
  width: 2.25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Wide tables scroll sideways on small screens instead of breaking the page. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.5rem;
}

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

thead th {
  border-bottom-width: 2px;
}

tbody th {
  font-weight: 600;
  white-space: nowrap;
}

/* Index page: the list of documents. */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.doc-list li + li {
  margin-top: 1rem;
}

.doc-list a {
  font-size: 1.1875rem;
  font-weight: 600;
}

.doc-list p {
  margin: 0.25rem 0 0;
}

.doc-list .meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  color: var(--muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

footer nav,
footer p {
  margin: 0 0 0.5rem;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 40rem) {
  tbody th {
    white-space: normal;
  }
}

@media print {
  :root {
    --text: #000000;
    --muted: #333333;
    --link: #000000;
    --bg: #ffffff;
    --panel: #ffffff;
    --border: #999999;
  }

  body {
    font-size: 11pt;
  }

  .skip-link,
  .toc,
  footer nav {
    display: none;
  }

  header,
  main,
  footer {
    max-width: none;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
