/* AI Gamify Studios — site styles.
   Colors come from the official emblem: black field, white type, lime #5FFC06. */

:root {
  --black: #000;
  --surface: #0b0e0b;
  --line: #222822;
  --lime: #5ffc06;
  --white: #fff;
  --text: #c8cec6;
  --muted: #8c9589;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-pill: 999px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a { color: var(--lime); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--lime); color: var(--black); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.button {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(95, 252, 6, 0.25); }

/* ---------- Header and footer ---------- */

.site-header {
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.site-header__logo { display: inline-block; border-radius: 6px; }
.site-header__logo img { height: 34px; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 40px; } }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__links a { color: var(--text); text-decoration: none; }
.site-footer__links a:hover { color: var(--white); text-decoration: underline; }
.site-footer__legal { margin: 0; }

/* ---------- Holding page ---------- */

.holding {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0;
  padding: clamp(40px, 8vh, 96px) var(--gutter);
  text-align: center;
  background: radial-gradient(closest-side, rgba(95, 252, 6, 0.07), transparent 70%) center 38% / min(120vmin, 900px) min(120vmin, 900px) no-repeat;
}

.holding__emblem { margin: 0 0 clamp(24px, 4vh, 40px); }
.holding__emblem .emblem { width: clamp(220px, 52vmin, 420px); height: auto; }

.holding__lede {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.holding__note {
  max-width: 34ch;
  margin: 10px 0 0;
  color: var(--muted);
}

/* The emblem's one entrance: the ring draws, then the lettering appears. */
@media (prefers-reduced-motion: no-preference) {
  .emblem__ring {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ring-draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
  }
  .emblem__type { opacity: 0; animation: appear 0.8s ease-out 0.9s forwards; }
  .emblem__accent { opacity: 0; animation: appear 0.6s ease-out 1.35s forwards; }
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Privacy policy ---------- */

.policy {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "toc" "body";
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 960px) {
  .policy {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "intro intro" "toc body";
    column-gap: 64px;
  }
}

.policy__intro { grid-area: intro; }
.policy__toc { grid-area: toc; }
.policy__body { grid-area: body; max-width: 68ch; }

.policy__title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.policy__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.policy__facts dt { color: var(--muted); font-size: 0.8125rem; }
.policy__facts dd { margin: 2px 0 0; color: var(--white); overflow-wrap: break-word; }

.policy__summary {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 22px clamp(18px, 3vw, 28px);
  border-left: 3px solid var(--lime);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}
.policy__summary h2 { margin: 0 0 10px; color: var(--white); font-size: 1.0625rem; }
.policy__summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.policy__summary li { position: relative; padding-left: 28px; color: var(--white); }
.policy__summary li::before {
  content: "";
  position: absolute; left: 2px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg);
}

.policy__toc h2 { margin: 0 0 10px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.policy__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.policy__toc a {
  display: block;
  padding: 5px 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
}
.policy__toc a:hover { color: var(--white); }
@media (max-width: 959px) {
  .policy__toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
  .policy__toc ol { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 20px; }
}
@media (min-width: 960px) {
  .policy__toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
}

.policy__body section + section { margin-top: clamp(32px, 4vw, 44px); }
.policy__body h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}
.policy__body p, .policy__body li { font-size: 1.0625rem; line-height: 1.7; }
.policy__body p { margin: 0 0 12px; }
.policy__body ul { margin: 0 0 12px; padding-left: 1.2em; }
.policy__body li { margin-bottom: 8px; }
.policy__body li::marker { color: var(--lime); }
.policy__body strong { color: var(--white); font-weight: 650; }

/* ---------- 404 ---------- */

.not-found { padding: clamp(56px, 12vh, 140px) var(--gutter); max-width: 720px; }
.not-found h1 { margin: 0 0 12px; color: var(--white); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.not-found p { margin: 0 0 20px; }

/* ---------- Print: legal pages print as plain black on white ---------- */

@media print {
  :root { --text: #000; --white: #000; --muted: #444; --line: #bbb; --lime: #000; }
  body { background: #fff; }
  .site-header, .site-footer, .policy__toc, .skip-link { display: none; }
  .policy { display: block; padding: 0; }
  .policy__summary { background: none; border-left-color: #000; }
  a { color: #000; }
}
