:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8f8fb;
  --text: #1f2937;
  --text-soft: #5f6b7a;
  --line: #ececf2;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  padding: 32px 16px;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.status-block,
.policy-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
}

.hidden {
  display: none;
}

.shimmer-wrapper {
  overflow: hidden;
}

.shimmer,
.shimmer-title,
.shimmer-accent,
.shimmer-line {
  position: relative;
  background: #eff1f5;
}

.shimmer::after,
.shimmer-title::after,
.shimmer-accent::after,
.shimmer-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.3s infinite;
}

.shimmer-title {
  width: min(240px, 60%);
  height: 28px;
  border-radius: 10px;
}

.shimmer-accent {
  width: 78px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
}

.shimmer-line {
  width: 100%;
  height: 14px;
  margin-top: 16px;
  border-radius: 999px;
}

.shimmer-line.short {
  width: 72%;
}

.shimmer-line.medium {
  width: 84%;
}

.shimmer-gap {
  height: 14px;
}

.policy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.policy-heading {
  margin: 18px 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.policy-body {
  margin-top: 20px;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.policy-body p {
  margin: 0 0 16px;
}

.policy-body h1,
.policy-body h2,
.policy-body h3,
.policy-body h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 28px 0 12px;
}

.policy-body h1 {
  font-size: 1.55rem;
}

.policy-body h2 {
  font-size: 1.3rem;
}

.policy-body h3,
.policy-body h4 {
  font-size: 1.08rem;
}

.policy-body ul,
.policy-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.policy-body li {
  margin-bottom: 8px;
}

.policy-body strong {
  color: var(--text);
}

.policy-body a {
  color: var(--accent);
}

.message-state {
  text-align: center;
  padding: 24px 12px;
}

.message-state h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.message-state p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.retry-button {
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.retry-button:hover {
  filter: brightness(0.97);
}

.error-state h2 {
  color: var(--danger);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px 12px;
  }

  .policy-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .status-block,
  .policy-content {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .page-subtitle,
  .policy-body {
    font-size: 0.96rem;
  }
}
