/* Shared brand palette for the app and static legal pages. */
:root {
  color-scheme: light;
  --page-bg: #F8FAF9;
  --surface-bg: #FFFFFF;
  --surface-tint: #EDF3F1;
  --surface-hover: #E5EFEB;
  --text: #142F2D;
  --text-muted: #526966;
  --highlight: #075D58;
  --accent: #EE8B38;
  --line: #D9E4DF;
  --strong-bg: #102F2B;
  --on-strong: #FDFDFE;
  --button-bg: #075D58;
  --button-text: #FDFDFE;
  --button-hover: #064C48;
  --accent-text: #162828;
  --shadow-color: #162828;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0B1918;
  --surface-bg: #112321;
  --surface-tint: #172E2A;
  --surface-hover: #203C36;
  --text: #EDF5F0;
  --text-muted: #A8BDB5;
  --highlight: #9BDEC6;
  --accent: #F4A05D;
  --line: #2C443B;
  --strong-bg: #132F28;
  --on-strong: #EDF5F0;
  --button-bg: #A6E2CB;
  --button-text: #102B22;
  --button-hover: #C0F0DB;
}

html, body { background: var(--page-bg); color: var(--text); }
::selection { background: var(--accent); color: var(--accent-text); }

/* Standalone legal pages share the same action and logo treatment. */
.wrap .button { background: var(--button-bg); color: var(--button-text); }
.wrap .button:hover { background: var(--button-hover); }
.wrap .brand img { background: transparent; border-radius: 0; }
.brand-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 22px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.footer-socials a:hover {
  background: var(--surface-hover);
  border-color: var(--highlight);
  color: var(--highlight);
}
.footer-socials a:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 4px;
}
.footer-social-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #FFFFFF;
}
.footer-social-logo img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
/* These official assets are white and need contrasting brand backgrounds. */
.footer-socials [data-platform="x"] .footer-social-logo {
  background: #000000;
}
.footer-socials [data-platform="linkedin"] .footer-social-logo {
  background: #0A66C2;
}
