/* Highway Hop - Privacy Page Styles */

/* Privacy Hero */
.hhp-91-privacy-hero {
  background: linear-gradient(135deg, var(--hhp-91-gray-dark) 0%, var(--hhp-91-black) 100%);
  color: white;
  padding: var(--hhp-91-space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hhp-91-privacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  animation: privacy-glow 8s ease-in-out infinite;
}

@keyframes privacy-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hhp-91-privacy-hero h1 {
  color: white;
  margin-bottom: var(--hhp-91-space-md);
}

/* Privacy Principles Grid */
.hhp-91-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--hhp-91-space-lg);
  margin: var(--hhp-91-space-xl) 0;
}

.hhp-91-principle-card {
  background: white;
  border-radius: var(--hhp-91-radius-xl);
  padding: var(--hhp-91-space-xl);
  box-shadow: var(--hhp-91-shadow-md);
  text-align: center;
  transition: var(--hhp-91-transition);
  position: relative;
  overflow: hidden;
}

.hhp-91-principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hhp-91-teal), var(--hhp-91-amber));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.hhp-91-principle-card:hover::before {
  transform: scaleX(1);
}

.hhp-91-principle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hhp-91-shadow-lg);
}

.hhp-91-principle-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--hhp-91-teal), var(--hhp-91-amber));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--hhp-91-space-md);
  box-shadow: var(--hhp-91-shadow-md);
}

/* Data Collection Table */
.hhp-91-data-table {
  background: white;
  border-radius: var(--hhp-91-radius-lg);
  overflow: hidden;
  box-shadow: var(--hhp-91-shadow-md);
  margin: var(--hhp-91-space-xl) 0;
}

.hhp-91-table-header {
  background: var(--hhp-91-teal);
  color: white;
  padding: var(--hhp-91-space-lg);
  font-weight: 600;
  text-align: center;
}

.hhp-91-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  border-bottom: 1px solid var(--hhp-91-gray-light);
  transition: var(--hhp-91-transition-fast);
}

.hhp-91-table-row:hover {
  background: var(--hhp-91-gray-light);
}

.hhp-91-table-cell {
  padding: var(--hhp-91-space-lg);
  display: flex;
  align-items: center;
  gap: var(--hhp-91-space-sm);
}

.hhp-91-status-yes {
  color: var(--hhp-91-teal);
  font-weight: 600;
}

.hhp-91-status-no {
  color: var(--hhp-91-orange);
  font-weight: 600;
}

/* User Rights Section */
.hhp-91-rights-list {
  background: var(--hhp-91-gray-light);
  border-radius: var(--hhp-91-radius-lg);
  padding: var(--hhp-91-space-xl);
  margin: var(--hhp-91-space-xl) 0;
}

.hhp-91-right-item {
  display: flex;
  align-items: flex-start;
  gap: var(--hhp-91-space-md);
  padding: var(--hhp-91-space-md) 0;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
  transition: var(--hhp-91-transition-fast);
}

.hhp-91-right-item:last-child {
  border-bottom: none;
}

.hhp-91-right-item:hover {
  background: rgba(13, 148, 136, 0.1);
  border-radius: var(--hhp-91-radius-md);
  padding-left: var(--hhp-91-space-md);
  padding-right: var(--hhp-91-space-md);
}

.hhp-91-right-icon {
  width: 40px;
  height: 40px;
  background: var(--hhp-91-teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Contact Information */
.hhp-91-contact-card {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--hhp-91-teal);
  border-radius: var(--hhp-91-radius-lg);
  padding: var(--hhp-91-space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hhp-91-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 15px,
    rgba(13, 148, 136, 0.05) 15px,
    rgba(13, 148, 136, 0.05) 30px
  );
  pointer-events: none;
}

.hhp-91-contact-content {
  position: relative;
  z-index: 1;
}

/* Legal Compliance */
.hhp-91-compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--hhp-91-space-lg);
  margin: var(--hhp-91-space-xl) 0;
}

.hhp-91-compliance-item {
  background: white;
  border-radius: var(--hhp-91-radius-lg);
  padding: var(--hhp-91-space-lg);
  box-shadow: var(--hhp-91-shadow-sm);
  text-align: center;
  transition: var(--hhp-91-transition);
  position: relative;
}

.hhp-91-compliance-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--hhp-91-amber);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.hhp-91-compliance-item:hover::after {
  width: 80%;
}

.hhp-91-compliance-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hhp-91-shadow-md);
}

.hhp-91-compliance-badge {
  width: 60px;
  height: 60px;
  background: var(--hhp-91-amber);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--hhp-91-space-md);
}

/* Animation Keyframes */
@keyframes shield-expand {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-45deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  }
}

@keyframes lock-secure {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  50% {
    transform: translateY(5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes data-flow {
  0% {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes rights-unfold {
  0% {
    opacity: 0;
    max-height: 0;
    transform: rotateX(-90deg);
  }
  100% {
    opacity: 1;
    max-height: 200px;
    transform: rotateX(0deg);
  }
}

@keyframes compliance-check {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes contact-pulse {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 rgba(13, 148, 136, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.3);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(13, 148, 136, 0);
  }
}

@keyframes text-typewriter {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* Animation Classes */
[data-anim="shield-expand"].is-visible {
  animation: shield-expand 0.8s ease-out forwards;
}

[data-anim="lock-secure"].is-visible {
  animation: lock-secure 0.6s ease-out forwards;
}

[data-anim="data-flow"].is-visible {
  animation: data-flow 0.8s ease-out forwards;
}

[data-anim="rights-unfold"].is-visible {
  animation: rights-unfold 0.8s ease-out forwards;
}

[data-anim="compliance-check"].is-visible {
  animation: compliance-check 0.6s ease-out forwards;
}

[data-anim="contact-pulse"].is-visible {
  animation: contact-pulse 1s ease-out forwards;
}

[data-anim="text-typewriter"].is-visible {
  animation: text-typewriter 1.2s ease-out forwards;
  overflow: hidden;
  white-space: nowrap;
}

[data-anim="stagger-up"] .hhp-91-stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="stagger-up"] .hhp-91-stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hhp-91-principles-grid {
    grid-template-columns: 1fr;
  }
  
  .hhp-91-table-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hhp-91-table-cell {
    justify-content: center;
    border-bottom: 1px solid var(--hhp-91-gray-light);
  }
  
  .hhp-91-table-cell:last-child {
    border-bottom: none;
  }
  
  .hhp-91-compliance-grid {
    grid-template-columns: 1fr;
  }
  
  .hhp-91-privacy-hero {
    padding: var(--hhp-91-space-xl) 0;
  }
}

@media (max-width: 480px) {
  .hhp-91-principle-card {
    padding: var(--hhp-91-space-lg);
  }
  
  .hhp-91-principle-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .hhp-91-rights-list {
    padding: var(--hhp-91-space-lg);
  }
  
  .hhp-91-right-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .hhp-91-compliance-badge {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}
/* --- FIX: overlap on privacy page --- */

/* 1) Не ограничиваем высоту после раскрытия */
@keyframes rights-unfold {
  0%   { opacity: 0; max-height: 0;   transform: rotateX(-90deg); }
  100% { opacity: 1; max-height: 9999px; transform: rotateX(0); }
}
[data-anim="rights-unfold"].is-visible {
  max-height: none;           /* защита на всякий случай */
  overflow: visible;
  transform-origin: top;
}

/* 2) Разрешаем переносы в секциях с печатающимся текстом,
      сам эффект оставляем только на заголовке */
[data-anim="text-typewriter"].is-visible { 
  white-space: normal;
  overflow: visible;
}
[data-anim="text-typewriter"].is-visible h2 {
  display: inline-block;
  white-space: nowrap;
  animation: text-typewriter 1.2s ease-out forwards;
}

/* 3) Микро-страховка от длинных слов в карточках/списках */
.hhp-91-rights-list p,
.hhp-91-principle-card p,
.hhp-91-compliance-item p {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
/* --- FIX: Privacy hero shows full text --- */

/* кладём декоративный слой под контент, чтобы он не перекрывал текст */
.hhp-91-privacy-hero::before { z-index: 0; }
.hhp-91-privacy-hero > * { position: relative; z-index: 1; }

/* отключаем клип на всей секции */
[data-anim="shield-expand"].is-visible {
  animation: none;
  clip-path: none;
}

/* оставляем эффект «щит раскрывается» только на картинке в герое */
.hhp-91-privacy-hero.is-visible img {
  animation: shield-expand 0.7s ease-out both;
  will-change: clip-path, transform, opacity;
}

/* переопределяем keyframes: из треугольника → в обычный прямоугольник */
@keyframes shield-expand {
  0% {
    opacity: 0;
    transform: scale(0.92) rotate(-2deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
/* ===== Spacing ===== */
.mt-xl { margin-top: var(--hhp-91-space-xl); }
.mt-lg { margin-top: var(--hhp-91-space-lg); }
.mt-md { margin-top: var(--hhp-91-space-md); }
.mb-xl { margin-bottom: var(--hhp-91-space-xl); }
.mb-lg { margin-bottom: var(--hhp-91-space-lg); }

/* ===== Typography ===== */
.lead { font-size: 1.125rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.6; }
.text-muted { color: var(--hhp-91-gray-medium); opacity: .8; }

/* ===== Narrow paragraphs ===== */
.narrow-600 { max-width: 600px; margin-inline: auto; }
.narrow-700 { max-width: 700px; margin-inline: auto; }

/* ===== Table grid header (1fr 1fr 2fr) ===== */
.table-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--hhp-91-space-md);
}

/* ===== Accessible skip-link (без инлайна) ===== */
.hhp-91-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 8px 12px;
  background: var(--hhp-91-amber);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}
.hhp-91-skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
