:root {
  --ink: #1a1d21;
  --ink-soft: #22262b;
  --paper: #e8e6e1;
  --muted: #aaa8a7;
  --line: rgba(255, 255, 255, .10);
  --blue: #3E49E5;
  --cyan: #00c8f0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Fira Sans", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { color: white; background: var(--blue); }

.shell { width: min(calc(100% - 48px), 820px); margin-inline: auto; }

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 29, 33, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.legal-topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  width: min(calc(100% - 48px), 1240px);
}
.legal-logo img { display: block; height: 26px; width: auto; }
.legal-actions { display: flex; align-items: center; gap: 22px; font-size: .82rem; }
.legal-actions a { color: #c9c7c2; text-decoration: none; transition: color .2s ease; }
.legal-actions a:hover { color: white; }
.legal-language {
  padding-bottom: 4px;
  font-weight: 500;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--blue);
}

.legal-header { padding: clamp(72px, 10vw, 120px) 0 48px; border-bottom: 1px solid var(--line); }
.gravata {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: calc(.72rem - 1px);
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.gravata::before { content: "_ "; color: var(--cyan); }
.legal-header h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}
.legal-intro { max-width: 680px; margin: 0 0 28px; color: #c9c7c2; font-size: 1.08rem; }
.legal-updated { margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }

.legal-sections { padding: 24px 0 96px; counter-reset: legal; }
.legal-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: legal;
}
.legal-section::before {
  content: counter(legal, decimal-leading-zero);
  padding-top: 6px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
}
.legal-section h2 { margin: 0 0 12px; font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.legal-section > div { grid-column: 2; min-width: 0; }
.legal-section p, .legal-section li { color: #c9c7c2; font-size: .98rem; }
.legal-section p { margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 14px; padding-left: 20px; }
.legal-section li { margin-bottom: 6px; }
.legal-section li::marker { color: var(--cyan); }
.legal-section strong { color: var(--paper); font-weight: 500; }
.legal-section a { color: white; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.legal-section a:hover { text-decoration-color: var(--cyan); }

.legal-footer { padding: 32px 0 40px; color: rgba(255, 255, 255, .72); background: var(--blue); font-size: .72rem; letter-spacing: .06em; }
.legal-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; width: min(calc(100% - 48px), 1240px); }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-footer a { color: inherit; text-decoration: none; }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { color: white; }

@media (max-width: 560px) {
  .legal-topbar .shell { height: 64px; }
  .legal-actions { gap: 16px; }
  .legal-back-label { display: none; }
  .legal-section { grid-template-columns: 1fr; padding: 28px 0; }
  .legal-section > div { grid-column: 1; }
  .legal-footer .shell { flex-direction: column; }
}
