/*
  The six legal pages' one stylesheet (/terms/, /privacy/, /refunds/, /copyright/, /acceptable-use/,
  /contact/). Same palette and type as /welcome/ (Satoshi + Inter, self-hosted from
  /welcome/fonts/), light and dark by the browser's setting. Static: no script, no third party.
  The wording lives in each page's <main> and nowhere else.
*/
@font-face {
  font-family: 'Satoshi';
  src: url('/welcome/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/welcome/fonts/Inter-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-2: #4f4b45;
  --line: #d3cfc7;
  --accent: #c8440f;
  --focus: #c8440f;
  --display: 'Satoshi', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --text: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f0e0c;
    --surface: #1a1916;
    --ink: #f3f1ec;
    --ink-2: #c4beb4;
    --line: #3c3934;
    --accent: #f2692c;
    --focus: #ff8a50;
  }
}
@media (min-width: 760px) {
  :root {
    --gutter: 40px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2.5px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header .wrap {
  display: flex;
  align-items: center;
  min-height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1.4375rem/1 var(--display);
  text-decoration: none;
}
.wordmark svg {
  width: 30px;
  height: 30px;
}

main {
  padding: 24px 0 56px;
}
h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
  line-height: 1.25;
}
p,
ul,
ol,
dl,
.table-wrap {
  margin: 0.75rem 0 0;
}
ul,
ol {
  padding-left: 1.4rem;
}
li + li {
  margin-top: 0.4rem;
}
.effective {
  color: var(--ink-2);
}
strong {
  font-weight: 600;
}
dt {
  margin-top: 0.75rem;
  font-weight: 600;
}
dd {
  margin: 0;
}

/* The privacy table: a table from a tablet up, a stack of labelled cards on a phone. */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--ink-2);
  font-weight: 600;
}
td:first-child {
  font-weight: 600;
}
@media (max-width: 639px) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  tr {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  td {
    padding: 8px 14px;
    border: 0;
  }
  td:first-child {
    padding-top: 12px;
  }
  td:last-child {
    padding-bottom: 12px;
  }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

footer {
  padding: 8px 0 calc(48px + env(safe-area-inset-bottom));
  color: var(--ink-2);
  font-size: 0.9375rem;
}
footer .wrap > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer li + li {
  margin: 0;
}
footer a {
  display: inline-block;
  padding: 10px 0;
  color: inherit;
}
footer a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}
footer p {
  margin-top: 8px;
}
