/* Shared layout for the legal/policy pages (refund, terms, privacy).
   Uses the site's design tokens from styles.css so it matches the main site,
   including dark mode. */

body.policy-page {
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  margin: 0;
}

/* Top bar */
.policy-topbar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.policy-topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.policy-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.policy-back {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.policy-back:hover { text-decoration: underline; }

/* Article */
.policy-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.policy-article h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.policy-updated {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 24px;
}

/* Summary callout at the top */
.policy-callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 32px;
}

.policy-callout strong { color: var(--accent); }

.policy-callout p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Sections */
.policy-section {
  border-top: 1px solid var(--border);
  padding: 26px 0 4px;
  margin: 0;
}

.policy-section h2 {
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.policy-section h2 .num {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.policy-section p,
.policy-section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.policy-section p { margin: 0 0 12px; }

.policy-section ul { margin: 0 0 12px; padding-left: 22px; }

.policy-section li { margin-bottom: 6px; }

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

.policy-section code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
}

/* Highlight box for the key exception (failed payments) */
.policy-highlight {
  background: var(--green-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

.policy-highlight p { margin: 0; }

/* Contact card */
.policy-contact {
  margin-top: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.policy-contact h2 { font-size: 17px; margin: 0 0 8px; }

.policy-contact p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.policy-contact a { color: var(--accent); font-weight: 600; }

@media (max-width: 560px) {
  .policy-article h1 { font-size: 27px; }
  .policy-article { padding-top: 28px; }
}
