/* The Terms of Service and Privacy Policy pages (public/terms.html, public/privacy.html).
 * Plain reading pages: the app's night palette and type, but a normal scrolling document. */

:root {
  --ink: #f4f1ee;
  --ink-dim: #b9b3c4;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-line: rgba(255, 255, 255, 0.1);
  --accent: #f5d77f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Nunito, ui-rounded, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #1b2340 0%, #10121f 420px) #10121f;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.legal {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 14px; margin-bottom: 36px;
}
.legal-nav .home { font-weight: 700; margin-right: auto; }

h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 0 0 6px;
}
.updated { color: var(--ink-dim); font-size: 14px; margin: 0 0 28px; }

h2 { font-size: 19px; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
p, li { color: var(--ink); }
ul { padding-left: 22px; }
li { margin: 4px 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.summary {
  padding: 16px 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--panel-line);
}
.summary p { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--panel-line); }
th { color: var(--ink-dim); font-weight: 600; }
/* Narrow screens: each row stacks, so no table ever scrolls sideways. */
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: 8px 0; border-bottom: 1px solid var(--panel-line); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 700; }
}

code { font-size: 0.92em; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 6px; padding: 1px 5px; }

/* A detail the operator has not filled in yet. Loud on purpose: it must not ship unnoticed. */
.todo { background: #ffd54f; color: #1a1a1a; border-radius: 4px; padding: 0 4px; font-weight: 700; }

footer.legal-foot { margin-top: 48px; color: var(--ink-dim); font-size: 14px; }
