/* About, refund policy, terms and privacy, plus the site footer. Loaded after styles.css. */
body.policy { padding-bottom: 0; }

.p-top { border-bottom: 1px solid var(--rule); }
.p-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.p-home { font-family: var(--serif); font-weight: 650; font-size: 20px; text-decoration: none; }
.p-home em { font-style: italic; color: var(--accent); }
.p-back { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.p-back:hover { text-decoration: underline; }

.p-main { padding: 44px 0 70px; }
.p-main .wrap { max-width: 780px; }
.p-main h1 { font-size: clamp(38px, 8vw, 58px); margin-bottom: 10px; }
.p-updated { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

.plain { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--black); border-radius: 14px; padding: 20px 22px; margin: 0 0 34px; }
.plain h2 { font-size: 22px; margin: 0 0 8px; }
.plain p { margin: 0; font-size: 19px; }

.p-sec { counter-increment: sec; padding: 26px 0; border-top: 1px solid var(--rule); }
.p-body { counter-reset: sec; }
.p-sec h2 { font-size: 26px; margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline; }
.p-sec h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.p-sec p, .p-sec li { color: var(--soft); }
.p-sec ul { margin: 0 0 14px; padding-left: 22px; }
.p-sec li { margin-bottom: 8px; }
.p-sec a, .contact-box a { color: var(--ink); font-weight: 700; }

.contact-box { margin-top: 34px; background: var(--char); color: var(--cream); border-radius: 18px; padding: 26px 24px; }
.contact-box h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.contact-box p { color: #D4D4D4; }
.contact-box a:not(.btn) { color: #fff; word-break: break-all; }
.contact-box .btn { margin-top: 8px; }

/* about */
.about-hero { display: grid; gap: 26px; margin-bottom: 30px; }
.about-hero img { width: 100%; border-radius: 18px; box-shadow: 0 26px 50px -30px rgba(0,0,0,.6); }
.about-body p { font-family: var(--serif); font-size: 21px; line-height: 1.62; color: var(--ink); }
.about-body h2 { font-size: 30px; margin: 34px 0 12px; }
.about-body .sign { font-style: italic; font-weight: 600; font-size: 40px; color: var(--ink); }
.about-cta { margin-top: 30px; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; text-align: center; }
.about-cta p { font-family: var(--sans); font-size: 18px; color: var(--soft); }

@media (min-width: 900px) {
  .p-main { padding: 70px 0 100px; }
  .about-hero { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 44px; }
  .contact-box { padding: 32px 36px; }
}

/* ---------- site footer (all pages) ---------- */
.site-foot { background: var(--char); color: #C8C8C8; text-align: center; padding: 56px 20px 40px; margin: 0; font-size: 16px; }
.sf-inner { max-width: 760px; margin: 0 auto; }
.sf-name { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 34px; color: #fff; text-decoration: none; }
.sf-social { display: flex; justify-content: center; gap: 18px; margin: 14px 0 26px; }
.sf-social a { color: #B5B5B5; display: inline-flex; padding: 4px; border-radius: 8px; }
.sf-social a:hover { color: #fff; }
.sf-links { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.sf-links a { display: inline-flex; align-items: center; gap: 7px; color: #E0E0E0; font-size: 17px; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid rgba(224,224,224,.35); }
.sf-links a:hover { color: #fff; border-bottom-color: #fff; }
.sf-links .sf-refund { color: #fff; font-weight: 700; }
.sf-copy { margin: 0 0 10px; font-size: 16px; }
.sf-note { margin: 0 auto; max-width: 52ch; font-size: 15px; line-height: 1.5; color: #9E9E9E; }
@media (max-width: 899px) { body:not(.policy) .site-foot { padding-bottom: calc(40px + var(--bar-h)); } }
@media (min-width: 900px) { body:not(.policy) .site-foot { padding-bottom: 100px; } }

/* Thank-you page: one block shows at a time, chosen by data-state */
.ty { margin: 6px 0 30px; }
.ty > div { display: none; }
.ty[data-state="wait"] .ty-wait, .ty[data-state="ready"] .ty-ready,
.ty[data-state="late"] .ty-late, .ty[data-state="none"] .ty-none { display: block; }
.ty .btn-big { flex-direction: column; gap: 2px; margin: 8px 0 26px; }
.ty .btn-big small { font-size: 14px; font-weight: 400; opacity: .78; letter-spacing: .02em; }
.ty a:not(.btn) { color: var(--ink); font-weight: 700; }
.ty-spin { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid var(--rule); border-top-color: var(--ink); border-radius: 50%; animation: ty-spin .8s linear infinite; }
@keyframes ty-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ty-spin { animation: none; } }
