/* Support Policy page */

.policy-docs {
  background: #fff;
}

.docs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 24px;
}

.policy-docs-loading {
  width: 100%;
  margin: 0;
  padding: 40px 0;
  text-align: center;
  color: #999;
}

.doc-item {
  width: calc((100% - 48px) / 3);
  max-width: 284px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.doc-item:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.doc-item img {
  width: 100%;
  height: auto;
  display: block;
}

.policy-cases {
  background: #f3f5f8;
}

.policy-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.policy-case-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.policy-case-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.policy-case-cover {
  aspect-ratio: 415 / 240;
  overflow: hidden;
  background: #eee;
}

.policy-case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.policy-case-card:hover .policy-case-cover img {
  transform: scale(1.04);
}

.policy-case-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 22px;
  flex: 1;
}

.policy-case-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.policy-case-body p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.policy-case-btn {
  border-radius: 999px;
  min-width: 100px;
}

@media (max-width: 1024px) {
  .doc-item {
    width: calc((100% - 24px) / 2);
    max-width: none;
  }

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

@media (max-width: 640px) {
  .doc-item {
    width: 100%;
    max-width: 320px;
  }

  .policy-cases-grid {
    grid-template-columns: 1fr;
  }
}
