:root {
  color-scheme: light;
  --ink: #1b2038;
  --muted: #747a93;
  --line: #ececf3;
  --accent: #8a5cc2;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: #c9cbe0; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
::selection { background: #efe6fa; }
.logo { display: block; }

/* ---------- home ---------- */
.home {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px 96px; text-align: center;
}
.home .mark { position: relative; width: min(300px, 64vw); animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.home .mark::after { /* soft ground shadow */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 14px;
  background: radial-gradient(closest-side, rgba(27,32,56,.10), transparent); filter: blur(4px);
  animation: shadow 6s ease-in-out infinite;
}
.home .logo { width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
.home h1 {
  margin: 28px 0 8px; font: 400 clamp(2rem, 6vw, 2.8rem)/1.1 var(--serif);
  letter-spacing: -0.02em; animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) both;
}
.home .tag {
  margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  animation: rise 1s .3s cubic-bezier(.2,.7,.2,1) both;
}
.home footer {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 16px;
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted); animation: rise 1s .5s both;
}
.home footer a { text-decoration: none; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shadow { 0%,100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.88); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- legal pages ---------- */
.bar {
  max-width: 760px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; gap: 12px;
}
.bar a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.15rem var(--serif); letter-spacing: -.01em; }
.bar .logo { width: 36px; height: 36px; }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: .88rem; color: var(--muted); }
.bar nav a { text-decoration: none; padding-bottom: 2px; }
.bar nav a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--ink); }

.legal { max-width: 760px; margin: 0 auto; padding: 24px 24px 80px; }
.legal h1 { font: 400 clamp(2.2rem, 6vw, 3.2rem)/1.1 var(--serif); letter-spacing: -.025em; margin: 0 0 14px; }
.legal p.meta { margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; letter-spacing: .04em; }
.legal p.meta strong { color: var(--ink); font-weight: 500; }
.legal h2 { font: 400 1.45rem/1.3 var(--serif); letter-spacing: -.01em; margin: 2.6em 0 .6em; scroll-margin-top: 24px; }
.legal p, .legal li { color: #3a4059; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .5em 0; }
.legal li::marker { color: #b9b4d6; }
.legal .table { overflow-x: auto; margin: 1.5em -4px; border: 1px solid var(--line); border-radius: 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: .88rem; line-height: 1.55; }
.legal th { text-align: left; font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #fafafd; }
.legal th, .legal td { padding: 14px 16px; vertical-align: top; min-width: 150px; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }

.foot { max-width: 760px; margin: 0 auto; padding: 32px 24px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot .sp { margin-left: auto; }

@media (max-width: 520px) { body { font-size: 16px; } .bar nav { gap: 16px; } .foot .sp { margin-left: 0; } }
