:root {
  --paper: var(--ks-color-website-paper);
  --paper-soft: var(--ks-color-website-paper-soft);
  --paper-deep: var(--ks-color-website-paper-deep);
  --ink: var(--ks-color-text-primary);
  --muted: var(--ks-color-text-secondary);
  --night: var(--ks-color-scene-night-surface);
  --line: var(--ks-color-website-line);
  --ochre-text: var(--ks-color-website-ochre-text);
  --blue: var(--ks-color-action-primary-surface);
  --cream: var(--ks-color-action-primary-content);
  --star: var(--ks-color-website-star);
  --focus: var(--ks-color-action-primary-surface);
  --sans: var(--ks-font-narrative);
  --display: var(--ks-font-narrative);
  --landing-content-max: clamp(
    var(--ks-layout-website-content-max),
    84vw,
    1680px
  );
  --landing-gutter: clamp(
    var(--ks-layout-website-gutter-compact),
    5vw,
    96px
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(28, 35, 43, 0.025) 0,
      rgba(28, 35, 43, 0.025) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 7px
    );
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--ks-typography-weight-heading);
  text-wrap: balance;
}

p,
li {
  color: var(--muted);
  text-wrap: pretty;
}

a {
  color: inherit;
}

:where(a):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(
    var(--landing-content-max),
    calc(100% - var(--landing-gutter))
  );
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-soft) 88%, transparent);
  box-shadow: 0 6px 20px rgba(28, 35, 43, 0.04);
  backdrop-filter: saturate(1.08) blur(12px);
  -webkit-backdrop-filter: saturate(1.08) blur(12px);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.footer-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.15rem;
  font-weight: var(--ks-typography-weight-strong);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--star) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 61%, var(--star) 0 2px, transparent 3px),
    var(--night);
  box-shadow: inset 0 0 0 2px rgba(255, 241, 195, 0.2);
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ochre-text);
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent);
  border-radius: var(--ks-radius-card);
  padding: 0 12px;
  background: transparent;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: var(--ks-typography-weight-action);
  transition:
    background-color var(--ks-motion-exit) ease,
    border-color var(--ks-motion-exit) ease;
}

.button:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

.legal-main {
  width: min(980px, calc(100% - var(--landing-gutter)));
  padding: 88px 0 96px;
}

.section-label {
  color: var(--ochre-text);
  font-size: 0.8rem;
  font-weight: var(--ks-typography-weight-label);
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-top: 12px;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-pill {
  border: 1px solid var(--line);
  border-radius: var(--ks-radius-pill);
  padding: 8px 12px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: var(--ks-typography-weight-label);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: var(--ks-radius-card);
  padding: 20px;
  background: var(--paper-soft);
  box-shadow: var(--ks-shadow-website-card);
}

.summary-item p {
  margin: 8px 0 0;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 48px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  margin-top: 48px;
}

p {
  margin: 0;
}

p + p {
  margin-top: 14px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.note {
  margin-top: 18px;
  border-left: 3px solid var(--blue);
  padding-left: 14px;
  color: var(--ink);
  font-weight: var(--ks-typography-weight-strong);
}

.inline-link {
  color: var(--ochre-text);
  font-weight: var(--ks-typography-weight-action);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-line {
  margin-top: 16px;
  font-weight: var(--ks-typography-weight-strong);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--paper);
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  gap: 14px;
}

@media (max-width: 760px) {
  .summary-grid,
  .legal-section {
    grid-template-columns: 1fr;
  }

  .legal-section {
    gap: 14px;
  }

  .legal-main {
    padding: 64px 0 72px;
  }
}

@media (max-width: 560px) {
  .nav {
    height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 1rem;
  }

  .nav-links {
    gap: 8px;
    font-size: 0.8rem;
  }

  .button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
