/* 리메모리 서브 페이지 공통 스타일 (terms / privacy / contact) */
:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-soft2: #1c1c26;
  --fg: #f7f7fa;
  --fg-dim: #c7c7d3;
  --muted: #8b8b96;
  --accent: #ffd166;
  --accent-2: #ef476f;
  --success: #06d6a0;
  --line: #25252e;
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.65;
  text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 22px 80px; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* 헤더 */
.page-header { display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 4px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #0b0b0f; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand-name span { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.back-link { font-size: 13px; color: var(--fg-dim); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* 페이지 타이틀 */
.page-title { padding: 12px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-title h1 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 6px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.15; }
.page-title .meta { color: var(--muted); font-size: 13px; padding-bottom: 16px; }
.page-title .meta strong { color: var(--fg-dim); font-weight: 600; }

/* 본문 */
.doc h2 { font-size: 18px; letter-spacing: -0.02em; margin: 32px 0 8px;
  font-weight: 800; padding-left: 12px; border-left: 3px solid var(--accent); }
.doc h3 { font-size: 15px; margin: 18px 0 6px; color: var(--fg-dim); font-weight: 700; }
.doc p { color: var(--fg-dim); margin: 6px 0 12px; font-size: 15px; }
.doc strong { color: var(--fg); font-weight: 700; }
.doc ol, .doc ul { color: var(--fg-dim); padding-left: 22px; margin: 6px 0 14px; font-size: 15px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px;
  background: var(--bg-soft); border-radius: 10px; overflow: hidden; font-size: 14px; }
.doc th, .doc td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-soft2); font-weight: 700; color: var(--fg); font-size: 13px; }
.doc td { color: var(--fg-dim); }
.doc table tr:last-child th, .doc table tr:last-child td { border-bottom: 0; }
.doc blockquote { border-left: 3px solid var(--accent); padding: 8px 14px; color: var(--fg-dim);
  background: var(--bg-soft); border-radius: 0 8px 8px 0; margin: 14px 0; font-size: 14px; }
.doc code { font-family: 'SF Mono','Menlo','Monaco',monospace; background: var(--bg-soft);
  padding: 2px 6px; border-radius: 4px; font-size: 0.92em; color: var(--accent); }

.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 16px 0; }
.callout .callout-title { color: var(--accent); font-weight: 700; margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* 푸터 */
.page-footer { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-footer a { color: var(--fg-dim); }
.page-footer .legal-links { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }

/* 폼 (contact 전용) */
.form-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; margin: 0 0 28px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 13px; color: var(--fg-dim); font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); color: var(--fg);
  border-radius: var(--radius-sm); font-size: 15px; outline: none; font-family: inherit;
  transition: border-color 0.15s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { min-height: 120px; resize: vertical; }
.btn-primary { padding: 14px 22px; background: var(--accent); color: #0b0b0f; border: none;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 800; cursor: pointer;
  letter-spacing: -0.01em; font-family: inherit;
  transition: transform 0.1s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,209,102,0.4); }
.btn-secondary { padding: 14px 22px; background: transparent; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block;
  transition: border-color 0.15s; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.contact-methods { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 12px 0 28px; }
@media (min-width: 600px) { .contact-methods { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px; transition: border-color 0.2s; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .ic { width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,209,102,0.18), rgba(239,71,111,0.18));
  display: grid; place-items: center; color: var(--accent); margin-bottom: 10px; }
.contact-card h3 { font-size: 15px; margin: 0 0 4px; font-weight: 700; }
.contact-card p { color: var(--muted); margin: 0; font-size: 13px; }
.contact-card a { display: inline-block; margin-top: 8px; font-weight: 700; }
