/* --- wg4sl / awa - mlö 170926 --- */

:root {
  --blue: #1f79b8;
  --deep: #105b93;
  --navy: #123f63;
  --green: #39ab36;
  --ink: #183044;
  --muted: #5e7181;
  --line: #d9eaf4;
  --shadow: 0 24px 70px rgba(15, 79, 125, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: linear-gradient(180deg, #e8f7ff 0%, #f8fdff 52%, #fff 100%);
  min-height: 100vh;
}

a {
  color: var(--deep);
}

a:focus-visible {
  outline: 3px solid #f3b61f;
  outline-offset: 4px;
}

/* --- Layout & Base Components --- */

.page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8f7ff 0%, #f8fdff 52%, #fff 100%);
  padding: 42px 0 70px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: rise .8s ease-out both;
}

.accent {
  height: 7px;
  background: linear-gradient(90deg, var(--green), #76c864 30%, #6cc3e7 62%, var(--deep));
}

.content {
  padding: clamp(28px, 5vw, 58px);
}

.card-logo {
  display: block;
  width: min(430px, 72%);
  height: auto;
  margin: 0 auto 34px;
}

/* --- Typography --- */

h1 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 22px;
  color: var(--navy);
  letter-spacing: -.035em;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 14px;
}

p {
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  max-width: 900px;
  color: #385568;
}

/* --- Grid & Panels --- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7fcff);
}

.contact {
  border-left: 5px solid var(--green);
}

.contact strong {
  font-size: 1.05rem;
}

/* --- Interactive Elements --- */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--deep));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 9px 24px rgba(31, 121, 184, .23);
  transition: transform .2s, box-shadow .2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(31, 121, 184, .3);
}

.text-link {
  font-weight: 700;
  text-underline-offset: 4px;
}

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

.card-footer a {
  text-decoration: none;
  font-weight: 700;
}

/* --- Legal Pages --- */

.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8f7ff 0%, #f8fdff 52%, #fff 100%);
  padding: 42px 0 70px;
}

.legal {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
  animation: rise .7s ease-out both;
}

.legal .card-logo {
  width: min(360px, 68%);
  margin-bottom: 34px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 0 0 26px;
}

.legal h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.65rem);
  margin-top: 32px;
}

.back {
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* --- Animations --- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Media Queries --- */

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .page,
  .legal-page {
    padding: 18px 0 32px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card,
  .legal {
    border-radius: 20px;
  }

  .content,
  .legal {
    padding: 26px 21px;
  }

  .panel {
    padding: 22px;
  }

  .card-logo {
    width: min(410px, 88%);
    margin-bottom: 26px;
  }

  .legal .card-logo {
    width: min(340px, 84%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .card,
  .legal {
    animation: none;
  }

  .button {
    transition: none;
  }
}