/* Torvex Studio - stili pagine legali */

:root {
  --bg: #07060e;
  --bg-elevated: #0c0b14;
  --surface: #12121c;
  --surface-2: #1a1a26;
  --fg: #eef0f4;
  --muted: #8b91a3;
  --muted-2: #5c6275;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #2ee6ff;
  --accent-dim: rgba(46, 230, 255, 0.14);
  --brand-gradient: linear-gradient(90deg, #9b4dff 0%, #5b6fff 25%, #2ee6ff 50%, #5b6fff 75%, #9b4dff 100%);
  --shadow-panel: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica Neue, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 800px;
  --nav-h: 72px;
}
@keyframes gradient-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  height: 40px; width: auto; max-width: 140px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(46, 230, 255, 0.25));
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }

.hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(46, 230, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(155, 77, 255, 0.1), transparent 50%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: var(--brand-gradient); background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  max-width: 52ch;
}
.meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.content { padding: 40px 0 80px; }
.toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.toc a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
}
.toc a:hover { color: var(--fg); border-color: var(--border-strong); }

section {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}
section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
  letter-spacing: 0.01em;
}
section p, section li {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}
section p + p { margin-top: 10px; }
section ul {
  margin: 10px 0 0 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
section li::marker { color: var(--accent); }
.card {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card strong {
  display: block;
  color: var(--fg);
  font-size: 13px;
  margin-bottom: 4px;
}
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-elevated);
}
.footer-inner {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
  html { scroll-behavior: auto; }
}
