/* Aimsmith's two public pages: the home page and the privacy policy. Colours are Carbon's
   Gray 100 theme (dark) and White theme (light), as in the app. */

:root {
  --background: #ffffff;
  --layer: #f4f4f4;
  --border: #e0e0e0;
  --text: #161616;
  --text-secondary: #525252;
  --link: #0f62fe;
  --focus: #0f62fe;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #161616;
    --layer: #262626;
    --border: #393939;
    --text: #f4f4f4;
    --text-secondary: #c6c6c6;
    --link: #78a9ff;
    --focus: #ffffff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.page {
  max-inline-size: 44rem;
  margin-inline: auto;
  padding: 3rem 1rem 4rem;
}

header {
  margin-block-end: 2.5rem;
}

.mark {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2.625rem;
  font-weight: 300;
  line-height: 1.2;
}

/* The name with the app's mark beside it, as on the sign-in page. */
.title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  flex: none;
  border-radius: 4px;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

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

ul {
  padding-inline-start: 1.25rem;
}

li + li {
  margin-block-start: 0.375rem;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.4;
}

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

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.note {
  padding: 1rem;
  border-inline-start: 3px solid var(--link);
  background: var(--layer);
}

table {
  inline-size: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.625rem 0.5rem;
  border-block-end: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

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

/* A narrow screen reads each row as a block rather than scrolling sideways. */
@media (max-width: 36rem) {
  thead {
    display: none;
  }

  tr,
  td {
    display: block;
  }

  tr {
    padding-block: 0.5rem;
    border-block-end: 1px solid var(--border);
  }

  td {
    padding: 0.125rem 0;
    border: 0;
  }

  td::before {
    display: block;
    color: var(--text-secondary);
    content: attr(data-label);
    font-size: 0.75rem;
  }
}

footer {
  margin-block-start: 3rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
