/* Shared styles for Kamui legal and support pages (privacy, terms, support). */
:root {
  --bg: #09090b;
  --bg-2: #0f0f12;
  --line: #23232a;
  --line-2: #30303a;
  --text: #f4f4f5;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #c8f25a;
  --accent-ink: #0b0f02;
  --font: "Inter", "Noto Sans Georgian", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Noto Sans Georgian", var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
nav.links a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.links a:hover { color: var(--text); }
nav.links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; font-size: 12.5px; font-weight: 600; flex: none; }
.lang button { all: unset; cursor: pointer; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* document */
.doc { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(1.6rem, 6.8vw, 2.75rem); overflow-wrap: break-word; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.doc .meta { color: var(--dim); font-size: 14px; margin: 0 0 32px; }
.doc .intro { font-size: 1.06rem; color: var(--body); }
.doc h2 { font-size: 1.22rem; line-height: 1.35; margin: 44px 0 12px; font-weight: 700; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.02rem; margin: 26px 0 8px; font-weight: 600; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 1.2em; margin: 10px 0; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--dim); }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc strong { color: var(--text); font-weight: 600; }

.box { border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 22px; background: var(--bg-2); margin: 28px 0; }
.box h2, .box h3 { margin-top: 0; }
.facts { margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.facts div { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 16px; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; color: var(--text); }
.facts a { color: var(--text); }

.summary { list-style: none; padding: 0 !important; }
.summary li { padding-left: 28px; position: relative; }
.summary li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* support */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line-2); border-radius: 20px; padding: 26px;
  background: radial-gradient(420px 200px at 100% 0%, rgba(200,242,90,.12), transparent 70%), var(--bg-2);
  margin: 28px 0 8px;
}
.contact-card .mail { font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact-card p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important;
  background: var(--accent); color: var(--accent-ink) !important; border: 1px solid var(--accent);
}
.btn:hover { background: #d6f87e; }
.btn svg { width: 16px; height: 16px; }

details { border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; background: var(--bg-2); }
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > div { padding: 0 20px 16px; }
details > div > :first-child { margin-top: 0; }
details > div > :last-child { margin-bottom: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 13.5px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .brand { font-size: 15px; color: var(--text); }
.foot .brand svg { width: 24px; height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar { flex-wrap: wrap; gap: 6px 12px; padding: 10px 16px 0; }
  nav.links { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; padding-bottom: 6px; }
  .lang { margin-left: auto; }
  .doc { padding-top: 40px; padding-bottom: 72px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
