:root {
  --bg: #f8fafc;
  --ink: #0b0b0f;
  --muted: #475569;
  --border: rgba(148, 163, 184, 0.24);
  --accent: #10b981;
  --card: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 70% 15%, rgba(16, 185, 129, 0.32), rgba(16, 185, 129, 0) 68%),
    radial-gradient(95% 65% at 20% 80%, rgba(253, 186, 116, 0.22), rgba(253, 186, 116, 0) 70%),
    radial-gradient(70% 55% at 18% 25%, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  filter: saturate(1.08) brightness(1.02);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 60px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-link img {
  display: block;
  width: 140px;
  height: auto;
}

.legal-nav {
  display: flex;
  gap: 18px;
}

.legal-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.legal-main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: clamp(32px, 8vw, 80px) clamp(20px, 6vw, 60px);
}

.legal-content {
  max-width: 880px;
  width: 100%;
  background: var(--card);
  backdrop-filter: blur(14px) saturate(1.05);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12), 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.legal-content h1 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
}

.legal-content h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.meta-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-footer {
  flex-shrink: 0;
  padding: 28px clamp(20px, 4vw, 60px);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.82);
}

.legal-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

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

@media (max-width: 720px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .legal-nav {
    flex-wrap: wrap;
  }

  .legal-content {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
