:root {
  --paper: #f8f8f1;
  --paper-deep: #f0f3ec;
  --ink: #09111f;
  --muted: rgba(9, 17, 31, 0.7);
  --line: rgba(9, 17, 31, 0.16);
  --blue: #006dff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(145deg, var(--paper), var(--paper-deep));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: -16%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    repeating-radial-gradient(circle at 12% 18%, rgba(9, 17, 31, 0.48) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(100deg, transparent 0 10px, rgba(9, 17, 31, 0.08) 10px 11px);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) 0 68px;
}

.legal-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.legal-brand {
  text-decoration: none;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
}

.legal-home {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.legal-card {
  border: 2px solid rgba(9, 17, 31, 0.18);
  border-radius: clamp(28px, 4vw, 46px);
  padding: clamp(26px, 5vw, 54px);
  background: rgba(248, 248, 241, 0.5);
  backdrop-filter: blur(14px);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

h2 {
  margin: 34px 0 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.58;
}

p {
  margin: 12px 0 0;
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--ink);
}

@media (max-width: 680px) {
  .legal-shell {
    width: min(100% - 24px, 520px);
    padding-top: 20px;
  }

  .legal-top {
    align-items: flex-start;
  }

  .legal-home {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .legal-card {
    padding: 24px;
    border-radius: 30px;
  }
}
