/* NordLexa — Scandinavian minimal IP law */

:root {
  --nl-blue: #0369a1;
  --nl-blue-dark: #075985;
  --nl-blue-light: #e0f2fe;
  --nl-yellow: #eab308;
  --nl-yellow-light: #fef9c3;
  --nl-white: #ffffff;
  --nl-gray-50: #f8fafc;
  --nl-gray-100: #f1f5f9;
  --nl-gray-200: #e2e8f0;
  --nl-gray-400: #94a3b8;
  --nl-gray-600: #475569;
  --nl-gray-800: #1e293b;
  --nl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nl-topbar-h: 56px;
  --nl-dotnav-w: 64px;
  --nl-transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--nl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nl-gray-800);
  background: var(--nl-white);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nl-blue);
  text-decoration: none;
  transition: color var(--nl-transition);
}

a:hover {
  color: var(--nl-blue-dark);
}

/* Top bar */
.nl-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nl-topbar-h);
  background: var(--nl-white);
  border-bottom: 1px solid var(--nl-gray-200);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px 0 calc(var(--nl-dotnav-w) + 24px);
}

.nl-topbar__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nl-blue);
  letter-spacing: -0.02em;
}

.nl-topbar__brand span {
  color: var(--nl-yellow);
}

/* Vertical dot nav */
.nl-dotnav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nl-dotnav-w);
  height: 100vh;
  background: var(--nl-gray-50);
  border-right: 1px solid var(--nl-gray-200);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--nl-topbar-h) + 32px);
  gap: 20px;
}

.nl-dotnav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.nl-dotnav__link {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nl-gray-200);
  border: 2px solid var(--nl-gray-400);
  transition: all var(--nl-transition);
  display: block;
}

.nl-dotnav__link:hover,
.nl-dotnav__link.nl-dotnav__link--active {
  background: var(--nl-blue);
  border-color: var(--nl-blue);
  transform: scale(1.3);
}

.nl-dotnav__tooltip {
  position: absolute;
  left: calc(100% + 12px);
  background: var(--nl-gray-800);
  color: var(--nl-white);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nl-transition);
}

.nl-dotnav__item:hover .nl-dotnav__tooltip {
  opacity: 1;
}

/* Main layout */
.nl-main {
  margin-left: var(--nl-dotnav-w);
  padding-top: var(--nl-topbar-h);
  min-height: 100vh;
}

.nl-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.nl-section {
  padding: 64px 0;
}

.nl-section--alt {
  background: var(--nl-gray-50);
}

/* Typography */
.nl-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--nl-gray-800);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.nl-heading--sm {
  font-size: 1.5rem;
}

.nl-subheading {
  font-size: 1.125rem;
  color: var(--nl-gray-600);
  max-width: 600px;
  margin-bottom: 32px;
}

.nl-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nl-blue);
  margin-bottom: 12px;
}

.nl-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--nl-yellow);
  vertical-align: middle;
  margin-right: 8px;
}

/* Hero */
.nl-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nl-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.nl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.88) 0%, rgba(7, 89, 133, 0.75) 100%);
}

.nl-hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.nl-hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--nl-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 640px;
}

.nl-hero__text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-bottom: 32px;
}

.nl-hero__accent {
  color: var(--nl-yellow);
}

/* Buttons */
.nl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--nl-transition);
  font-family: inherit;
}

.nl-btn--primary {
  background: var(--nl-yellow);
  color: var(--nl-gray-800);
}

.nl-btn--primary:hover {
  background: #ca8a04;
  color: var(--nl-white);
}

.nl-btn--outline {
  background: transparent;
  color: var(--nl-white);
  border: 2px solid var(--nl-white);
}

.nl-btn--outline:hover {
  background: var(--nl-white);
  color: var(--nl-blue);
}

.nl-btn--blue {
  background: var(--nl-blue);
  color: var(--nl-white);
}

.nl-btn--blue:hover {
  background: var(--nl-blue-dark);
}

.nl-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cards grid */
.nl-grid {
  display: grid;
  gap: 24px;
}

.nl-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.nl-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.nl-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.nl-card {
  background: var(--nl-white);
  border: 1px solid var(--nl-gray-200);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow var(--nl-transition);
}

.nl-card:hover {
  box-shadow: 0 4px 20px rgba(3, 105, 161, 0.1);
}

.nl-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.nl-card__body {
  padding: 24px;
}

.nl-card__icon {
  width: 40px;
  height: 40px;
  background: var(--nl-blue-light);
  color: var(--nl-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.nl-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--nl-gray-800);
}

.nl-card__text {
  font-size: 0.9375rem;
  color: var(--nl-gray-600);
  line-height: 1.5;
}

/* Stats */
.nl-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
}

.nl-stat__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nl-blue);
  line-height: 1;
}

.nl-stat__label {
  font-size: 0.875rem;
  color: var(--nl-gray-600);
  margin-top: 4px;
}

/* Wizard */
.nl-wizard {
  background: var(--nl-white);
  border: 1px solid var(--nl-gray-200);
  border-radius: 8px;
  padding: 40px;
  max-width: 800px;
}

.nl-wizard__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.nl-wizard__step-indicator {
  flex: 1;
  height: 4px;
  background: var(--nl-gray-200);
  border-radius: 2px;
  transition: background var(--nl-transition);
}

.nl-wizard__step-indicator.nl-wizard__step-indicator--active,
.nl-wizard__step-indicator.nl-wizard__step-indicator--done {
  background: var(--nl-blue);
}

.nl-wizard__step-indicator.nl-wizard__step-indicator--done {
  background: var(--nl-yellow);
}

.nl-wizard__panel {
  display: none;
}

.nl-wizard__panel.nl-wizard__panel--active {
  display: block;
}

.nl-wizard__question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--nl-gray-800);
}

.nl-wizard__options {
  display: grid;
  gap: 12px;
}

.nl-wizard__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid var(--nl-gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--nl-transition);
  background: var(--nl-white);
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--nl-gray-800);
  width: 100%;
}

.nl-wizard__option:hover {
  border-color: var(--nl-blue);
  background: var(--nl-blue-light);
}

.nl-wizard__option.nl-wizard__option--selected {
  border-color: var(--nl-blue);
  background: var(--nl-blue-light);
}

.nl-wizard__option i {
  color: var(--nl-blue);
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
}

.nl-wizard__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.nl-wizard__result {
  background: var(--nl-blue-light);
  border-left: 4px solid var(--nl-yellow);
  padding: 24px;
  border-radius: 0 6px 6px 0;
}

.nl-wizard__result-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nl-blue);
  margin-bottom: 12px;
}

.nl-wizard__result-list {
  list-style: none;
  padding: 0;
}

.nl-wizard__result-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--nl-gray-800);
}

.nl-wizard__result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--nl-yellow);
  border-radius: 50%;
}

/* About / team */
.nl-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.nl-profile__img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.nl-profile__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.nl-profile__role {
  color: var(--nl-blue);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Contact */
.nl-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.nl-contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.nl-contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--nl-blue-light);
  color: var(--nl-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nl-contact-info__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nl-gray-400);
  margin-bottom: 2px;
}

.nl-contact-info__value {
  font-weight: 500;
  color: var(--nl-gray-800);
}

/* Form */
.nl-form {
  display: grid;
  gap: 20px;
}

.nl-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nl-form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nl-gray-600);
}

.nl-form__input,
.nl-form__textarea,
.nl-form__select {
  padding: 12px 16px;
  border: 1px solid var(--nl-gray-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--nl-transition);
  background: var(--nl-white);
}

.nl-form__input:focus,
.nl-form__textarea:focus,
.nl-form__select:focus {
  outline: none;
  border-color: var(--nl-blue);
}

.nl-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.nl-form__notice {
  display: none;
  padding: 16px;
  background: var(--nl-yellow-light);
  border: 1px solid var(--nl-yellow);
  border-radius: 4px;
  font-size: 0.9375rem;
  color: var(--nl-gray-800);
}

.nl-form__notice.nl-form__notice--visible {
  display: block;
}

/* Privacy */
.nl-privacy h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--nl-gray-800);
}

.nl-privacy h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--nl-gray-800);
}

.nl-privacy p,
.nl-privacy li {
  font-size: 0.9375rem;
  color: var(--nl-gray-600);
  margin-bottom: 12px;
}

.nl-privacy ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Page header */
.nl-page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--nl-gray-200);
  margin-bottom: 32px;
}

/* Footer */
.nl-footer {
  background: var(--nl-gray-800);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  margin-top: 64px;
}

.nl-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.nl-footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nl-white);
  margin-bottom: 12px;
}

.nl-footer__brand span {
  color: var(--nl-yellow);
}

.nl-footer__text {
  font-size: 0.875rem;
  line-height: 1.6;
}

.nl-footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nl-yellow);
  margin-bottom: 16px;
  font-weight: 600;
}

.nl-footer__links {
  list-style: none;
}

.nl-footer__links li {
  margin-bottom: 8px;
}

.nl-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.nl-footer__links a:hover {
  color: var(--nl-white);
}

.nl-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
}

/* Cookie banner */
.nl-cookie {
  position: fixed;
  bottom: 0;
  left: var(--nl-dotnav-w);
  right: 0;
  background: var(--nl-gray-800);
  color: var(--nl-white);
  padding: 20px 32px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nl-cookie.nl-cookie--visible {
  display: flex;
}

.nl-cookie__text {
  font-size: 0.875rem;
  flex: 1;
  min-width: 280px;
  line-height: 1.5;
}

.nl-cookie__text a {
  color: var(--nl-yellow);
  text-decoration: underline;
}

.nl-cookie__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.nl-cookie__btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--nl-transition);
}

.nl-cookie__btn--accept {
  background: var(--nl-yellow);
  color: var(--nl-gray-800);
}

.nl-cookie__btn--accept:hover {
  background: #ca8a04;
  color: var(--nl-white);
}

.nl-cookie__btn--decline {
  background: transparent;
  color: var(--nl-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nl-cookie__btn--decline:hover {
  border-color: var(--nl-white);
}

/* Split section */
.nl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nl-split__img {
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
  height: 360px;
}

/* Service detail */
.nl-service-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--nl-gray-200);
}

.nl-service-block:last-child {
  border-bottom: none;
}

.nl-service-block--reverse {
  direction: rtl;
}

.nl-service-block--reverse > * {
  direction: ltr;
}

.nl-service-block__img {
  border-radius: 6px;
  height: 280px;
  object-fit: cover;
  width: 100%;
}

.nl-service-block__list {
  list-style: none;
  margin-top: 16px;
}

.nl-service-block__list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--nl-gray-600);
}

.nl-service-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--nl-blue);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 900px) {
  .nl-grid--3,
  .nl-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nl-split,
  .nl-contact-grid,
  .nl-profile,
  .nl-service-block,
  .nl-footer__grid {
    grid-template-columns: 1fr;
  }

  .nl-service-block--reverse {
    direction: ltr;
  }

  .nl-hero__title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --nl-dotnav-w: 48px;
  }

  .nl-topbar {
    padding-left: calc(var(--nl-dotnav-w) + 16px);
  }

  .nl-container {
    padding: 0 20px;
  }

  .nl-grid--2,
  .nl-grid--3,
  .nl-grid--4 {
    grid-template-columns: 1fr;
  }

  .nl-heading {
    font-size: 1.75rem;
  }

  .nl-wizard {
    padding: 24px;
  }

  .nl-cookie {
    left: var(--nl-dotnav-w);
    padding: 16px 20px;
  }

  .nl-dotnav__tooltip {
    display: none;
  }
}
