@import url("/fonts/manrope.css"); /* self-host Manrope(라틴) — CSP 안전, 외부 CDN 미사용 */
/* crea-m 스타일 (Stitch 화이트 시안) — 순백 배경 · 검정 텍스트 · 코랄 레드 포인트 */
:root {
  --bg: #ffffff;            /* 순백 배경 */
  --bg-card: #ffffff;       /* 카드 */
  --bg-card-2: #f5f5f5;     /* surface(연한 회색) */
  --line: #e6e6e6;          /* 경계선(연회색) */
  --text: #000000;          /* 검정 텍스트 */
  --text-dim: #595959;      /* 보조 텍스트(회색) */
  --accent: #ff4d4d;        /* 코랄 레드 포인트 */
  --accent-strong: #ff4d4d;
  --accent-soft: #ff8080;
  --sage: #44664f;
  --ok: #16a34a;
  --warn: #b45309;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "맑은 고딕", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: 760px; margin: 0 auto;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--accent); font-weight: 600; }
.hero-badges { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* Landing features */
.features { max-width: 760px; margin: 8px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.feature .f-ic { font-size: 26px; }
.feature h3 { margin: 8px 0 4px; font-size: 14px; }
.feature p { margin: 0; font-size: 12px; color: var(--text-dim); }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.plan-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-card h3 { margin: 0 0 8px; }
.plan-price { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.plan-price small { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.plan-card ul { padding-left: 18px; margin: 0 0 14px; color: var(--text-dim); font-size: 14px; }
.plan-card li { margin: 5px 0; }
.plan-packs { font-size: 13px; color: var(--accent); margin-bottom: 12px; }

/* FAQ */
.faq { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-dim); font-size: 14px; margin: 10px 0 0; }
.faq a { color: var(--accent); }
.q-label { display: block; font-size: 13px; color: var(--text-dim); margin: 10px 0 4px; }

/* Mypage / auth */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tabs .btn.active { border-color: var(--accent); color: var(--accent); }
.me-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-credits { margin-top: 10px; font-size: 15px; }
.me-credits #meCredits { color: var(--accent); font-weight: 800; }
.me-h { font-size: 15px; margin: 0 0 10px; }
.me-list { font-size: 14px; color: var(--text-dim); }
.me-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.card.danger { border-color: rgba(186,26,26,.35); }
.danger-btn { color: #ba1a1a; border-color: rgba(186,26,26,.35); }

/* Site footer */
.site-footer { flex-direction: column; gap: 6px; }
.site-footer .biz { font-size: 11px; color: var(--text-dim); }
.brand-sub { font-weight: 500; font-size: 12px; color: var(--text-dim); margin-left: 8px; }
.privacy-pill {
  font-size: 12px; color: var(--ok); background: rgba(110,231,183,.1);
  border: 1px solid rgba(110,231,183,.3); padding: 6px 10px; border-radius: 999px;
}

/* Layout */
.container { max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
.hero { text-align: center; padding: 18px 0 26px; }
.hero h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; }
.hero p { color: var(--text-dim); margin: 0; }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 20px;
}
.hidden { display: none !important; }

/* Dropzone */
.dropzone { cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--accent); background: var(--bg-card-2); }
.dropzone-inner { text-align: center; padding: 26px 10px; }
.dz-icon { font-size: 40px; }
.dz-title { font-weight: 600; margin: 12px 0 4px; }
.dz-hint { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 12px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .05s, opacity .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #e63b3b; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-card-2); }

/* Compare slider */
.compare {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  background: #eae1dc; aspect-ratio: 4 / 3; user-select: none;
}
.compare-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.compare-clip {
  position: absolute; inset: 0; width: 50%; overflow: hidden;
  border-right: 2px solid rgba(255,255,255,.85);
}
.compare-clip .compare-img { width: auto; min-width: 100%; }
.compare-slider {
  position: absolute; bottom: 12px; left: 5%; width: 90%;
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.4);
}
.compare-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); cursor: ew-resize;
}
.compare-label {
  position: absolute; top: 10px; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff;
}
.label-before { left: 10px; }
.label-after { right: 10px; }
.compare-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 1px 8px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--accent); pointer-events: none; z-index: 3; }
.compare.pending .compare-handle { display: none; }

/* 업로드 직후(pending): 결과 미리보기 숨김 — 원본만 보이고 비교 슬라이더/라벨 숨김 */
.compare.pending .compare-clip,
.compare.pending .compare-slider,
.compare.pending .compare-label { display: none; }

/* Mode selector */
.modes { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modes.locked { opacity: .55; }
.modes.locked .mode-opt { pointer-events: none; cursor: not-allowed; }
.mode-opt {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; background: var(--bg-card-2); transition: border-color .15s;
}
.mode-opt:has(input:checked) { border-color: var(--accent); background: rgba(255,77,77,.10); }
.mode-opt small { color: var(--text-dim); }
.mode-opt input { accent-color: var(--accent-strong); }

/* Strength slider (retouch) */
.strength-row { margin-top: 12px; }
.strength-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.strength-row #strengthVal { color: var(--accent); font-weight: 700; }
.strength-row input[type="range"] { width: 100%; accent-color: var(--accent-strong); }

/* Tier bar */
.tierbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tier-info { font-size: 12px; color: var(--text-dim); flex: 1; min-width: 180px; }
.code-input {
  background: var(--bg-card-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; font-size: 13px; width: 160px;
}
.code-input::placeholder { color: var(--text-dim); }
.code-input:focus { outline: none; border-color: var(--accent); }

/* Buy / premium */
.buy { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card-2); }
.buy-head { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buy-head strong { color: var(--text); }
.ent-status { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.ent-status.ent-active { color: var(--ok); font-weight: 700; }
.buy-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.buy-btn { flex: 1; min-width: 90px; padding: 10px 8px; font-size: 14px; }
.buy-note { font-size: 12px; color: var(--accent); margin: 8px 0 0; min-height: 16px; }

/* Actions / status */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.status { color: var(--text-dim); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.status.error { color: #ba1a1a; }

.engine-badge {
  margin-top: 14px; font-size: 12px; color: var(--warn);
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3);
  padding: 8px 12px; border-radius: 10px;
}

/* Notice */
.notice { font-size: 14px; color: var(--text-dim); }
.notice h2 { font-size: 15px; color: var(--text); margin: 0 0 8px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice li { margin: 4px 0; }

/* Album grid (view page) */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.album-card { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.album-card img { width: 100%; display: block; background: #eae1dc; cursor: zoom-in; }

/* 원본 보기 라이트박스 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.lightbox.hidden { display: none; }
.lightbox-img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); font-size: 20px; line-height: 1; cursor: pointer; }
.album-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.album-cap { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--text-dim); }

/* Share panel (main page) */
.share-panel { margin-top: 14px; background: var(--bg-card-2); border: 1px solid var(--accent); border-radius: 12px; padding: 14px; }
.share-panel .share-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.share-link { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 10px; font-size: 13px; }
.share-note { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; }
.album-count { font-size: 12px; color: var(--accent); }

.footer { text-align: center; color: var(--text-dim); font-size: 12px; padding: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

/* ===== crea-m 화이트 (Stitch) — 홈 ===== */
/* 글래스 상단바 — 흰 배경, 검정 로고/메뉴 */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.07); }
.brand { color: var(--text); }
.nav a { color: var(--text); }
.nav a:hover, .nav a.active { color: var(--accent); font-weight: 700; }

/* 히어로 — 순백, 검정 헤드라인, 코랄 칩 */
.hero-spring { max-width: 760px; margin: 0 auto; padding: 20px 20px 8px; }
.hero-panel {
  position: relative; border-radius: 24px; padding: 30px 26px 28px;
  background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.hero-panel::after {
  content: "✦"; position: absolute; right: -10px; bottom: -24px; font-size: 160px;
  color: rgba(255,77,77,.06); line-height: 1; pointer-events: none;
}
.chip-ai {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); background: rgba(255,77,77,.10); border: 1px solid rgba(255,77,77,.22);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero-panel h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.hero-panel > p { color: var(--text-dim); font-size: 17px; margin: 0; max-width: 92%; }
.hero-panel .hero-badges { margin-top: 14px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 520px) { .hero-panel h1 { font-size: 30px; } .hero-panel > p { font-size: 15px; max-width: 100%; } }

/* 서비스 벤토 그리드 */
.bento { max-width: 760px; margin: 0 auto; padding: 14px 20px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento-card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  cursor: pointer; font-family: inherit; box-shadow: var(--shadow);
  transition: transform .1s ease, border-color .15s, box-shadow .15s;
}
.bento-card:hover { border-color: rgba(165,59,41,.35); box-shadow: var(--shadow-lg); }
.bento-card:active { transform: scale(.98); }
.bento-card.bento-lg { grid-column: 1 / -1; min-height: 132px; justify-content: center; background: #fafafa; }
.bento-ic {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 999px; background: rgba(255,77,77,.10); margin-bottom: 6px;
}
.bento-card.svc-colorize .bento-ic,
.bento-card.svc-retouch .bento-ic { background: #f0f0f0; }
.bento-t { font-size: 17px; font-weight: 700; color: var(--text); }
.bento-card.bento-lg .bento-t { font-size: 22px; }
.bento-s { font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--text-dim); text-transform: uppercase; }

/* 모드별 예시 갤러리 */
.examples { padding-top: 12px; padding-bottom: 24px; }
.examples-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.examples-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; }
.examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ex-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
/* 업로드 미리보기와 동일한 원본↔복원 슬라이더 비교 */
.exc { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #eae1dc; user-select: none; touch-action: none; }
.exc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.exc-before { clip-path: inset(0 50% 0 0); } /* 슬라이더로 좌측 노출폭 조절(JS) */
/* 전/후 경계선(디바이더) + 핸들 */
.exc-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.18); transform: translateX(-1px); pointer-events: none; z-index: 3; }
.exc-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 1px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--accent); }
.exc-slider { position: absolute; bottom: 12px; left: 5%; width: 90%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: rgba(255,255,255,.55); }
.exc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); cursor: ew-resize; }
.exc-slider::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); cursor: ew-resize; }
.ex-tag { position: absolute; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.ex-tag.before { left: 8px; }
.ex-tag.after { right: 8px; background: var(--accent); }
.ex-meta { padding: 12px 14px; }
.ex-meta h3 { margin: 0 0 2px; font-size: 15px; }
.ex-meta p { margin: 0; font-size: 12px; color: var(--text-dim); }

/* ===== 랜딩(메인) ===== */
.lp-hero { max-width: 760px; margin: 0 auto; padding: 24px 20px 16px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.lp-hero-copy h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 10px 0 10px; }
.lp-lead { font-size: 19px; color: var(--text-dim); margin: 0 0 22px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-micro { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.lp-hero-media .exc { border-radius: 24px; box-shadow: var(--shadow-lg); }
@media (max-width: 760px) { .lp-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; } .lp-hero-copy h1 { font-size: 42px; } .lp-lead { font-size: 16px; } }

.lp-h2 { font-size: 24px; font-weight: 700; margin: 0 0 16px; text-align: center; }
.lp-why { max-width: 760px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.lp-why h2 { font-size: 26px; font-weight: 700; margin: 0 0 12px; }
.lp-why p { color: var(--text-dim); font-size: 17px; line-height: 1.75; }
.lp-why strong { color: var(--accent); }

.lp-options { padding-top: 16px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } /* '이런 변화가 일어나요' 갤러리와 동일 크기(2열·큰 이미지) */
.opt-card { display: block; text-decoration: none; color: inherit; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .1s, box-shadow .15s, border-color .15s; }
.opt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(255,77,77,.35); }
.opt-card .exc { border-radius: 0; }
.opt-card h3 { margin: 12px 14px 2px; font-size: 16px; }
.opt-card p { margin: 0 14px 8px; font-size: 13px; color: var(--text-dim); }
.opt-go { display: inline-block; margin: 0 14px 14px; color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.opt-go:hover { text-decoration: underline; }

.lp-how { padding-top: 16px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.how-step { text-align: center; padding: 16px; }
.how-num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,77,77,.12); color: var(--accent); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.how-step h3 { margin: 0 0 4px; font-size: 16px; }
.how-step p { margin: 0; font-size: 13px; color: var(--text-dim); }

.lp-trust { max-width: 760px; margin: 8px auto; padding: 12px 20px; }
.lp-trust p { background: var(--bg-card-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 15px; color: var(--text-dim); margin: 0; text-align: center; }
.lp-trust strong { color: var(--text); }

.lp-pricing { padding-top: 20px; text-align: center; }
.lp-lead-sm { color: var(--text-dim); font-size: 16px; margin: 0 0 16px; }
.lp-lead-sm strong { color: var(--accent); }

.lp-faq { padding-top: 16px; }
.lp-faqmore { text-align: center; margin-top: 12px; }
.lp-faqmore a { color: var(--accent); font-weight: 600; text-decoration: none; }

.lp-final { text-align: center; padding: 48px 20px 56px; background: linear-gradient(180deg, #ffffff 0%, #fff5f3 100%); }
.lp-final h2 { font-size: 26px; font-weight: 700; margin: 0 0 18px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* 상단바 반응형(아이폰 등 좁은 화면): 로고-메뉴 간격 + 태그라인 줄바꿈 방지 */
.topbar { gap: 12px; flex-wrap: wrap; row-gap: 8px; }
.brand { white-space: nowrap; }
.brand-sub { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar { padding: 12px 16px; }
  .brand-sub { display: none; }            /* 모바일에선 태그라인 숨김(줄바꿈 깨짐 방지) */
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
}

/* Legal pages */
.legal h1 { font-size: 24px; }
.legal h2 { font-size: 16px; margin-top: 22px; }
.legal p, .legal li { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.legal .legal-note { color: var(--warn); font-size: 13px; }
.legal a { color: var(--accent); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; max-width: 440px; width: 100%; }
.modal h2 { margin: 0 0 10px; font-size: 18px; }
.modal p { color: var(--text-dim); font-size: 14px; }
.consent-check { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--text); }
.consent-check input { margin-top: 3px; accent-color: var(--accent-strong); }
.consent-check a { color: var(--accent); }

@media (max-width: 520px) {
  .hero h1 { font-size: 23px; }
  .btn { flex: 1; }
}
