/* Sight Buddy — accessibility-first, TalkBack-friendly legal & product pages */

:root {
  --sb-bg: #ffffff;
  --sb-text: #111111;
  --sb-muted: #444444;
  --sb-link: var(--sb-text);
  --sb-link-visited: var(--sb-text);
  --sb-border: #cccccc;
  --sb-focus: #0047ab;
  --sb-max: 42rem;
  --sb-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--sb-font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--sb-text);
  background: var(--sb-bg);
}

.sb-skip {
  position: absolute;
  left: -10000px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--sb-focus);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}

.sb-skip:focus {
  left: 0;
  outline: 3px solid var(--sb-text);
  outline-offset: 2px;
}

.sb-header {
  border-bottom: 2px solid var(--sb-border);
}

.sb-header__inner {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.sb-header__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.sb-header__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--sb-muted);
}

.sb-nav {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sb-nav li {
  margin: 0.5rem 0;
}

.sb-nav a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 0.25rem;
  color: var(--sb-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-nav a:visited,
.sb-toc a:visited,
.sb-actions a:visited,
.sb-legal a:visited,
.sb-footer a:visited,
.sb-main a:visited {
  color: var(--sb-text);
}

.sb-nav a:focus-visible,
.sb-toc a:focus-visible,
.sb-actions a:focus-visible,
.sb-legal a:focus-visible,
.sb-footer a:focus-visible,
.sb-main a:focus-visible {
  outline: 3px solid var(--sb-focus);
  outline-offset: 2px;
}

.sb-main {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.sb-page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.sb-meta {
  margin: 0 0 1.5rem;
  color: var(--sb-muted);
  font-size: 1rem;
}

.sb-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--sb-border);
  background: transparent;
}

.sb-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.sb-toc ol {
  margin: 0;
  padding-left: 1.5rem;
}

.sb-toc li {
  margin: 0.35rem 0;
}

.sb-toc a {
  color: var(--sb-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-block;
  line-height: 1.5;
  padding: 0.35rem 0;
}

.sb-actions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-actions li {
  margin: 0.75rem 0;
  border-bottom: 1px solid var(--sb-border);
  padding-bottom: 0.75rem;
}

.sb-actions a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sb-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: block;
  min-height: 48px;
  padding: 0.5rem 0;
}

.sb-actions a:focus-visible {
  outline: 3px solid var(--sb-focus);
  outline-offset: 2px;
}

.sb-actions__desc {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--sb-muted);
  margin-top: 0.25rem;
}

/* Legal document content (cleaned Google export) */
.sb-legal h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.sb-legal h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.sb-legal h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.sb-legal p {
  margin: 0 0 1rem;
}

.sb-legal ul,
.sb-legal ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.sb-legal li {
  margin: 0.35rem 0;
}

.sb-main a {
  color: var(--sb-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-legal a {
  color: var(--sb-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.sb-legal a[class] {
  color: var(--sb-text);
}

.sb-legal a:focus-visible {
  outline: 3px solid var(--sb-focus);
  outline-offset: 2px;
}

.sb-steps {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.sb-steps li {
  margin: 0.75rem 0;
}

.sb-footer {
  border-top: 2px solid var(--sb-border);
  margin-top: 2rem;
  padding: 1.25rem;
  font-size: 0.95rem;
  color: var(--sb-muted);
  text-align: center;
}

.sb-footer a {
  color: var(--sb-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Strip Google Docs cruft inside legal embed */
.sb-legal .doc-content {
  max-width: none;
  padding: 0;
}

.sb-legal ul[class],
.sb-legal ol[class] {
  list-style: disc;
}

.sb-legal li.li-bullet-0::before {
  display: none;
}

.sb-legal li.li-bullet-0 {
  margin-left: 0;
  padding-left: 0;
  list-style: inherit;
}

.sb-legal ol[class*="lst-kix"] {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.sb-legal ol[class*="lst-kix"] > li {
  list-style: none;
  margin: 1.25rem 0;
}

.sb-legal ol[class*="lst-kix"] h2 {
  margin-top: 0;
}

.sb-legal [class^="lst-kix"]:not(ol) {
  list-style: disc;
}

.sb-legal p.c0,
.sb-legal p.c1,
.sb-legal p.c2,
.sb-legal p.c3,
.sb-legal p.c8 {
  padding: 0;
}

.sb-legal span.c2,
.sb-legal span.c0,
.sb-legal span.c1,
.sb-legal span.c9 {
  font-size: inherit;
  color: inherit;
}

.sb-legal span.c11,
.sb-legal span.c6,
.sb-legal span.c4,
.sb-legal span.c5 {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.sb-legal h2 .c6 {
  font-size: inherit;
  font-weight: 700;
}

.sb-legal h1 .c11 {
  font-size: inherit;
}
