/* legal.css — legal document pages: /privacy/, /terms/, /licenses/.
   Loaded after site.css and uses only the tokens defined there. */

/* ------------------------------------------------------------------ shell */

.doc {
  padding-block: 56px 96px;
}

.doc .eyebrow {
  margin: 0 0 14px;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 18px;
  max-width: 720px;
}

.doc__meta {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 44px;
  max-width: 720px;
}

.doc__meta p {
  margin: 0;
}

/* ----------------------------------------------------------------- layout */

.doc__layout {
  display: block;
}

@media (min-width: 1100px) {
  .doc__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    gap: 56px;
    align-items: start;
  }
}

/* --------------------------------------------------------------- contents */

.doc__toc {
  margin: 0 0 40px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}

.doc__toc-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.doc__toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc__toc li {
  margin: 0 0 8px;
}

.doc__toc li:last-child {
  margin-bottom: 0;
}

.doc__toc a {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text2);
  text-decoration: none;
}

.doc__toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 1100px) {
  .doc__toc {
    position: sticky;
    top: 24px;
    align-self: start;
    margin: 0;
  }
}

/* ------------------------------------------------------------------- text */

.doc__body {
  max-width: 720px;
}

.doc__body > :first-child {
  margin-top: 0;
}

.doc__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0 0 18px;
}

.doc__body strong {
  color: var(--text);
  font-weight: 600;
}

.doc__body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text);
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 24px;
}

.doc__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc__body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  margin: 32px 0 12px;
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 18px;
  padding-left: 26px;
}

.doc__body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0 0 10px;
}

.doc__body li:last-child {
  margin-bottom: 0;
}

.doc__body li > ul,
.doc__body li > ol {
  margin-top: 10px;
}

.doc__body li::marker {
  color: var(--muted);
}

.doc__body blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--hairline);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
}

.doc__body blockquote p {
  margin: 0;
}

/* ----------------------------------------------------------------- tables */

.doc table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--hairline);
  margin: 0 0 24px;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text2);
  line-height: 1.5;
}

.doc thead th {
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.doc tbody tr:last-child td {
  border-bottom: 0;
}

/* Only the table scrolls on narrow screens, never the page. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
}

.table-scroll table {
  margin: 0;
  min-width: 520px;
}

/* ----------------------------------------------------------- placeholders */

mark.todo {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--warn);
  background: rgba(255, 180, 192, 0.12);
  border: 1px solid rgba(255, 180, 192, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ------------------------------------------------------------------ small */

@media (max-width: 700px) {
  .doc {
    padding-block: 40px 72px;
  }

  .doc h1 {
    font-size: 32px;
  }
}
