/* moneytail.app: the landing page and the legal pages share this file. */

:root {
  --green: #167c4a;
  --green-deep: #0f5c37;
  --green-tint: #e4f2ea;
  --ink: #0b0b0c;
  --ink-soft: #3f3f46;
  --muted: #6d6d76;
  --line: #ececf0;
  --element: #f5f5f7;
  --bg: #ffffff;
  --out: #c0362c;
  --amber: #98620c;
  --amber-tint: #fcf2e0;
  --wallet: #48566b;
  --wallet-tint: #edf1f6;
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #22a366;
    --green-deep: #1c8554;
    --green-tint: #132a1f;
    --ink: #fafafa;
    --ink-soft: #d4d4d8;
    --muted: #a1a1aa;
    --line: #26262b;
    --element: #17171a;
    --bg: #0b0b0c;
    --out: #f87171;
    --amber: #fbbf24;
    --amber-tint: #2c2411;
    --wallet: #a7b4c6;
    --wallet-tint: #23272e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--green); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.ghost { background: var(--element); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }
.soon { font-size: 14px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .social { display: flex; align-items: center; gap: 14px; }
.foot .social a { display: grid; }
.foot .social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 20px 0; }
.legal h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.legal h2 { font-size: 21px; letter-spacing: -0.015em; margin: 44px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .lead { font-size: 19px; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }
.legal .lang { display: inline-flex; gap: 6px; margin: 0 0 28px; font-size: 14px; }
.legal .lang a { padding: 4px 10px; border-radius: 999px; background: var(--element); color: var(--ink); text-decoration: none; }
.legal .lang a[aria-current="page"] { background: var(--green-tint); color: var(--green); font-weight: 600; }
