/* Standalone legal pages (/privacy, /terms). Plain HTML, no JavaScript. */
*, *::before, *::after { box-sizing: border-box; }
html { background: #FAF8F3; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #FAF8F3; color: #1D2620; font-family: Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #21372B; text-decoration: none; transition: color .18s ease, background-color .18s ease; }
a:hover { color: #4F8F3F; }
:focus-visible { outline: 3px solid #4F8F3F; outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.bar { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 243, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: #1D2620; }
.brand span { font: 800 26px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; }
.bar nav { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #EFECE3; }
.bar nav a { height: 36px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; font: 800 14px Nunito, sans-serif; color: #4A524B; }
.bar nav a[aria-current="page"] { background: #fff; color: #1D2620; }
.bar nav a:hover { color: #1D2620; }

main { flex: 1; width: 100%; padding-top: clamp(24px, 5vw, 56px); padding-bottom: 72px; }
h1 { margin: 0; font: 800 clamp(40px, 7vw, 64px)/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.035em; }
.updated { margin-top: 12px; font: 600 12px 'JetBrains Mono', monospace; letter-spacing: .04em; color: #6D736B; }
.body { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.body section { padding: 22px 24px; border-radius: 24px; background: #EFECE3; }
.body h2 { margin: 0 0 6px; font: 800 19px/1.3 Nunito, sans-serif; color: #1D2620; }
.body p { margin: 0; font: 600 16px/1.6 Nunito, sans-serif; color: #33463A; }
.body p a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.see-also { margin: 32px 0 0; font: 700 15px Nunito, sans-serif; color: #4A524B; }
.see-also a { font-weight: 800; }

footer { background: #21372B; color: #8FA294; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 28px; font: 600 13px Nunito, sans-serif; }
footer a { color: #F1F3EE; font-weight: 700; }
footer a:hover { color: #C8EB7A; }

/* Back to home */
.bar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.home-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 19px; background: #21372B; color: #fff; font: 800 14px Nunito, sans-serif; white-space: nowrap; }
.home-btn:hover { background: #2E4A3A; color: #fff; }
.home-btn.big { height: 52px; padding: 0 24px; border-radius: 26px; font-size: 16px; }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.end-actions .see-also { margin: 0; }
@media (max-width: 520px) {
  .bar-left .brand span { display: none; }
  .bar nav a { padding: 0 10px; }
  .end-actions .home-btn.big { width: 100%; justify-content: center; }
}

/* Long-form policy content */
.lede { margin: 20px 0 0; font: 600 17px/1.6 Nunito, sans-serif; color: #33463A; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.toc a { padding: 6px 12px; border-radius: 14px; background: #EFECE3; font: 700 13px Nunito, sans-serif; color: #33463A; }
.toc a:hover { background: #E6E2D6; color: #1D2620; }
.body section { scroll-margin-top: 80px; }
.body h3 { margin: 16px 0 6px; font: 800 15px Nunito, sans-serif; color: #1D2620; }
.body ul, .body ol { margin: 6px 0 0; padding-left: 20px; font: 600 16px/1.6 Nunito, sans-serif; color: #33463A; }
.body li + li { margin-top: 6px; }
.body p + p, .body ul + p, .body ol + p { margin-top: 10px; }
.body strong { color: #1D2620; font-weight: 800; }
.body section a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin-top: 10px; border-radius: 16px; background: #FAF8F3; }
table { width: 100%; border-collapse: collapse; font: 600 14px/1.45 Nunito, sans-serif; color: #33463A; }
th { text-align: left; padding: 10px 12px; font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: #6D736B; }
td { padding: 10px 12px; border-top: 1px solid #E2DFD5; vertical-align: top; }
td:first-child { font-weight: 800; color: #1D2620; white-space: nowrap; }

/* Account page */
.card { margin-top: 28px; padding: clamp(20px, 4vw, 28px); border-radius: 28px; background: #EFECE3; }
.card h2 { margin: 0 0 6px; font: 800 22px 'Bricolage Grotesque', sans-serif; letter-spacing: -.01em; }
.card p { margin: 0; font: 600 15px/1.55 Nunito, sans-serif; color: #4A524B; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 7px; font: 800 13px Nunito, sans-serif; }
.form input { height: 50px; border: none; border-radius: 16px; background: #FAF8F3; padding: 0 16px; font: 700 15px Nunito, sans-serif; color: #1D2620; outline: none; transition: box-shadow .18s ease; }
.form input:focus { box-shadow: inset 0 0 0 2px #21372B; }
.btn { height: 52px; border: none; border-radius: 26px; background: #21372B; color: #fff; font: 800 16px Nunito, sans-serif; cursor: pointer; transition: background-color .18s ease, opacity .18s ease; }
.btn:hover { background: #2E4A3A; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; color: #21372B; box-shadow: inset 0 0 0 2px #21372B; }
.btn.ghost:hover { background: rgba(33, 55, 43, .06); }
.btn.danger { background: #C2412F; }
.btn.danger:hover { background: #A93525; }
.link-btn { align-self: flex-start; border: none; background: none; padding: 0; font: 800 14px Nunito, sans-serif; color: #21372B; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.msg { padding: 12px 14px; border-radius: 16px; font: 700 14px/1.45 Nunito, sans-serif; animation: msgIn .3s ease; }
.msg.err { background: #FBE3DE; color: #8E2A1C; }
.msg.ok { background: #C8EB7A; color: #17261D; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.who strong { font: 800 17px Nunito, sans-serif; word-break: break-all; }
.danger-zone { background: #F6E4DF; }
.danger-zone ul { margin: 10px 0 0; padding-left: 20px; font: 600 15px/1.55 Nunito, sans-serif; color: #4A524B; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }
