/* ============================================================================
   The Luck Guide — legal document pages (privacy, terms)
   Long-form readable layout on the atmospheric theme. Loaded after styles.css.
   ============================================================================ */

.doc {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 56px 0 96px;
}

/* document header: back-link + wordmark */
.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--glass-line);
}
.doc-head .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.doc-head .home img { width: 34px; height: 34px; border-radius: 9px; }
.doc-head .home .mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}
.doc-head .home .mark .gold { color: var(--gold); }
.doc-head .back {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--ink-dim);
  text-decoration: none;
}
.doc-head .back:hover { color: var(--gold); }

/* title block */
.doc h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.08;
  margin-bottom: 10px;
}
.doc .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}

/* body typography */
.doc h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 28px);
  color: var(--gold-soft);
  margin: 44px 0 14px;
}
.doc h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 8px;
}
.doc p { color: var(--ink-dim); margin-bottom: 16px; }
.doc ul { margin: 0 0 16px 22px; color: var(--ink-dim); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--gold-soft); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

/* callout panel for the on-device promise */
.doc .panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 8px 0 32px;
  backdrop-filter: blur(6px);
}
.doc .panel p:last-child { margin-bottom: 0; }

.doc .entity {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-line);
  font-size: 13px;
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .doc { padding: 36px 0 72px; }
  .doc-head { margin-bottom: 30px; }
}
