/* PDFKOR document pages (terms, privacy, refund, cancel). Requires styles/tokens.css. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.doc-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); }
.doc-nav-inner { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; height: 64px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.02em; font-size: 17px; }
.logo img { width: 32px; height: 32px; margin-left: -3px; }
.doc-nav-home { font-size: 14px; opacity: 0.85; }
.doc-nav-home:hover { opacity: 1; }

/* ---------- Document ---------- */
.container { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 40px; }
.header { margin-bottom: 48px; }
.header h1 { font-size: 30px; font-weight: 400; line-height: 1.38; letter-spacing: -0.02em; }
.header p { font-size: 30px; line-height: 1.38; letter-spacing: -0.02em; color: var(--ink-soft); }

.section { margin-bottom: 44px; }
.section:last-child { margin-bottom: 0; }
.section h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.section h3 { font-size: 16px; font-weight: 500; margin: 20px 0 6px; }
.section p, .section li { font-size: 15.5px; color: var(--ink-soft); }
.section p { margin-bottom: 12px; }
.section ul { margin: 0 0 12px 20px; }
.section li { margin-bottom: 6px; }
.section strong { font-weight: 500; color: var(--ink); }
.section a { color: var(--accent-text); }
.section a:hover { text-decoration: underline; text-underline-offset: 3px; }

.highlight-box { background: var(--card); border-radius: 4px; padding: 18px 20px; margin: 20px 0; }
.highlight-box p:last-child { margin-bottom: 0; }

.table-container { overflow-x: auto; margin: 20px 0; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.info-table th { background: var(--card); font-weight: 500; white-space: nowrap; }
.info-table td { color: var(--ink-soft); }
.info-table tr:last-child td { border-bottom: none; }

.refund-image { margin: 20px 0; }
.refund-image img { display: block; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }

/* 구독 해지 패널(cancel.html) */
.sub-panel { background: var(--card); border-radius: 8px; padding: 20px 22px; margin: 20px 0 28px; }
.section .sub-panel p { margin-bottom: 0; }
.sub-plan { font-size: 20px; letter-spacing: -0.015em; color: var(--ink); }
.sub-plan small { margin-left: 6px; font-size: 14px; color: var(--ink-faint); }
.section .sub-meta { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }
.sub-state { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: var(--accent-tint); color: var(--accent-ink); }
.sub-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.sub-actions .manage-button { margin: 0; }
.sub-actions .manage-button:disabled { opacity: 0.6; cursor: default; }

.effective-date { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }

/* ---------- Buttons ---------- */
.back-button, .manage-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 15px;
  border: 0; cursor: pointer; transition: background 0.15s ease;
}
.manage-button { margin: 4px 0 24px; background: var(--ink); color: var(--bg); }
.manage-button:hover { background: color-mix(in srgb, var(--ink), #fff 12%); }
.back { margin-top: 56px; }
.back-button { background: var(--pill); color: var(--ink); }
.back-button:hover { background: color-mix(in srgb, var(--bg), var(--ink) 10%); }

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

@media (max-width: 600px) {
  .container { padding-top: 40px; }
  .header { margin-bottom: 36px; }
  .header h1, .header p { font-size: 24px; }
}
