/* Public information pages (about, refund, privacy, contact) and the shared footer link row.
   Builds on the tokens and fonts in styles.css. */

/* Page shell: one readable column with a 16px gutter on phones. */
body.policy-page { padding: 32px 16px 40px; }
.policy { width: 100%; max-width: 44rem; margin: 0 auto; }

/* Wordmark linking home. */
.policy__brand { text-align: center; margin-bottom: 22px; }
.policy__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
.policy__mark:hover { color: var(--cream); }
.policy__tag {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Content card. */
.policy__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 34px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow-wrap: break-word;
}
.policy__title { font-family: var(--serif); font-size: 1.75rem; color: var(--text); }
.policy__updated { margin: 8px 0 26px; font-size: 0.8rem; color: var(--faint); }

/* Body text kept to roughly 65 characters a line. */
.policy__body { max-width: 65ch; font-size: 0.98rem; line-height: 1.65; color: var(--text); }
.policy__body h2 {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--cream);
}
.policy__body p, .policy__body ul { margin: 0 0 14px; }
.policy__body ul { padding-left: 1.25rem; }
.policy__body li { margin-bottom: 6px; }
.policy__body a { color: var(--pink); }
.policy__body a:hover { color: var(--text); }
.policy__body strong { color: var(--text); }

/* Plans table. */
.policy__table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 0.94rem; }
.policy__table th, .policy__table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.policy__table th { font-weight: 600; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }

/* Details the owner must fill in before publishing. */
.policy__todo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 200, 60, 0.16);
  border: 1px dashed rgba(255, 200, 60, 0.7);
  color: #ffd76a;
  font-weight: 600;
}

/* Contact details list. */
.policy__contact { list-style: none; padding: 0 !important; }
.policy__contact li { margin-bottom: 12px; }
.policy__label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Footer link row, shared with the sign-in pages. */
.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}
.site-links a { color: var(--muted); text-decoration: none; }
.site-links a:hover { color: var(--text); text-decoration: underline; }

/* Agreement line under the signup button. */
.login__agree { margin: 14px 0 0; text-align: center; font-size: 0.74rem; line-height: 1.5; color: var(--faint); }
.login__agree a { color: var(--muted); }
.login__agree a:hover { color: var(--text); }

@media (max-width: 520px) {
  body.policy-page { padding: 22px 16px 32px; }
  .policy__card { padding: 26px 18px 24px; }
  .policy__title { font-size: 1.5rem; }
  .policy__table th, .policy__table td { padding: 9px 4px; }
}
