/* The shared chrome of the three policy pages (privacy-policy, terms-of-service,
   account-deletion): static files with no build step, so the Signboard tokens
   are copied here from app/globals.css by hand. Change them together. The legal
   text lives in the pages; only how it looks lives here. */

/* Lexend, the latin subset of the variable font the home page self-hosts. */
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #E4E6DF;
  --panel: #F7F6EF;
  --fill2: #ECEBE3;
  --ink: #15181B;
  --ink2: #4A5056;
  --line: #D9DBD2;
  --primary: #0B6B3A;
  --on-primary: #FFFFFF;
  --primary-ink: #0B6B3A;
  --you: #FFC20E;
  --danger: #B42318;
  --warn: #8A5400;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #14181A;
    --panel: #1E2426;
    --fill2: #14181A;
    --ink: #F3F5F2;
    --ink2: #B3BBBF;
    --line: #2E3639;
    --primary-ink: #3DBA74;
    --danger: #FF8A7A;
    --warn: #F2A33A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
}
.wrap { max-width: 776px; margin: 0 auto; padding: 28px 20px 48px; }

.brandbar { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brandbar .tile {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary);
  color: var(--on-primary);
}
.brandbar .tile circle { fill: var(--you); }
.brandbar .name { font-size: 18px; font-weight: 800; }

header { margin: 26px 0 24px; padding-bottom: 24px; border-bottom: 2px solid var(--line); }
h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 800; line-height: 26px; }

.meta-card,
.card {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
}
.meta-card { margin-top: 18px; font-size: 15px; line-height: 24px; color: var(--ink2); }
.meta-card p { margin: 0; color: var(--ink2); }
.meta-card strong { color: var(--ink); }
.card { margin: 16px 0; font-size: 16px; line-height: 25px; }

p { margin: 0.7rem 0; }
.intro { color: var(--ink2); }
a { color: var(--primary-ink); font-weight: 700; }
ul, ol { padding-left: 1.3rem; margin: 0.7rem 0; }
li { margin: 0.45rem 0; }
li::marker { color: var(--ink2); }
strong { font-weight: 700; }
code { font-size: 0.9em; background: var(--fill2); padding: 0.1em 0.4em; border-radius: 4px; }

/* What we collect: a table on a wide screen, one card per row on a phone. */
.tablewrap { margin: 16px 0; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 22px;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink2);
  background: var(--fill2);
  border-bottom: 2px solid var(--line);
}
tbody td { padding: 12px 14px; vertical-align: top; color: var(--ink2); border-bottom: 2px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  table, thead, tbody, th, td, tr { display: block; }
  table { background: none; border: 0; border-radius: 0; }
  thead { display: none; }
  tbody tr {
    margin-bottom: 10px;
    padding: 14px 16px 16px;
    background: var(--panel);
    border: 2px solid var(--ink);
    border-radius: 10px;
  }
  tbody td, tbody tr:last-child td { padding: 0; border-bottom: none; }
  tbody td:first-child { font-weight: 800; white-space: normal; }
  tbody td::before {
    content: attr(data-label);
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink2);
  }
  tbody td:first-child::before { display: none; }
}

/* Account deletion: the steps in the app, and what goes and what stays. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  margin: 10px 0;
  padding: 14px 16px 14px 56px;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: var(--on-primary);
  background: var(--primary);
}
.label { margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); }
.card.remove .label { color: var(--danger); }
.card.keep .label { color: var(--warn); }

footer { margin-top: 40px; padding-top: 18px; border-top: 2px solid var(--line); font-size: 15px; line-height: 24px; color: var(--ink2); }
footer a { color: var(--ink2); }

@media (min-width: 641px) {
  body { font-size: 17px; line-height: 28px; }
  .wrap { padding-top: 40px; }
  h1 { font-size: 34px; }
}
