/* Security page (/security) and Trust (/trust). Builds on styles.css.
   Redesign 2026-10-13 (owner): lead with what a non-technical owner worries about, reassure with concrete facts,
   no HTTPS selling (it's standard), hosting location disclosed plainly but not as the lead. */

/* Hero: a yellow card like the home hero, with an "In short" list that jumps to each answer */
.sx-hero { padding: clamp(16px, 3vw, 32px) 0 0; }
.sx-field { display: grid; gap: 28px; background: var(--field); border-radius: var(--radius-lg); padding: 32px 20px 24px; }
@media (min-width: 640px) { .sx-field { padding: 40px 32px; } }
@media (min-width: 960px) { .sx-field { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; padding: 52px 48px; } }
@media (max-width: 420px) { .sx-field { padding: 28px 16px 20px; border-radius: 20px; } }
.sx-field .eyebrow { color: var(--ink); }
.sx-field h1 { color: var(--brand); font: 900 clamp(32px, 6.4vw, 54px)/1.06 var(--display); letter-spacing: -0.03em; margin: 0 0 16px; max-width: 11em; }
.sx-lede { font-size: var(--fs-lede); line-height: 1.5; margin: 0 0 24px; max-width: 32em; color: var(--ink); }
.sx-short { min-width: 0; background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--pop); padding: 20px 22px; }
.sx-short-title { margin: 0 0 8px; font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sx-short ul { list-style: none; margin: 0; padding: 0; }
.sx-short li { border-top: 1px solid var(--line); }
.sx-short li:first-child { border-top: 0; }
.sx-short a { position: relative; display: block; padding: 10px 24px 10px 30px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); line-height: 1.4; }
.sx-short a:hover { color: var(--primary); }
.sx-short a::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--field); border: 1.5px solid var(--line-strong); }
.sx-short a::after { content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 4px; margin-top: -3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* Sections */
.sx-sec { margin-top: var(--section); scroll-margin-top: 24px; }
.sx-split { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .sx-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; } }

/* Six cards with an icon */
.sx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .sx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-cards li { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sx-cards h3 { margin: 0 0 6px; }
.sx-cards p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }

/* Two panels side by side */
.sx-two { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .sx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-panel { min-width: 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sx-panel h3 { margin: 0 0 8px; }
.sx-panel p { margin: 0 0 14px; color: var(--muted); }
.sx-panel p:last-child { margin: 0; }
.sx-panel .ticks { margin: 0; }
.sx-panel-loud { border: 2px solid var(--line-strong); box-shadow: 4px 4px 0 var(--line-strong); }

/* Undo: a small chat and three facts */
.sx-chat { margin: 0; max-width: 460px; background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line-strong); overflow: hidden; }
.sx-chat-bar { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font: 500 var(--fs-xs)/1.2 var(--mono); color: var(--muted); }
.sx-chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.sx-chat .msg { max-width: 90%; }
.sx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.sx-facts li { min-width: 0; padding: 18px 20px 18px 56px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sx-facts li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--field); border: 1.5px solid var(--line-strong); }
.sx-facts li::after { content: ""; position: absolute; left: 27px; top: 27px; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.sx-facts h3 { font-size: var(--fs-body); margin: 0 0 4px; }
.sx-facts p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }

/* What if: situation on the left, what happens on the right */
.sx-cases { margin: 0; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.sx-cases > div { display: grid; gap: 4px 32px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sx-cases > div:last-child { border-bottom: 0; }
@media (min-width: 760px) { .sx-cases > div { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: baseline; } }
.sx-cases dt { font-weight: 600; color: var(--ink); }
.sx-cases dd { margin: 0; color: var(--muted); }

/* Links to the legal pages */
.sx-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .sx-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-links a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform var(--ease), box-shadow var(--ease); }
.sx-links a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line-strong); }
.sx-links b { font-weight: 600; color: var(--primary); }
.sx-links span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }

/* Questions: heading left, answers right (as on the home page) */
.sx-faq { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .sx-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; } }
.sx-faq h2 { margin: 0 0 var(--s-3); }
.sx-close { margin-top: var(--section); }

/* /trust: compact table of contents */
.sec-toc { margin: 0 0 8px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sec-toc p { margin: 0 0 6px; font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sec-toc ol { margin: 0; padding-left: 20px; columns: 2 14em; column-gap: 24px; }
.sec-toc li { margin: 0 0 4px; break-inside: avoid; }
