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

:root {
  --deep:    #0d1117;
  --navy:    #141c2b;
  --slate:   #1e2d45;
  --panel:   #19243a;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --gold:    #4a7ab5;
  --gold-lt: #6b9fd4;
  --gold-dim:#2d5a8e;
  --text:    #e8eaf0;
  --muted:   #8892a4;
  --faint:   rgba(255,255,255,0.04);
  --blue-hl: #3b6fd4;
}

html { scroll-behavior: smooth; scroll-margin-top: 6rem; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--deep);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(13,17,23,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; display: inline-block;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  background: var(--gold); color: var(--deep);
  padding: 0.55rem 1.3rem; border-radius: 6px;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-decoration: none;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--gold-lt); color: var(--deep); }

/* ─── PAGE CONTENT ─── */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 9rem 2rem 6rem;
  position: relative; z-index: 1;
}

.tag {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 1rem;
  display: block;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 0.75rem;
}
h1 em { color: var(--gold); font-style: italic; }

.lead {
  color: var(--muted); font-size: 0.875rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem; color: var(--text);
  margin-bottom: 0.75rem;
}

/* ─── CARDS ─── */
.card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); }
.card h2 { margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.85rem; }

/* ─── CONTENT (juridiska sidor) ─── */
.content {
  display: flex; flex-direction: column; gap: 2rem;
  font-size: 0.875rem; line-height: 1.75;
  color: #aab3c2;
}
.content section { scroll-margin-top: 6rem; }
.content ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.3rem; }
.content p + p { margin-top: 0.5rem; }
code {
  color: var(--gold); font-family: monospace; font-size: 0.8rem;
  background: rgba(74,122,181,0.08);
  padding: 0.1rem 0.4rem; border-radius: 3px;
}

/* ─── BUTTONS ─── */
.btn-gold {
  background: var(--gold); color: var(--deep);
  padding: 0.75rem 1.75rem; border-radius: 7px;
  text-decoration: none; font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.03em; display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); }

.link-gold {
  color: var(--gold); text-decoration: none;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.2s;
}
.link-gold:hover { opacity: 0.8; }

a.em { color: var(--gold); text-decoration: none; }
a.em:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem; color: var(--text);
}
.footer-logo span { color: var(--gold); }
footer p { font-size: 0.78rem; color: #3a4555; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.78rem; color: #3a4555;
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-wrap { padding: 8rem 1.5rem 5rem; }
  footer { padding: 2rem 1.5rem; }
}
