/* Legal pages (/privacy, /terms, /refund, /delete-account): static HTML for
   store reviewers and crawlers; legal.js adds the bar, document nav and
   footer. No web fonts: everything is served from this site, so the
   font stacks fall back to locally installed faces. */

/* The site's palette (src/styles/city.css): ink background, light text, one lime accent. */
:root {
  --ink: #eef5f0;
  --concrete: #101b20;
  --paper: #17262b;
  --muted: #8ba4a6;
  --accent: #c4ef80;
  --rule: 1px solid #2b3d42;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 2.4vw, 32px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 16px/1.75 var(--text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--rule);
  background: var(--paper);
  font: 700 13px/1 var(--mono);
  text-transform: uppercase;
}

.bar a {
  padding: 16px var(--gutter);
  border: 0;
  border-right: var(--rule);
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.bar .brand {
  margin-right: auto;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.bar [aria-current="page"] {
  background: var(--accent);
  color: var(--concrete);
}

.doc {
  max-width: 820px;
  margin: clamp(16px, 4vw, 48px) auto;
  padding: clamp(20px, 4vw, 48px);
  border: var(--rule);
  border-radius: 16px;
  background: var(--paper);
}

@media (max-width: 860px) {
  .doc {
    margin: 16px;
  }
}

.doc article + article {
  margin-top: 64px;
  padding-top: 32px;
  border-top: var(--rule);
}

h1 {
  margin: 0 0 4px;
  font: 750 clamp(30px, 6vw, 44px)/1.15 var(--display);
  letter-spacing: -0.03em;
}

h2 {
  margin: 40px 0 8px;
  padding-bottom: 6px;
  border-bottom: var(--rule);
  font: 700 20px/1.35 var(--display);
}

h3 {
  margin: 28px 0 6px;
  font-size: 16px;
}

.meta {
  margin: 0 0 24px;
  color: var(--muted);
  font: 13px var(--mono);
}

.toc {
  margin: 0 0 8px;
  padding: 12px 20px;
  border: var(--rule);
  background: var(--concrete);
  font-size: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

ol.paras {
  padding-left: 0;
  list-style: none;
  counter-reset: para;
}

ol.paras > li {
  position: relative;
  padding-left: 1.7em;
  counter-increment: para;
}

ol.paras > li::before {
  position: absolute;
  left: 0;
  content: counter(para) ".";
  font: 700 0.9em/1.9 var(--mono);
}

li {
  margin: 4px 0;
}

table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.table {
  overflow-x: auto;
}

th,
td {
  padding: 8px 10px;
  border: var(--rule);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--concrete);
}

th:first-child,
td:first-child {
  min-width: 8rem;
}

.note {
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--concrete);
}

.foot {
  padding: 24px var(--gutter) 40px;
  border-top: var(--rule);
  background: var(--concrete);
  color: var(--muted);
  font: 12px/1.8 var(--mono);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.foot p {
  margin: 0;
}
