@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

html {
  height: 100%;
}

body {
  height: 100%;
  font-family: 'Roboto', Arial, sans-serif;
  background: white;
  overflow: hidden;
}

.background-container {
  position: fixed;
  top: -10px; /* Отступ сверху */
  left: -10px; /* Отступ слева */
  width: calc(100% + 20px); /* Увеличиваем ширину на 20px (10+10) */
  height: calc(100% + 20px); /* Увеличиваем высоту на 20px (10+10) */
  background: url('../assets/sjbvhsbrjnswjkefnsjnrgjsnbr.webp') no-repeat top center;
  background-size: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Убираем возможные фильтры */
  filter: none;
  -webkit-filter: none;
}

.content-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}

.policy-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.policy-header {
  text-align: center;
  margin-bottom: 32px;
}

.policy-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1c20;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: #6a737d;
  font-weight: 400;
}

.policy-content {
  margin-bottom: 24px;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px;
  padding: 12px;
  background: rgba(245, 246, 247, 0.8);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.policy-item:hover {
  background: rgba(235, 236, 237, 0.9);
  transform: translateY(-2px);
}

.policy-number {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #1a1c20, #333333);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
  min-width: 24px;
}

.policy-text {
  font-size: 15px;
  line-height: 1.5;
  color: #1a1c20;
  font-weight: 400;
  word-break: break-word;
}

.agree-section {
  display: flex;
  align-items: flex-start;
  margin: 12px 0;
  padding: 16px;
  background: rgba(245, 246, 247, 0.8);
  border-radius: 16px;
}

.agree-section input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 3px;
  transform: scale(1.3);
}

.agree-section label {
  font-weight: 500;
  color: #1a1c20;
  font-size: 16px;
  word-break: break-word;
}

.continue-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #1a1c20, #333333);
  border: none;
  color: white;
  font-size: 17px;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 28, 32, 0.3);
}

.continue-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 28, 32, 0.4);
}

.continue-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.interact-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interact-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(26, 28, 32, 0.4);
}

.interact-button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* Адаптив для очень маленьких экранов */
@media (max-width: 480px) {
  .content-wrapper {
    padding: 10px;
  }
  
  .policy-box {
    padding: 20px;
    border-radius: 16px;
    max-height: 95vh;
  }
  
  .policy-header h2 {
    font-size: 24px;
  }
  
  .subtitle {
    font-size: 14px;
  }
  
  .policy-item {
    padding: 8px;
    margin-bottom: 4px;
  }
  
  .policy-number {
    width: 20px;
    height: 20px;
    font-size: 12px;
    margin-right: 8px;
  }
  
  .policy-text {
    font-size: 14px;
  }
  
  .agree-section {
    padding: 12px;
    margin: 8px 0;
  }
  
  .agree-section input[type="checkbox"] {
    transform: scale(1.2);
  }
  
  .agree-section label {
    font-size: 14px;
  }
  
  .continue-btn {
    padding: 14px;
    font-size: 16px;
  }
}

/* Для очень высоких экранов */
@media (min-height: 800px) {
  .policy-box {
    max-height: 80vh;
  }
}

/* Для очень низких экранов */
@media (max-height: 600px) {
  .policy-box {
    max-height: 95vh;
  }
  
  .policy-item {
    margin-bottom: 4px;
  }
}