/* Legal pages — mismo sistema visual que la landing */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --accent: #ff6b35;
  --text: #f5f5f4;
  --muted: #8a8a8a;
  --muted-strong: #b5b5b5;
  --line: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.eyebrow {
  font-family: 'Inconsolata', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-main {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 4rem;
}

.legal-main h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.legal-lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--muted-strong);
  line-height: 1.55;
}

.legal-box {
  margin-bottom: 2rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted-strong);
}

.legal-box p {
  margin: 0.35rem 0;
}

.legal-box strong {
  color: var(--text);
  font-weight: 600;
}

.legal-main h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.65rem;
  color: var(--text);
}

.legal-main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted-strong);
}

.legal-main p,
.legal-main li {
  font-size: 0.9375rem;
  color: var(--muted-strong);
  line-height: 1.65;
}

.legal-main p {
  margin: 0 0 1rem;
}

.legal-main ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-main li {
  margin-bottom: 0.35rem;
}

.legal-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-main a:hover {
  color: #ffaa78;
}

.legal-updated {
  margin-top: 2.5rem;
  font-family: 'Inconsolata', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer .section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer .section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer a[aria-current="page"] {
  color: var(--accent);
}
