/* Shared styling for the privacy and terms pages.
 *
 * Same tokens as the app, in a file of their own: these are plain documents
 * with no script behind them, and they should not have to carry the whole
 * tracker's stylesheet to render a page of text. */

:root {
  --bg:          #060910;
  --surface:     #0f1622;
  --surface-2:   #151e2d;
  --line:        rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.15);
  --text:        #eaf0f7;
  --text-dim:    #94a2b6;
  --text-faint:  #808ea0;
  --green:       #24c97a;
  --radius:      16px;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(760px, 100% - 2.2rem); margin: 0 auto; }

header.top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36,201,122,.05), transparent 70%);
}
.top-inner { display: flex; align-items: center; gap: .8rem; padding: 1rem 0; }
.top-inner svg { width: 34px; height: 34px; flex: none; }
.brand { min-width: 0; }
.brand a {
  font-family: var(--display); font-size: 1.22rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; color: var(--text);
  text-decoration: none; display: block; line-height: 1.1;
}
.brand span {
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
}
.back {
  margin-left: auto; flex: none; font-size: .8rem; color: var(--text-dim);
  text-decoration: none; border: 1px solid var(--line-strong);
  padding: .4rem .8rem; border-radius: 999px; white-space: nowrap;
}
.back:hover { color: var(--text); border-color: var(--text-dim); }

main { padding: 2rem 0 3.5rem; }
h1 {
  font-family: var(--display); font-size: 2.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .3rem;
}
.updated {
  font-size: .76rem; color: var(--text-faint); letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600; margin: 0 0 2rem;
}
h2 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; color: var(--text);
  margin: 2.4rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.8rem; }
p, li { color: var(--text-dim); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .5rem; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--green); }
a:hover { color: #4ee39a; }

/* A fact worth not burying in a paragraph. */
.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin: 0 0 1.4rem;
}
.callout p:last-child { margin-bottom: 0; }

table.plain { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .88rem; }
table.plain th, table.plain td {
  text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.plain th {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
}
table.plain td { color: var(--text-dim); }
.scroller { overflow-x: auto; }

footer.foot {
  border-top: 1px solid var(--line); padding: 1.3rem 0 2.2rem;
  font-size: .78rem; color: var(--text-faint);
}
footer.foot a { color: var(--text-dim); text-decoration: none; }
footer.foot a:hover { color: var(--text); }
footer.foot .links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .6rem; }

@media (max-width: 620px) {
  body { font-size: 14px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.14rem; }
  .top-inner { padding: .8rem 0; }
}
