:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f5f8;
  --ink: #252b33;
  --muted: #68727f;
  --line: #dbe3eb;
  --accent: #3c86f6;
  --accent-soft: #e8f2ff;
  --shadow: 0 18px 48px rgba(54, 70, 89, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, var(--bg), var(--surface-soft));
}

a {
  color: inherit;
}

.legal-shell {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 820;
  text-decoration: none;
}

.legal-cat {
  position: relative;
  width: 18px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 48%;
  background: var(--accent-soft);
}

.legal-cat::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 1px;
  width: 12px;
  height: 7px;
  background: var(--accent);
  clip-path: polygon(0 100%, 14% 0, 38% 65%, 62% 65%, 86% 0, 100% 100%);
}

.back-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.legal-document {
  padding: clamp(20px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
}

.updated {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-document section + section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-email {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.legal-email:hover {
  text-decoration: underline;
}

.legal-document ul {
  padding-left: 20px;
}

.legal-footer {
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 520px) {
  .legal-shell {
    width: min(calc(100% - 12px), 820px);
    padding-top: 8px;
  }

  .legal-nav {
    margin-bottom: 8px;
  }

  .legal-document {
    padding: 20px 16px;
  }
}
