/* Volty legal pages (Terms of Use, Privacy Policy) */
.lg-doc[hidden] { display: none; }

.lg-hero { padding: 168px 0 56px; background: var(--dark); color: #fff; }
.lg-hero .kicker { color: rgba(255,255,255,.55); }
.lg-hero h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.045em; line-height: 1; margin: 14px 0 20px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; color: rgba(255,255,255,.6); font-size: 15px; }
.lg-meta b { color: #fff; font-weight: 600; }
.lg-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 22px 3px 0; border-radius: 50%; background: rgba(255,255,255,.3); }
.lg-intro { max-width: 760px; }
.lg-intro p { margin: 0 0 10px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; }
.lg-intro .lg-key { color: #fff; font-weight: 600; }
.lg-switch { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.lg-switch a, .lg-switch span { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: rgba(255,255,255,.75); transition: background .2s, color .2s; }
.lg-switch a:hover { color: #fff; background: rgba(255,255,255,.08); }
.lg-switch .is-on { background: #fff; color: var(--ink); }

.lg-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 110px; }

.lg-toc { position: sticky; top: 132px; max-height: calc(100vh - 160px); overflow: auto; padding: 22px 14px 22px 22px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: thin; }
.lg-toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.lg-toc a span { flex: none; min-width: 20px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-toc a:hover { background: var(--bg); color: var(--ink); }
.lg-toc a.is-on { background: var(--ink); color: #fff; }
.lg-toc a.is-on span { color: var(--accent); }
.toc-part { margin: 12px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.lg-body { min-width: 0; padding: 20px 56px 48px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lg-sec { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.lg-sec:last-of-type { border-bottom: 0; }
.lg-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; }
.lg-num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--accent); font-size: 15px; font-weight: 800; }
.lg-sec h3 { margin: 22px 0 8px; font-size: 17px; }
.lg-sec p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.lg-sec .lg-key { color: var(--ink); font-weight: 600; padding: 14px 18px; border-radius: 14px; background: var(--bg); }
.lg-sec ul { margin: 4px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.lg-sec li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.lg-sec li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lg-part { margin: 40px 0 0; padding: 12px 18px; border-radius: 12px; background: var(--dark); color: #fff !important; font-size: 13px !important; font-weight: 700; letter-spacing: .08em; }

.lg-contact { margin: 0; display: grid; gap: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.lg-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.lg-row:first-child { border-top: 0; }
.lg-row dt { color: var(--muted); font-weight: 600; }
.lg-row dd { margin: 0; color: var(--ink); }
.lg-row a { color: var(--ink); font-weight: 600; }
.lg-brand { grid-template-columns: 1fr; background: var(--bg); }

.lg-help { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding: 24px 28px; border-radius: var(--r-md); background: var(--dark); color: #fff; }
.lg-help > div { display: grid; gap: 2px; }
.lg-help b { font-size: 18px; }
.lg-help span { color: rgba(255,255,255,.65); font-size: 15px; }
.lg-help .btn { background: #fff; color: var(--ink); }

@media (max-width: 1024px) {
  .lg-hero { padding-top: 150px; }
  .lg-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .lg-toc { position: static; max-height: none; }
  .lg-toc ol { grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .toc-part { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lg-hero { padding: 128px 0 40px; }
  .lg-meta span + span::before { display: none; }
  .lg-switch { display: flex; }
  .lg-switch a, .lg-switch span { flex: 1; text-align: center; padding: 10px 8px; }
  .lg-toc { padding: 18px 10px 18px 14px; }
  .lg-toc ol { grid-template-columns: 1fr; }
  .lg-body { padding: 4px 20px 24px; border-radius: var(--r-md); }
  .lg-sec { padding: 24px 0; }
  .lg-sec h2 { font-size: 20px; gap: 12px; }
  .lg-num { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .lg-sec p, .lg-sec li { font-size: 15px; }
  .lg-row { grid-template-columns: 1fr; gap: 2px; }
  .lg-help { flex-direction: column; align-items: flex-start; padding: 22px; }
  .lg-help .btn { width: 100%; }
}

/* ---------- pop-up reader (landing page footer) ---------- */
html.lgm-lock { overflow: hidden; }
.lgm { width: min(780px, calc(100% - 32px)); height: min(86vh, 900px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.35); overflow: hidden; }
.lgm[open] { display: flex; flex-direction: column; animation: lgmIn .35s var(--ease); }
.lgm.is-closing { animation: lgmOut .22s ease forwards; }
.lgm::backdrop { background: rgba(13,14,16,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lgmFade .3s ease; }
.lgm.is-closing::backdrop { animation: lgmFade .22s ease reverse forwards; }
@keyframes lgmIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes lgmOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes lgmFade { from { opacity: 0; } }

.lgm-head { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.lgm-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }
.lgm-tabs button { border: 0; padding: 10px 18px; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; transition: background .2s, color .2s; }
.lgm-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.lgm-close { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; transition: background .2s, transform .25s var(--ease); }
.lgm-close:hover { background: var(--card); transform: rotate(90deg); }
.lgm-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lgm-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.lgm-progress i { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }

.lgm-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 40px 24px; outline: none; scrollbar-width: thin; }
.lgm-doc[hidden] { display: none; }
.lgm-title { margin: 22px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.lgm-meta { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.lgm-meta b { color: var(--ink); font-weight: 600; }
.lgm-intro { padding: 18px 20px; border-radius: 16px; background: var(--bg); margin-bottom: 6px; }
.lgm-intro p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.lgm-intro p:last-child { margin-bottom: 0; }
.lgm .lg-sec { padding: 24px 0; scroll-margin-top: 0; }
.lgm .lg-sec h2 { font-size: 19px; margin-bottom: 12px; }
.lgm .lg-num { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.lgm .lg-sec p, .lgm .lg-sec li { font-size: 15px; }

.lgm-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 24px; border-top: 1px solid var(--line); background: #fff; }
.lgm-full { color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.lgm-full:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 760px) {
  .lgm { width: 100%; height: 92vh; height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  @keyframes lgmIn { from { transform: translateY(100%); } }
  @keyframes lgmOut { to { transform: translateY(100%); } }
  .lgm-head { padding: 12px 12px 12px 14px; }
  .lgm-head::before { content: ""; position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .lgm-tabs button { padding: 9px 12px; font-size: 13px; }
  .lgm-body { padding: 4px 20px 20px; }
  .lgm-title { font-size: 26px; }
  .lgm-foot { padding: 12px 14px 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
