/* FoodSpeed landing — terms, privacy, account deletion, support, 404 */

.page { padding: clamp(116px, 15vh, 160px) 0 clamp(40px, 6vw, 80px); }
.in-app .page { padding-top: 24px; }

.page__head { max-width: 860px; }
.page__head .h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.page__meta { margin-top: 18px; color: var(--ink-muted); font-size: var(--fs-small); }
.page__intro { margin-top: 22px; }
.in-app .page__head .h2 { font-size: 2.2rem; }

.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.toc { position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.toc h2 { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; }
.toc a { display: flex; gap: 10px; padding: 7px 12px; margin-left: -12px; border-radius: 12px; text-decoration: none; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-muted); transition: background-color var(--t-toggle) var(--ease), color var(--t-toggle) var(--ease); }
.toc a::before { content: counter(toc); min-width: 1.4em; font-variant-numeric: tabular-nums; color: #a9aeab; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a[aria-current="true"] { color: var(--ink); background: var(--surface); }
.in-app .toc { display: none; }
.in-app .legal { grid-template-columns: 1fr; margin-top: 28px; }

.prose { max-width: 70ch; counter-reset: sec; }
.prose > section { counter-increment: sec; padding-top: 8px; }
.prose > section + section { margin-top: clamp(36px, 4vw, 52px); }
.prose h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; scroll-margin-top: 100px; display: flex; gap: 14px; align-items: baseline; }
.prose h2::before { content: counter(sec); font-size: 0.6em; font-weight: 500; color: var(--primary); background: var(--primary-soft); min-width: 2em; height: 2em; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-0.15em); }
.prose h3 { margin-top: 26px; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.68; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 500; }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: #fff; }
.prose .note { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); font-size: 1rem; }

.short { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); max-width: 860px; }
.short h2 { font-size: 1.15rem; font-weight: 500; }
.short ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.short li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.short li .i { color: var(--primary); margin-top: 2px; }

/* Lists of data (privacy) */
.datalist { margin-top: 16px; display: grid; gap: 8px; }
.datalist div { display: grid; grid-template-columns: minmax(150px, 0.38fr) 1fr; gap: 6px 20px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); }
.datalist dt { font-weight: 500; }
.datalist dd { margin: 0; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 640px) { .datalist div { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc a { margin-left: 0; padding: 6px 0; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Delete account */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; padding: 0; counter-reset: st; }
.steps-row li { counter-increment: st; list-style: none; padding: 22px; border-radius: var(--r-xl); background: var(--surface); }
.steps-row li::before { content: counter(st); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 500; margin-bottom: 14px; }
.steps-row b { display: block; font-weight: 500; font-size: 1.1rem; }
.steps-row span { display: block; margin-top: 6px; color: var(--ink-muted); line-height: 1.5; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.split2 > div { padding: 24px; border-radius: var(--r-xl); background: var(--surface); }
.split2 h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; }
.split2 .gone h3 .i { color: var(--danger); }
.split2 .kept h3 .i { color: var(--primary); }
.split2 ul { padding-left: 1.2em; }
.request { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--primary-soft); }
.request p { margin: 0; max-width: 52ch; }
@media (max-width: 760px) { .steps-row, .split2 { grid-template-columns: 1fr; } }

/* Support */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.contact__card { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-2xl); background: var(--surface); }
.contact__card--forest { background: var(--forest); color: #fff; }
.contact__card.contact__card--forest p { color: rgba(255, 255, 255, 0.82); }
.contact__card h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; }
.contact__card p { margin-top: 10px; color: var(--ink-muted); }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 500; letter-spacing: -0.02em; color: var(--primary); text-decoration: none; word-break: break-all; }
.contact__mail:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact__card .btn { margin-top: 22px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.qa { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 24px 6vw; align-items: start; }
.qa > .h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); max-width: 8ch; position: sticky; top: 110px; }
:root { interpolate-size: allow-keywords; }
.qa details { border-radius: var(--r-lg); }
.qa details + details { margin-top: 6px; }
.qa details[open] { background: var(--surface); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-size: 1.1rem; font-weight: 500; border-radius: var(--r-lg); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--surface); }
.qa summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23111613' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform var(--t-change) var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); background-color: var(--primary-soft); }
.qa details > div { padding: 0 22px 22px; color: var(--ink-muted); line-height: 1.65; max-width: 64ch; }
.qa details > div p + p { margin-top: 10px; }
.qa details > div a { color: var(--primary); }
.qa details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-change) var(--ease), content-visibility var(--t-change) allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
@media (max-width: 860px) { .qa { grid-template-columns: 1fr; } .qa > .h2 { position: static; } }

/* 404 and Get */
.notfound { min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 120px; padding-bottom: 40px; }
.notfound img { width: 140px; margin-bottom: 18px; animation: wobble 4s ease-in-out infinite; }
.notfound .notfound__icon { width: 104px; border-radius: 24px; animation: none; }
.notfound .lead { margin: 16px auto 0; }
.notfound__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.notfound .stores { justify-content: center; margin-top: 28px; }
.notfound__back { margin-top: 24px; }
.notfound__back a { color: var(--primary); }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .notfound img { animation: none; } }
