/* Kalyo Legal Pages — BRAND: #6B4EFF, Inter */
:root {
  --brand: #6B4EFF;
  --brand-light: #8B72FF;
  --brand-soft: #F0EDFF;
  --bg: #FAFAFA;
  --ink: #111827;
  --ink-mid: #374151;
  --ink-light: #6B7280;
  --border: rgba(107, 78, 255, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.legal-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.legal-logo svg {
  height: 28px;
  width: auto;
}

.legal-header-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.legal-header-link:hover {
  background: var(--brand);
  color: #fff;
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-updated {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-light);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.legal-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
}

.legal-intro {
  font-size: 17px;
  color: var(--ink-mid);
  margin-bottom: 40px;
  line-height: 1.75;
}

.legal-toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  margin-bottom: 14px;
}

.legal-toc ol {
  padding-left: 20px;
  margin: 0;
}

.legal-toc li {
  margin-bottom: 8px;
  font-size: 15px;
}

.legal-toc a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-main section {
  margin-bottom: 40px;
}

.legal-main h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-top: 8px;
  scroll-margin-top: 80px;
}

.legal-main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 10px;
}

.legal-main p {
  margin-bottom: 14px;
  color: var(--ink-mid);
}

.legal-main ul,
.legal-main ol {
  margin: 0 0 14px 20px;
  color: var(--ink-mid);
}

.legal-main li {
  margin-bottom: 8px;
}

.legal-main a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-main a:hover {
  color: var(--brand-light);
}

.legal-main strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-disclaimer {
  margin-top: 48px;
  padding: 16px 20px;
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--ink-mid);
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 32px 24px;
  text-align: center;
}

.legal-footer p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.legal-footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

.legal-footer nav a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-main { padding: 32px 20px 64px; }
  .legal-toc { padding: 20px; }
}
