/* Matly — juridiska sidor.
   Inga externa resurser, inga script, inga cookies: sidorna får inte själva
   samla in något, eftersom de är där för att förklara vad vi samlar in. */

:root {
  --green: #57a653;
  --green-dark: #356735;
  --bg: #fbfbf8;
  --surface: #ffffff;
  --ink: #1f2a1e;
  --subtle: #6b7568;
  --line: #e7ece4;
  --tint: #f2f9f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 40px;
}

header.site .inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

/* The mark is assets/images/mark-white.png, generated by
   scripts/make-icons.swift from the same vector definition as the app icon —
   so the logo here is the same shape as the one on the home screen. */
.mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.lang {
  font-size: 14px;
  color: var(--subtle);
}

.lang a {
  color: var(--green-dark);
  font-weight: 600;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 44px 0 10px;
  padding-top: 4px;
}

h3 {
  font-size: 17px;
  margin: 26px 0 6px;
}

p,
li {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

a {
  color: var(--green-dark);
}

.updated {
  color: var(--subtle);
  font-size: 15px;
  margin-bottom: 32px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 6px;
  margin: 20px 0;
}

.card.tint {
  background: var(--tint);
  border-color: #cfe6cc;
}

.card h3:first-child {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--tint);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
  color: var(--subtle);
  font-size: 15px;
}

footer.site a {
  margin-right: 16px;
}

.toc {
  font-size: 15px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .wrap {
    padding: 0 20px 72px;
  }
}
