/* Privacy, Support and the 404: the app's calm side. */

body.no-tabbar { --tabbar-clearance: 0px; }
.no-tabbar .footer { padding-bottom: 40px; }

.shell-read { width: min(720px, calc(100% - clamp(32px, 6vw, 80px))); margin-inline: auto; }

/* Reading progress, where the browser can drive it from scroll alone */
.read-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: linear-gradient(90deg, var(--periwinkle), var(--orange)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-grow linear both; animation-timeline: scroll(root); }
}
@keyframes read-grow { to { transform: scaleX(1); } }

/* ---------- Privacy ---------- */

.legal-head { padding-top: clamp(96px, 14vw, 148px); }
.legal-head h1 { font-size: var(--t-3xl); letter-spacing: -0.03em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: var(--t-sm); color: var(--ink-3); }
.legal-meta strong { font-weight: 600; color: var(--ink-2); }

.legal-article { margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 4vw, 44px); border-radius: var(--r-room); background: var(--card); box-shadow: inset 0 0 0 0.5px var(--card-edge), var(--lift-2); font-size: var(--t-md); line-height: 1.62; color: var(--ink-2); }
.legal-article > :first-child { margin-top: 0; }
.legal-article h2 { margin: 1.9em 0 0.5em; font-size: var(--t-xl); letter-spacing: -0.018em; line-height: 1.16; color: var(--ink); scroll-margin-top: 24px; }
.legal-article h3 { margin: 1.5em 0 0.35em; font-size: var(--t-lg); color: var(--ink); }
.legal-article p { margin: 0 0 1em; }
.legal-article ul, .legal-article ol { display: grid; gap: 0.5em; margin: 0 0 1em; padding-inline-start: 1.2em; list-style: disc; }
.legal-article ol { list-style: decimal; }
.legal-article li::marker { color: var(--periwinkle); }
.legal-article a { color: var(--keyboard-deep); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-article strong { color: var(--ink); font-weight: 600; }
/* A list that is nothing but links is a row of buttons to a finger. */
@media (hover: none), (pointer: coarse) {
  .legal-links { gap: 0; }
  .legal-links a { display: inline-block; padding-block: 12px; }
}

/* ---------- Support ---------- */

.support-head { position: relative; padding-top: clamp(96px, 14vw, 148px); text-align: center; }
/* Beside the heading, or above it where there is no room beside it */
.salu-support { --h: 172px; position: absolute; left: 23px; bottom: -14px; }
@media (max-width: 1179px) {
  .support-head { padding-top: 84px; }
  .salu-support { --h: 112px; position: relative; left: auto; bottom: auto; margin: 0 auto 6px; }
}
.support-head h1 { font-size: var(--t-3xl); letter-spacing: -0.03em; }
.support-head p { margin: 14px auto 0; max-width: 52ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-2); text-wrap: balance; }

.support-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.form-card { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 0.5px var(--card-edge), var(--lift-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field label { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--r-control); background: var(--well); box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink); font: inherit; font-size: 1rem; transition: box-shadow 180ms, background 180ms; appearance: none; -webkit-appearance: none; }
.form-field textarea { resize: vertical; line-height: 1.45; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 2px var(--voice-deep), 0 0 0 4px var(--wash-blue); }
.form-field ::placeholder { color: var(--ink-3); }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-size: 15px; color: var(--icon); pointer-events: none; }
.hp-field { position: absolute; left: -9999px; }
.form-error { padding: 10px 14px; border-radius: var(--r-control); background: #fbecec; color: #b23a3a; font-size: var(--t-sm); font-weight: 550; }
.form-hint { font-size: var(--t-xs); color: var(--ink-3); text-align: center; }
.form-hint strong { font-weight: 600; color: var(--ink-2); }
.form-card .btn { width: 100%; }

.form-success { justify-items: center; text-align: center; padding-block: 28px 44px; }
.salu-success { --h: 112px; margin-bottom: 4px; }
.form-success h2 { font-size: var(--t-xl); }
.form-success p { max-width: 40ch; color: var(--ink-2); }
.form-success .btn { width: auto; }

.support-aside { display: grid; gap: 12px; }
.aside-card { padding: 20px 22px; border-radius: var(--r-card); background: rgb(255 255 255 / 0.76); box-shadow: inset 0 0 0 0.5px var(--card-edge), var(--lift-1); }
.aside-card h2 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.2; }
.aside-card p { margin-top: 6px; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }
.copy-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.copy-row a { font-weight: 600; font-size: var(--t-sm); color: var(--keyboard-deep); overflow-wrap: anywhere; }
.copy-btn { min-height: 36px; padding: 0 14px; border-radius: 11px; font-size: var(--t-sm); }
@media (max-width: 820px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404: a working keyboard, because why not ---------- */

.lost { min-height: 100svh; }
.lost-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh; padding-block: clamp(92px, 12svh, 120px) 24px; text-align: center; }
.lost-head { position: relative; width: 100%; }
/* Beside the heading on a wide screen. js/notfound.js moves it out of the way of a longer
   translation, and this is where it stands for "Page not found." */
.salu-lost { --h: 160px; position: absolute; left: calc(50% - 475px); bottom: -88px; transition: left 460ms var(--spring-soft); }
.lost-ruler { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; pointer-events: none; }
@media (max-width: 1279px) {
  .lost-main { justify-content: flex-start; padding-top: 88px; }
  .salu-lost { --h: 104px; position: relative; left: auto; bottom: auto; margin: 0 auto 4px; }
}
.lost-main h1 { min-height: 1.1em; font-size: clamp(2.25rem, 1.2rem + 5vw, 5rem); letter-spacing: -0.03em; }
.lost-main > p { margin-top: 14px; max-width: 46ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.lost-main .actions { justify-content: center; margin-top: 22px; }
.lost-kb { width: min(620px, 100%); margin-top: clamp(24px, 4svh, 44px); }
html:not(.js) .lost-kb { display: none; }
.lost-kb .kb { box-shadow: 0 2px 6px rgb(var(--shadow-ink) / 0.06), 0 24px 56px rgb(var(--shadow-ink) / 0.14); }
