/* Chrome and prose styles for the legal subpages (privacy, terms, delete).
   The launch page carries its own inline CSS; these pages are long-form text,
   so they get a shared stylesheet instead. Tokens come from styles.css. */

:root {
  --pad-x: clamp(20px, 4.5vw, 72px);
  --ink: var(--dark);
  --body: var(--charcoal);
  --meta: var(--mid);
  --line: #E4E4E0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: var(--ink); }
a:hover { color: var(--lime-dim); }

/* Header — the launch page's pill nav is for a scrolling story; a long legal
   page wants a plain bar that stays out of the way. */
header.sub {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.sub img { height: 26px; width: auto; display: block; }
header.sub a { color: var(--meta); text-decoration: none; font-weight: 500; font-size: 15px; }
header.sub a:hover { color: var(--ink); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--pad-x) 96px;
}

/* Wordmark face is allowed on a page's hero H1; sentence case, never uppercased
   — uppercase is reserved for overlines and the marquee. */
h1 {
  font-family: var(--font-wordmark);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 .5rem;
}
h2 { color: var(--ink); font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.6rem 0 .8rem; font-weight: 600; }
h3 { color: var(--ink); font-size: 1.02rem; margin: 1.7rem 0 .4rem; font-weight: 600; }
p { margin: 0 0 .9rem; line-height: 1.65; }
.meta { color: var(--meta); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: .35rem 0; line-height: 1.6; }
code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1rem .35rem;
  font-size: .9em;
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th { color: var(--meta); font-weight: 600; }

/* Cards are for a single thing on its own — never repeated rows. */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.2rem 0;
}
.card h2 { margin-top: 0; }

.warn {
  background: var(--lime-bg);
  border: 1px solid #DCE9B4;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin: 1.2rem 0;
  color: var(--ink);
}

.todo { color: #B36B00; background: #FFF6E5; border: 1px solid #F0DDB8; border-radius: 6px; padding: .1rem .4rem; font-style: normal; }

/* Footer — same structure and type scale as the launch page. */
footer.sub { border-top: 1px solid var(--line); padding: clamp(48px, 7vh, 80px) var(--pad-x) 36px; }
footer.sub .fcols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; }
footer.sub .fcols h5 { margin: 0 0 14px; font-weight: 600; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--meta); }
footer.sub .fcols a { display: block; font-size: 15px; color: var(--body); padding: 5px 0; text-decoration: none; }
footer.sub .fcols a:hover { color: var(--lime-dim); }
footer.sub .fbot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer.sub .fbot a:hover { color: var(--lime-dim); }
footer.sub .fbot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--meta); }
.chakra { font-family: var(--font-wordmark); font-weight: 700; text-transform: uppercase; }

@media (max-width: 860px) { footer.sub .fcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.sub .fcols { grid-template-columns: 1fr; gap: 26px; } }
