/* ----- Reset ----- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  position: relative;
  background-color: #121212;
  color: #e0e0e0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
  overflow-x: hidden;
}

/* Telegram background pattern */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("https://whereismymindaz.com/static/images/pattern.svg");
  background-repeat: repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* ----- Header ----- */
.header {
  position: relative;
  z-index: 2;
  height: 54px;
  background-color: #1f1f1f;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo {
  display: inline-flex;
}

.header__title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.header__download {
  background-color: #1976d2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 17px;
  line-height: 17px;
  transition: background-color 0.2s ease;
}

.header__download:hover {
  background-color: #1565c0;
}

/* ----- Content ----- */
.main {
  position: relative;
  z-index: 1;
  padding: 70px 16px 40px;
  display: flex;
  justify-content: center;
}

/* ----- Card ----- */
.card {
  width: 400px;
  max-width: 400px;
  background-color: #1e1e1e;
  border-radius: 16px;
  box-shadow: 0 2px 4px 0 rgba(255, 255, 255, 0.05);
  padding: 32px 0;
  text-align: center;
}

.card__avatar-link {
  display: inline-block;
}

.card__avatar {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  object-fit: cover;
}

.card__title {
  display: block;
  color: #e0e0e0;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  text-decoration: none;
  text-align: center;
  padding: 0 10px;
  margin-top: 14px;
}

.card__members {
  color: #e0e0e0;
  opacity: 0.7;
  font-size: 15px;
  line-height: 18px;
  text-align: center;
  padding: 6px 16px 0;
}

.card__description {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  padding: 16px 24px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.card__button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin-top: 24px;
  background-color: #1976d2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 22px;
  transition: background-color 0.2s ease;
}

.card__button:hover {
  background-color: #1565c0;
}

/* Shine effect on button */
.card__button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    270deg,
    rgba(100, 181, 239, 0) 48.44%,
    rgba(100, 181, 239, 1) 75.52%,
    rgba(100, 181, 239, 0) 100%
  );
  animation: shine 3s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  0%   { left: -100%; }
  60%  { left: 100%; }
  100% { left: 100%; }
}

/* ----- Mobile ----- */
@media (max-width: 480px) {
  .main {
    padding: 24px 12px 40px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    padding: 28px 0;
  }

  .header__title {
    font-size: 18px;
  }

  .card__title {
    font-size: 23px;
  }

  .card__description {
    padding: 16px 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card__button-shine {
    animation: none;
    display: none;
  }
}

/* ----- Footer (faint legal info) ----- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 32px;
  color: #444;
  font-size: 11px;
  line-height: 1.5;
}

.footer p {
  margin: 0 0 8px;
}

.footer__link {
  color: #4a4a4a;
  text-decoration: underline;
}

.footer__link:hover {
  color: #777;
}

/* ----- Legal / Privacy page ----- */
.legal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 24px;
  color: #e0e0e0;
  line-height: 1.7;
}

.legal h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.legal h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 28px 0 8px;
  color: #fff;
}

.legal p {
  font-size: 15px;
  margin-bottom: 12px;
  color: #cfcfcf;
}

.legal__updated {
  color: #888;
  font-size: 13px;
  margin-bottom: 24px;
}

.legal a {
  color: #64b5ef;
  text-decoration: none;
}

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

.legal__back {
  margin-top: 32px;
}