/* molakoin — legal pages (privacy, terms). Same tokens and voice as index.html: black, one gold accent,
   tight headlines, mono labels. */

:root {
  --bg: #000000;
  --text: #f5f5f7;
  --body: #c7c7cc;
  --muted: #a1a1a6;
  --faint: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(20, 20, 22, 0.62);
  --logo: #cda255;
  --gold-text: #d6a752;
  --focus: #cda255;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

/* warm light at the top, like the hero */
body::before {
  content: "";
  position: fixed;
  left: 50%; top: -280px;
  width: min(900px, 140vw);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(205, 162, 85, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* ---- nav: the same glass pill as the landing page ---- */
.lg-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(760px, calc(100% - 24px));
  height: 54px;
  margin: 12px auto 0;
  padding: 0 7px 0 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-hi), 0 8px 32px -8px rgba(0, 0, 0, 0.5);
}

.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}

/* brand mark (molakoin-logo/): yellow coin, dark "m" monogram, Sora wordmark */
.lg-logo {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: url("coin.svg") center / 100% no-repeat;
  box-shadow: 0 2px 10px -2px rgba(255, 210, 63, 0.5);
}
.lg-wm { font-family: Sora, var(--font); font-weight: 700; font-size: 17px; letter-spacing: -0.035em; }
.lg-wm b { font-weight: inherit; color: #ffd23f; }

.lg-back {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}
.lg-back:hover { transform: translateX(-2px); }

/* ---- the document ---- */
.lg-wrap {
  width: min(680px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 110px) 0 clamp(64px, 9vw, 100px);
  counter-reset: sec;
}

.lg-idx {
  margin: 0 0 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.updated {
  margin: 18px 0 clamp(36px, 6vw, 56px);
  color: var(--faint);
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

/* section titles carry a gold running number, like lines in a ledger */
h2 {
  counter-increment: sec;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(21px, 2.6vw, 25px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h2::before {
  content: counter(sec, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--gold-text);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  transform: translateY(-2px);
}

.lg-wrap p:not(.lg-idx):not(.updated) {
  margin: 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: -0.012em;
}

.lg-wrap p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--logo);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.lg-wrap p a:hover { color: var(--gold-text); }

/* ---- footer ---- */
.lg-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.lg-foot a { color: var(--muted); text-decoration: none; }
.lg-foot a:hover { color: var(--text); text-decoration: underline; }
.lg-foot a[aria-current="page"] { color: var(--gold-text); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lg-wrap p:not(.lg-idx):not(.updated) { font-size: 16px; }
  h2 { margin-top: 36px; }
}
