@import '../../utils/shared-styles.scss';

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  margin-bottom: 4rem;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== LEGAL/IMPRINT SECTION ===== */

.legal--imprint {
  background:  $color-background-secondary;
  padding-block: 2rem;

  @media (min-width: 768px) {
    padding-block: 3rem;
  }

  .legal__content {
    background: $glass-bg;
    backdrop-filter: blur(10px);
    border: 1px solid $glass-border;
    border-radius: $radius-xl;
    padding: 2rem;
    box-shadow: $shadow-glass;
    max-width: 800px;
    margin-inline: auto;

    @media (min-width: 768px) {
      padding: 3rem;
    }

    @media (min-width: 1024px) {
      padding: 3.5rem 4rem;
    }

    h2 {
      font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
      font-weight: 700;
      color: $color-text-primary;
      margin: 0 0 0.75rem;
      letter-spacing: -0.01em;
      scroll-margin-top: 120px;
      line-height: 1.3;

      &:not(:first-child) {
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid $color-gray-200;
      }

      &:first-child {
        margin-top: 0;
      }
    }

    p {
      margin: 0;
      color: $color-text-secondary;
      line-height: 1.7;
      font-size: 1rem;

      &+p {
        margin-top: 1rem;
      }

      strong {
        color: $color-text-primary;
        font-weight: 600;
      }

      br {
        line-height: 1.4;
      }
    }

    a {
      color: $color-brand-primary;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.2s ease;

      &:hover {
        text-decoration: underline;
      }

      &:focus-visible {
        outline: 2px solid $color-brand-primary;
        outline-offset: 2px;
        border-radius: 2px;
      }
    }
  }
}

/* ===== INFO CARD ===== */

.info-card {
  background: $glass-bg;
  border: 1px solid $glass-border;
  border-radius: $radius-lg;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: $shadow-md;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: $shadow-lg;
  }

  .info-icon {
    width: 48px;
    height: 48px;
    background: $gradient-primary;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: $shadow-brand;
    flex-shrink: 0;

    .material-symbols-outlined {
      font-size: 24px;
      color: white;
    }
  }

  .info-content {
    h3 {
      font-size: 1.0625rem;
      font-weight: 700;
      color: $color-text-primary;
    }

    p {
      font-size: 0.9375rem;
      color: $color-text-secondary;
      line-height: 1.6;
      margin: 0;

      &+p {
        margin-top: 0.75rem;
      }
    }
  }
}

/* ===== HIGHLIGHT BOX ===== */

.highlight-box {
  background: $gradient-subtle;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: $radius-lg;
  padding: 1.5rem;
  margin: 0 0 1rem;

  p {
    margin: 0;

    &+p {
      margin-top: 0.75rem;
    }
  }

  strong {
    color: $color-text-primary;
  }
}

/* ===== CONTACT BOX ===== */

.contact-box {
  background: $gradient-subtle;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: $radius-xl;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.06), transparent 50%),
      radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.04), transparent 50%);
    pointer-events: none;
  }

  >* {
    position: relative;
    z-index: 1;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: $gradient-primary;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: $shadow-brand;

    .material-symbols-outlined {
      font-size: 28px;
      color: white;
    }
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: $color-text-primary;
    margin: 0 0 0.5rem;
  }

  p {
    color: $color-text-secondary;
    margin: 0 0 1rem;
    line-height: 1.6;
  }

  .contact-details {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;

    a {
      color: $color-brand-primary;
      text-decoration: none;
      font-weight: 600;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* ===== MOTION PREFERENCES ===== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}