/* Legal pages in the aion44 frame: Mitternacht ground, Fläche card, Chakra
   Petch for headings. Long text stays on the system font for readability. */
:root {
  --night: #0B1020;
  --surface: #111832;
  --light: #E9ECF5;
  --dim: #1F2740;
  --yellow: #FFF500;
  --text-2: #BAC1D6;
  --text-3: #8C95B0;
  --line-strong: #2E3858;
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--night);
  color: var(--text-2);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dim) 1.6px, transparent 2.1px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 85% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 80% at 85% 0%, #000 10%, transparent 70%);
}
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--dim);
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: 18px;
  white-space: nowrap;
}
.legal-brand img { display: block; }
.legal-brand strong { font-weight: 700; letter-spacing: 0.01em; }
.legal-header a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.legal-header a:hover { border-color: rgba(233, 236, 245, 0.55); background: rgba(233, 236, 245, 0.05); }
.legal-main {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto 72px;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--dim);
  border-radius: 16px;
  background: var(--surface);
}
h1, h2 { color: var(--light); font-family: var(--font-display); }
h1 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.15; }
h2 { margin: 2.2rem 0 0.6rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
strong { color: var(--light); }
a {
  color: var(--light);
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}
a:hover { color: var(--yellow); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.owner-action {
  padding: 14px 16px;
  border: 1px solid rgba(255, 245, 0, 0.3);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  background: rgba(255, 245, 0, 0.06);
  color: var(--light);
}
.legal-meta { color: var(--text-3); font-size: 14px; }
code { padding: 2px 5px; border-radius: 4px; background: var(--dim); color: var(--light); }

@media (max-width: 480px) {
  .legal-brand { font-size: 16px; gap: 10px; }
  .legal-brand img { width: 24px; height: 24px; }
  .legal-header a { padding: 7px 11px; font-size: 13px; }
  .legal-main { margin: 20px auto 40px; }
}
