/*
  Shared styling for the legal pages.

  A separate file rather than the index's embedded <style>: those 840 lines exist
  to lay out a landing page, and duplicating them into three documents that are
  almost entirely running text would mean four copies to keep in step. The tokens
  below are lifted verbatim from index.html's :root so the pages are recognisably
  the same product.
*/

:root {
  --cream: #fdf8f1;
  --surface: #ffffff;
  --line: #f0e5d6;
  --line-2: #e7d9c6;
  --ink: #1f1a14;
  --ink-2: #6e6053;
  --blue: #2b5fd9;
  --blue-hover: #1e4ab0;
  --blue-soft: #eef2fc;
  --amber-soft: #fcebd1;
  --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.legal-top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-top .wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 24px;
}

.legal-top a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Comfortable measure for continuous prose — a legal document read across a
   1440px viewport is unreadable regardless of how correct it is. */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.updated {
  margin: 0 0 32px;
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 16.5px;
}

p,
li {
  color: #2c261f;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

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

a:hover {
  color: var(--blue-hover);
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--blue-soft);
  font-family: var(--font-data);
  font-size: 13px;
}

/* Used for the points a reader is most likely to be checking — what is NOT
   collected, and where the hard limits are. */
.callout {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
}

.callout p:first-child {
  margin-top: 0;
}

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

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  font-weight: 600;
}

/* Wide tables scroll inside their own box rather than making the page scroll. */
.table-scroll {
  overflow-x: auto;
}

.legal-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}

.legal-foot a {
  margin-right: 14px;
}

@media (max-width: 640px) {
  main {
    padding: 28px 18px 56px;
  }
}
