: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;
}

.status-block,
.policy-content {
  padding: 4px 2px;
}

.hidden {
  display: none;
}

.shimmer-wrapper {
  overflow: hidden;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255,255,255,0.72) 50%,
      transparent 80%
    ),
    #eff1f5;
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: skeleton-sweep 1.6s ease-in-out infinite;
  border-radius: inherit;
}

.shimmer-title,
.shimmer-accent,
.shimmer-line {
  background: rgba(0, 0, 0, 0.085);
  border-radius: 999px;
}

.shimmer-title {
  width: min(220px, 55%);
  height: 30px;
  border-radius: 10px;
}

.shimmer-accent {
  width: 72px;
  height: 5px;
  margin-top: 14px;
  opacity: 0.6;
}

.shimmer-line {
  width: 100%;
  height: 13px;
  margin-top: 14px;
}

.shimmer-line.short  { width: 68%; }
.shimmer-line.medium { width: 82%; }
.shimmer-gap { height: 20px; }

.policy-heading {
  margin: 0 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 hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

.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);
  text-decoration: underline;
}

.policy-body a:hover {
  text-decoration: none;
}

.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 skeleton-sweep {
  0%   { background-position: -100% 0; }
  100% { background-position:  200% 0; }
}

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

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

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