:root {
  --accent: #FF6A3D;
  --bg: #050505;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); }

/* Animated grid background — shared with home */
.bg-elements {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  bottom: -50%;
  left: -50%;
  animation: move-grid 20s linear infinite;
}

@keyframes move-grid {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px 30px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 24px;
  flex-shrink: 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 44px; width: auto; display: block; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-social:hover { color: var(--accent); }
.nav-social svg { width: 20px; height: 20px; display: block; }

/* Legal content */
.legal {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
  margin-bottom: 30px;
}

.legal-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.legal-title span { color: var(--accent); }

.legal-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #fff;
}

.legal p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
}

.legal strong { color: #fff; }

.legal ul {
  margin: 6px 0 14px 22px;
  color: rgba(255,255,255,0.82);
}

.legal li {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.55;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,106,61,0.5);
  transition: border-color 0.2s;
}
.legal a:hover { border-bottom-color: var(--accent); }

.callout {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 106, 61, 0.07);
  border-radius: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.callout strong { color: var(--accent); }

.legal-back {
  margin-top: 30px;
  font-size: 0.9rem;
}
.legal-back a {
  border-bottom: none;
  font-weight: 600;
}

/* Footer — shared with home */
footer {
  margin-top: auto;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

.footer-brand-left { text-align: left; }

.footer-heading { margin-top: 4px; line-height: 0; }
.footer-heading img { height: 32px; width: auto; display: block; }

.footer-center-info { text-align: center; flex-grow: 1; }

.footer-line {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  margin: 3px 0;
}
.footer-line a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 700; }
.footer-line a:hover { color: var(--accent); }

.company-highlight {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6rem;
}

.footer-legal {
  display: flex;
  gap: 16px;
  font-size: 0.72rem;
  align-items: center;
}
.footer-legal a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .page { padding: 16px; }
  .legal { padding: 24px 22px; }
  footer { flex-direction: column; text-align: center; }
  .footer-brand-left { text-align: center; }
}
