/* ScanWow shared subpage layout: header, footer, page background, legal page type.
   Generated into assets/site.css by kit/build/site_layout.py. Namespaced (swh-, swf-, sw-)
   so it never collides with each page's own inline styles. Matches the home page tokens. */
:root {
  --bg-dark: #070D1A;
  --sw-bg: #070D1A;
  --sw-accent: #00E5FF;
  --sw-text: #F4F7FB;
  --sw-text-2: rgba(226, 234, 246, 0.74);
  --sw-text-3: rgba(226, 234, 246, 0.65);
  --sw-line: rgba(255, 255, 255, 0.08);
  --sw-line-strong: rgba(255, 255, 255, 0.14);
  --sw-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --sw-gutter: 20px;
  --sw-container: 1160px;
  --sw-header-h: 60px;
}
@media (min-width: 640px) { :root { --sw-gutter: 24px; } }

html, body { background: var(--sw-bg); overflow-x: hidden; overflow-x: clip; }
body { font-family: var(--sw-font); }

.swh, .swh *, .swf, .swf * { box-sizing: border-box; }
.swh a, .swf a { text-decoration: none; opacity: 1; }
.swh a:hover, .swf a:hover { text-decoration: none; opacity: 1; }
.sw-container {
  width: 100%;
  max-width: calc(var(--sw-container) + 2 * var(--sw-gutter));
  margin: 0 auto;
  padding-left: max(var(--sw-gutter), env(safe-area-inset-left));
  padding-right: max(var(--sw-gutter), env(safe-area-inset-right));
}

/* Header */
.swh {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: env(safe-area-inset-top) 0 0;
  font-family: var(--sw-font);
  background: rgba(7, 13, 26, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--sw-line);
}
.swh-nav { height: var(--sw-header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.swh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--sw-text); }
.swh-logo-icon, .swf-logo-icon { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.swh-logo-icon svg, .swf-logo-icon svg { display: block; width: 32px; height: 32px; }
.sw-wordmark { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sw-wordmark .w1 { color: var(--sw-text); }
.sw-wordmark .w2 { color: var(--sw-accent); }
.swh-links { display: flex; align-items: center; gap: 4px; }
.swh-link {
  display: none;
  color: var(--sw-text-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.swh-link:hover, .swh-link[aria-current="page"] { color: var(--sw-text); background: rgba(255, 255, 255, 0.05); }
.swh-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid var(--sw-line-strong);
  color: var(--sw-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.swh-cta::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 48px; transform: translateY(-50%); }
/* 44px+ tap targets with no layout change: invisible hit areas */
.swh-logo, .swh-link { position: relative; }
.swh-logo::after, .swh-link::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 48px; transform: translateY(-50%); }
.swh-cta:hover { border-color: rgba(0, 229, 255, 0.28); background: rgba(0, 229, 255, 0.12); color: var(--sw-text); }
@media (min-width: 960px) { .swh-link { display: inline-block; } }

/* Footer */
.swf {
  margin: 0;
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom));
  font-family: var(--sw-font);
  color: var(--sw-text);
  background: var(--sw-bg);
  border-top: 1px solid var(--sw-line);
  text-align: left;
}
.swf p, .swf h4 { margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; font-weight: inherit; }
.swf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 48px; }
.swf-brand { grid-column: 1 / -1; }
.swf-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--sw-text); }
.swf .swf-tagline { font-size: 15px; color: var(--sw-text-3); line-height: 1.6; max-width: 30ch; }
.swf-badge { display: inline-block; margin-top: 16px; border-radius: 10px; }
.swf-badge img { display: block; width: 135px; height: 45px; }
.swf .swf-heading { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sw-text-3); margin-bottom: 4px !important; line-height: 1.4; }
.swf-links { display: flex; flex-direction: column; }
.swf-link { display: flex; align-items: center; min-height: 44px; color: var(--sw-text-2); font-size: 15px; line-height: 1.3; transition: color 0.2s; }
.swf-link:hover { color: var(--sw-text); }
.swf-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--sw-line); padding-top: 24px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.swf .swf-made { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--sw-text-2); }
.swf-made svg { display: block; border-radius: 2px; }
@media (min-width: 640px) { .swf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .swf { padding-top: 96px; } .swf-grid { grid-template-columns: 1.6fr repeat(5, 1fr); } .swf-brand { grid-column: auto; } }

/* Legal pages (terms, privacy) */
body.sw-legal .content h1, body.sw-legal .content h2, body.sw-legal .content h3 { line-height: 1.2; }
body.sw-legal .content li { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
body.sw-legal .legal-box { font-size: 15px; line-height: 1.6; letter-spacing: 0.02em; text-transform: uppercase; }
body.sw-legal .content p a, body.sw-legal .content li a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 12px 0;
}
body.sw-legal .content .updated { margin-bottom: 24px; }
.sw-toc { margin: 0 0 40px; padding: 16px 20px; border: 1px solid var(--sw-line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); font-family: var(--sw-font); }
.sw-toc { padding: 0 20px; }
.sw-toc summary.sw-toc-title {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
  color: var(--sw-text-2); cursor: pointer; list-style: none;
}
.sw-toc summary.sw-toc-title::-webkit-details-marker { display: none; }
.sw-toc summary.sw-toc-title::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--sw-accent); border-bottom: 2px solid var(--sw-accent); transform: rotate(45deg); transition: transform 0.2s; }
.sw-toc details[open] summary.sw-toc-title::after { transform: rotate(-135deg); }
.sw-toc details[open] { padding-bottom: 12px; }
body.sw-legal .content .sw-toc ol { list-style: none; margin: 0; padding: 0; columns: 1; }
body.sw-legal .content .sw-toc li { margin: 0; font-size: 15px; line-height: 1.3; }
body.sw-legal .content .sw-toc li a { display: flex; align-items: center; min-height: 44px; padding: 0; color: var(--sw-text-2); text-decoration: none; }
body.sw-legal .content .sw-toc li a:hover { color: var(--sw-accent); }
@media (min-width: 640px) { body.sw-legal .content .sw-toc ol { columns: 2; column-gap: 24px; } body.sw-legal .content .sw-toc li { break-inside: avoid; } }
