/* RättsKlart – innehållssidor (villkor, policy, pba, guide) */

:root {
  --navy:        #001f3f;
  --green:       #2d4a3e;
  --green-dark:  #1f3329;
  --green-tint:  #e6ede8;
  --warm-white:  #fafaf8;
  --gray-bg:     #f4f4f1;
  --gray-border: #d6d6d0;
  --gray-text:   #5a5a55;
  --ink:         #1a1a1a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ── */
.nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; padding: 16px 0;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.logo-mark {
  width: 44px; height: 44px; background: var(--navy);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-family: var(--serif);
  font-weight: 700; font-size: 17px; color: white; flex-shrink: 0;
}
.logo-text {
  font-family: var(--serif); font-size: 22px;
  font-weight: 700; color: var(--navy);
  line-height: 1.1; letter-spacing: -0.01em;
}
.logo-text .accent { color: var(--green); }
.logo-tag {
  display: block; font-family: var(--sans);
  font-size: 10px; color: var(--green);
  margin-top: 2px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.nav-back {
  color: var(--gray-text); font-size: 14px;
  text-decoration: none; transition: color 0.15s;
}
.nav-back:hover { color: var(--green); }

/* ── INNEHÅLL ── */
main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  width: 100%;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.1;
  margin-bottom: 8px;
}
.datum {
  font-size: 13px; color: var(--gray-text);
  margin-bottom: 40px;
}
h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--navy); margin: 40px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--gray-border);
  letter-spacing: -0.005em;
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
  color: var(--navy); margin: 24px 0 8px;
}
p { font-size: 15px; line-height: 1.75; color: #374151; margin-bottom: 14px; }
ul, ol { margin: 10px 0 16px 20px; }
li { font-size: 15px; line-height: 1.75; color: #374151; margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--navy); font-weight: 500; }
a:hover { color: var(--green); }
code { background: var(--gray-bg); padding: 2px 6px; border-radius: 3px; font-size: 0.875em; }

.markerad {
  background: #fffbeb; border-left: 3px solid #f59e0b;
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 18px 0; font-size: 14px; line-height: 1.65; color: #374151;
}

/* Tabell (integritetspolicyn) */
.tabell {
  width: 100%; border-collapse: collapse; margin: 16px 0 20px;
  font-size: 14px;
}
.tabell th {
  background: var(--navy); color: white;
  padding: 10px 14px; text-align: left;
  font-size: 0.82rem; font-weight: 600;
}
.tabell td {
  padding: 10px 14px; border-bottom: 1px solid var(--gray-border);
  vertical-align: top; line-height: 1.5;
}
.tabell tr:last-child td { border-bottom: none; }
.tabell tr:nth-child(even) td { background: var(--gray-bg); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: #c5cfd0;
  padding: 56px 0 32px; font-size: 14px; margin-top: auto;
}
footer .footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer h4 { font-family: var(--serif); color: white; font-size: 18px; margin-bottom: 12px; }
footer p { line-height: 1.6; margin-bottom: 8px; color: #c5cfd0; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #c5cfd0; text-decoration: none; }
footer a:hover { color: white; }
footer .footer-bottom {
  padding-top: 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap;
  gap: 16px; font-size: 13px;
}
.disclaimer-box {
  background: rgba(0,0,0,0.2); padding: 14px 16px;
  border-left: 2px solid var(--green); margin-top: 16px;
  font-size: 13px; color: #b0c2b6; line-height: 1.55;
}

/* ── GUIDE-SPECIFIKA KLASSER ── */
.ingress {
  font-size: 17px; line-height: 1.7; color: var(--gray-text);
  margin-bottom: 28px;
}
.nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: white;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  margin-right: 8px; flex-shrink: 0; vertical-align: middle;
}
.varning {
  background: #fffbeb; border-left: 3px solid #f59e0b;
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 20px 0; font-size: 14px; line-height: 1.65; color: #374151;
}
.tips {
  background: #f0fdf4; border-left: 3px solid #16a34a;
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 20px 0; font-size: 14px; line-height: 1.65; color: #374151;
}
.badge {
  display: inline-block; background: var(--navy); color: white;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 3px; letter-spacing: 0.03em; white-space: nowrap;
}

/* ── MOBIL ── */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  main { padding: 40px 20px 64px; }
  footer .footer-top { grid-template-columns: 1fr; gap: 24px; }
}
