/* Tessabee's legal pages (/privacy, /terms, /refunds): plain pages, no scripts, light and dark. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin.woff2) format('woff2-variations');
}

:root {
  color-scheme: light;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --line: #e3e6ec;
  --text: #10131a;
  --honey-text: #c4850a;
  --text-2: #4e5665;
  --text-3: #687080;
  --accent: #3355ff;
  --beta-bg: #fff4e5;
  --beta-line: #f6d4a6;
  --beta-text: #7a4a0e;
  --soon-bg: #eef1ff;
  --soon-line: #cfd7ff;
}
/* Dark: the device asks for it (unless light was chosen), or dark was chosen (see legal.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b0c0f;
    --surface: #16181d;
    --line: #262a32;
    --text: #eef0f4;
    --honey-text: #efa415;
    --text-2: #a9b0bd;
    --text-3: #8a92a0;
    --accent: #8098ff;
    --beta-bg: #2a2010;
    --beta-line: #5a4320;
    --beta-text: #f3c98a;
    --soon-bg: #171c33;
    --soon-line: #2d3766;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #16181d;
  --line: #262a32;
  --text: #eef0f4;
  --honey-text: #efa415;
  --text-2: #a9b0bd;
  --text-3: #8a92a0;
  --accent: #8098ff;
  --beta-bg: #2a2010;
  --beta-line: #5a4320;
  --beta-text: #f3c98a;
  --soon-bg: #171c33;
  --soon-line: #2d3766;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.top {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.brand__outline { stroke: var(--text); }
.brand__bee { color: var(--honey-text); }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; align-items: center; }
.theme-switch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-switch:hover { color: var(--text); background: var(--surface); }
.theme-switch .sun { display: none; }
:root[data-theme='dark'] .theme-switch .sun { display: block; }
:root[data-theme='dark'] .theme-switch .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-switch .sun { display: block; }
  :root:not([data-theme='light']) .theme-switch .moon { display: none; }
}
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--text); }
.top nav a[aria-current='page'] { font-weight: 600; }

main {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 36px 40px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.updated { color: var(--text-3); font-size: 14px; margin: 0 0 24px; }
h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 22px 0 4px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
strong { font-weight: 650; }

.beta, .soon {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 15px;
}
.beta { background: var(--beta-bg); border: 1px solid var(--beta-line); color: var(--beta-text); }
.soon { background: var(--soon-bg); border: 1px solid var(--soon-line); }
.soon p:last-child, .beta p:last-child { margin: 0; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--soon-bg);
  border: 1px solid var(--soon-line);
  color: var(--accent);
  vertical-align: 2px;
  margin-left: 6px;
  white-space: nowrap;
}

.table { overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--text-2); font-size: 14px; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--text-3);
  font-size: 14px;
}
footer a { color: var(--text-2); }

@media (max-width: 640px) {
  main { margin-top: 18px; padding: 24px 18px 30px; border-radius: 16px; }
  .top nav { margin-left: 0; width: 100%; }
}

/* "Page not found" (404.html): calm, centred, the bee standing by. */
.notfound { text-align: center; padding-top: 48px; padding-bottom: 64px; }
.notfound h1 { margin-top: 12px; }
.notfound p { margin-left: auto; margin-right: auto; max-width: 30em; }
.notfound__bee { display: block; margin: 0 auto; }
.notfound__bee--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .notfound__bee--light { display: none; }
  :root:not([data-theme='light']) .notfound__bee--dark { display: block; }
}
:root[data-theme='dark'] .notfound__bee--light { display: none; }
:root[data-theme='dark'] .notfound__bee--dark { display: block; }
.notfound__home {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
