/*
 * SPA-aligned site footer (Kommai).
 * Typography uses Noir Pro (see --kommai-font-sans in main.css).
 * Page chrome (body, box-sizing) is owned by site-header.css where loaded.
 */

.site-footer {
  width: 100%;
  border-top: 1px solid rgba(194, 201, 214, 0.4);
  border-right-color: rgba(194, 201, 214, 0.4);
  border-bottom-color: rgba(194, 201, 214, 0.4);
  border-left-color: rgba(194, 201, 214, 0.4);
  background-color: rgb(245, 246, 250);
}

@media (min-width: 600px) {
  .site-footer {
    margin-top: 64px;
  }
}

@media (min-width: 900px) {
  .site-footer {
    margin-top: 80px;
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

@media (min-width: 600px) {
  .footer-container {
    padding: 48px 24px;
  }
}

@media (min-width: 900px) {
  .footer-container {
    padding: 64px 24px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 3fr repeat(3, 1fr);
    gap: 48px;
  }
}

.footer-brand {
  grid-column: 1;
}

@media (min-width: 600px) {
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .footer-brand {
    grid-column: 1;
  }
}

.footer-brand .logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-brand svg {
  height: 34px;
  width: auto;
  vertical-align: middle;
}

.beta-badge {
  position: absolute;
  top: -3px;
  right: -8px;
  width: 30px;
  height: 10px;
  background-color: rgb(95, 97, 242);
  border-radius: 80px;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  color: white;
  font-size: 8px;
}

.footer-tagline {
  margin: 0px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--kommai-font-sans);
  color: rgb(71, 83, 107);
  line-height: 1.6;
}

@media (min-width: 600px) {
  .footer-tagline {
    font-size: 15px;
    max-width: 80%;
  }
}

@media (min-width: 900px) {
  .footer-tagline {
    max-width: 90%;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #475259;
}

@media (min-width: 600px) {
  .footer-section h3 {
    font-size: 15px;
  }
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section a {
  color: #8595a6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #475259;
  text-decoration: underline;
}

.footer-contact-block a {
  display: block;
  color: #8595a6;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-contact-block a:hover {
  color: #475259;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 900px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    gap: 16px;
  }
}

.footer-legal-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

@media (min-width: 600px) {
  .footer-legal-row {
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
  }
}

.footer-legal-links {
  margin-bottom: 0px;
  margin-right: 24px;

  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 8px;
}

@media (min-width: 600px) {
  .footer-legal-links {
    margin-bottom: 0;
    margin-right: 24px;
  }
}

.footer-legal-links a {
  margin: 0px;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  font-family: inherit;
  font-optical-sizing: inherit;
  font-size-adjust: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-language-override: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  --Link-underlineColor: hsla(239.18, 84.97%, 66.08%, 0.4);
  color: rgb(71, 83, 107);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease-in-out;
}

.footer-legal-links a:hover {
  color: #475259;
  text-decoration: underline;
}

.footer-dot {
  color: #a2b2c3;
  font-size: 14px;
}

.copyright {
  margin: 0px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--kommai-font-sans);
  line-height: 1.43;
  color: rgb(71, 83, 107);
}

@media (min-width: 600px) {
  .copyright {
    font-size: 13px;
  }
}

@media (max-width: 899px) {
  .copyright {
    margin-top: 8px;
  }
}

.copyright a {
  color: inherit;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

.footer-social-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@media (min-width: 600px) {
  .footer-social-status {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.social-row {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.social-btn {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  outline: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
  flex: 0 0 auto;
  --IconButton-hoverBg: rgba(0, 0, 0, 0.04);
  font-size: 1.125rem;
  box-shadow: none;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0px;
  border: 1px solid rgb(218, 222, 231);
  background-color: rgba(245, 246, 250, 0.3);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.25rem;
  color: rgb(71, 83, 107);
  transition: 0.2s ease-in-out;
  font-weight: 400 !important;
}

.social-btn:hover {
  color: rgb(95, 97, 242);
  background-color: rgba(218, 222, 231, 0.2);
  transform: translateY(-2px);
}

.social-btn svg {
  user-select: none;
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  fill: currentcolor;
  font-size: 1rem;
  transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #8595a6;
  font-size: 14px;
  transition: background-color 0.2s ease;
  min-width: 0;
  max-width: 250px;
}

.status-link:hover {
  background: #f5f7fa;
}

.status-dot {
  flex-shrink: 0;
}
