/* Utility pages (v2): thank-you + legal (privacy, and terms when added).
   Builds on site.css + home.css + inner.css. */

.ty-ico { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: var(--teal-ghost); color: var(--teal); }
.ty-ico svg { width: 19px; height: 19px; }

/* ── Thank you ── */
.ty-hero { padding: 140px 0 96px; text-align: center; }
.ty-wrap { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.ty-title { margin-top: 20px; }
.ty-sub { margin: 0 auto; max-width: 60ch; }
.ty-sub strong { color: var(--teal-lite); }

.ty-check { position: relative; width: 96px; height: 96px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); box-shadow: 0 20px 40px -12px rgba(27,168,160,.6); }
.ty-check svg { width: 58px; height: 58px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ty-check circle { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: tyDraw .9s .3s var(--ease) forwards; }
.ty-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: tyDraw .6s .9s var(--ease) forwards; }
.ty-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(95,212,204,.7); animation: ripple 3s cubic-bezier(.2,.6,.3,1) 1.2s infinite; opacity: 0; }
.ty-ring + .ty-ring { animation-delay: 2.7s; }
@keyframes tyDraw { to { stroke-dashoffset: 0; } }

.ty-steps { list-style: none; margin: 40px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; text-align: left; }
.ty-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ty-steps li b { color: #fff; font-size: 1rem; letter-spacing: -.01em; }
.ty-steps li small { color: rgba(255,255,255,.62); font-size: .86rem; line-height: 1.55; }
.ty-step-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; font-size: .86rem; font-weight: 800; color: #fff; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); }
.ty-step-dot svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ty-steps li.done .ty-step-dot { background: var(--grad); border-color: transparent; }
.ty-steps li.now { border-color: rgba(95,212,204,.45); background: rgba(27,168,160,.1); }
.ty-steps li.now .ty-step-dot { border-color: var(--teal-lite); color: var(--teal-lite); animation: ping 2s infinite; }

.ty-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 12px; }
.ty-info-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background .2s, border-color .2s; }
a.ty-info-card:hover { background: rgba(255,255,255,.09); border-color: rgba(95,212,204,.4); }
.ty-info-card .ty-ico { background: rgba(95,212,204,.12); color: var(--teal-lite); }
.ty-info-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ty-info-card b { font-size: 1rem; }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.ty-more { padding: 64px 0 96px; }
.ty-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ty-more-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ty-more-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }
.ty-more-card .ty-ico { margin-bottom: 10px; }
.ty-more-card b { font-size: 1.08rem; letter-spacing: -.015em; }
.ty-more-card small { color: var(--muted); font-size: .88rem; }
.ty-more-card .arr { position: absolute; right: 22px; top: 26px; width: 18px; height: 18px; color: var(--blue); transition: transform .25s var(--ease); }
.ty-more-card:hover .arr { transform: translateX(4px); }

/* ── Legal pages ── */
.lg-hero { padding: 140px 0 72px; }
.lg-hero .ab-title { margin-bottom: 14px; }
.lg-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .84rem; color: rgba(255,255,255,.55); }
.lg-date svg { width: 16px; height: 16px; color: var(--teal-lite); }
.lg-body { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.lg-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lg-toc { position: sticky; top: 100px; display: grid; gap: 16px; }
.lg-toc-in { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.lg-toc-in > b { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.lg-toc li { counter-increment: t; }
.lg-toc a { position: relative; display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lg-toc a::before { content: counter(t, decimal-leading-zero); font-size: .72rem; font-weight: 800; color: #A9B8C6; min-width: 20px; padding-top: 2px; }
.lg-toc a:hover { color: var(--text); background: #fff; }
.lg-toc a.active { color: #fff; background: var(--ink); }
.lg-toc a.active::before { color: var(--teal-lite); }
.lg-help { padding: 20px; border-radius: 22px; background: var(--tint); border: 1px solid var(--line); }
.lg-help b { display: block; font-size: 1rem; margin-bottom: 4px; }
.lg-help p { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.lg-help .btn { height: 44px; font-size: .86rem; }

.lg-content { max-width: 760px; }
.lg-content section { scroll-margin-top: 110px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.lg-content section:first-child { padding-top: 0; }
.lg-content section:last-child { border-bottom: 0; }
.lg-content h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.lg-content p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.lg-content p + p { margin-top: 12px; }
.lg-content strong { color: var(--text); font-weight: 600; }
.lg-content ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.lg-content li { position: relative; padding: 12px 16px 12px 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; line-height: 1.6; }
.lg-content li::before { content: ""; position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat, var(--grad); }
.lg-content a { color: var(--blue); font-weight: 600; }
.lg-contact { display: grid; gap: 10px; margin-top: 16px; }
.lg-contact > * { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text) !important; font-weight: 400 !important; transition: border-color .2s, box-shadow .2s; }
.lg-contact a:hover { border-color: transparent; box-shadow: var(--shadow); }
.lg-contact small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-contact b { font-size: .96rem; }

@media (max-width: 900px) {
  .ty-steps, .ty-more-grid { grid-template-columns: 1fr; }
  .lg-grid { grid-template-columns: 1fr; }
  .lg-toc { position: static; }
  .lg-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
}
@media (max-width: 640px) {
  .ty-hero, .lg-hero { padding: 116px 0 72px; }
  .ty-info { grid-template-columns: 1fr; }
  .ty-actions .btn { flex: 1 1 100%; }
  .lg-toc ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-check circle, .ty-check path { animation: none; stroke-dashoffset: 0; }
  .ty-ring, .ty-steps li.now .ty-step-dot { animation: none; }
}
