/* Contact form feedback: mirrors MUI <Snackbar anchorOrigin top/right> + <Alert severity> used on the live site. */
.tecvix-toast {
  position: fixed;
  z-index: 1400;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: flex-start;
  padding: 6px 16px;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0.01071em;
  box-shadow: none;
}
.tecvix-toast[hidden] {
  display: none;
}
@media (min-width: 600px) {
  .tecvix-toast {
    top: 24px;
    left: auto;
    right: 24px;
    min-width: 288px;
  }
}
.tecvix-toast.is-success {
  background-color: rgb(237, 247, 237);
  color: rgb(30, 70, 32);
}
.tecvix-toast.is-error {
  background-color: rgb(253, 237, 237);
  color: rgb(95, 33, 32);
}
.tecvix-toast__icon {
  display: flex;
  margin-right: 12px;
  padding: 7px 0;
  font-size: 18px;
  font-weight: 700;
  opacity: 0.9;
}
.tecvix-toast.is-success .tecvix-toast__icon {
  color: #2e7d32;
}
.tecvix-toast.is-error .tecvix-toast__icon {
  color: #d32f2f;
}
.tecvix-toast__msg {
  padding: 8px 0;
  min-width: 0;
  overflow: auto;
}
.tecvix-toast__close {
  margin-left: auto;
  margin-right: -8px;
  padding: 4px 8px 0 16px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}

/* Legal pages (Terms of Service) */
.legal-hero {
  min-height: 40vh;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(195, 60, 189, 0.28), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, rgba(234, 75, 135, 0.18), transparent 70%),
    #160013;
}
.legal-updated {
  margin-top: 1.25rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbcbcb;
  font-size: 0.875rem;
}
.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  .legal-wrap {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3rem;
    max-width: 1200px;
  }
}
.legal-toc {
  display: none;
}
@media (min-width: 1024px) {
  .legal-toc {
    display: block;
    position: sticky;
    top: 110px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: #23041e;
  }
}
.legal-toc__title {
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-toc ol {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-toc li {
  counter-increment: toc;
}
.legal-toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.35;
  transition: color 0.2s, background-color 0.2s;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #ea4b87;
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover {
  color: #fff;
  background: rgba(234, 75, 135, 0.12);
}
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p,
.legal-body p + .legal-note,
.legal-body .legal-note + p {
  margin-top: 1rem;
}
.legal-body a {
  color: #ea4b87;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover {
  color: #fff;
}
.legal-intro {
  padding: 1.5rem 1.75rem;
  border-left: 4px solid #ea4b87;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(234, 75, 135, 0.14), rgba(195, 60, 189, 0.04));
  color: #fff;
}
.legal-card {
  scroll-margin-top: 110px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: #23041e;
  transition: border-color 0.25s;
}
@media (min-width: 768px) {
  .legal-card {
    padding: 2.25rem 2.5rem;
  }
}
.legal-card:hover,
.legal-card:target {
  border-color: rgba(234, 75, 135, 0.45);
}
.legal-card h2 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .legal-card h2 {
    font-size: 1.6rem;
  }
}
.legal-card h2 span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #c33cbd, #ea4b87);
  color: #fff;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.legal-list li {
  position: relative;
  padding-left: 1.75rem;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c33cbd, #ea4b87);
}
.legal-list--no li::before {
  content: "\00d7";
  top: 0.1em;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  color: #ea4b87;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}
.legal-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .legal-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.legal-chips li {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(234, 75, 135, 0.25);
  border-radius: 0.9rem;
  background: rgba(234, 75, 135, 0.07);
  color: #fff;
  font-size: 0.975rem;
  line-height: 1.45;
}
.legal-note {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(234, 75, 135, 0.3);
  border-radius: 1rem;
  background: rgba(234, 75, 135, 0.08);
  color: #fff;
}
.legal-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(120deg, #4a0b3f, #8a2378 55%, #c33cbd);
}
.legal-contact h3 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
}
.legal-contact p {
  color: rgba(255, 255, 255, 0.85);
}
.legal-contact a:not(.legal-btn) {
  color: #fff;
}
.legal-body .legal-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: #160013;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}
.legal-body .legal-btn:hover {
  color: #160013;
  transform: translateY(-2px);
}
.legal-footer-links {
  margin-top: 0.6rem;
}
.legal-footer-links a {
  color: #cbcbcb;
}
.legal-card h3 {
  margin: 1.5rem 0 0.6rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
}
.legal-card h3 b {
  margin-right: 0.5rem;
  color: #ea4b87;
}
.legal-list strong {
  color: #fff;
  font-weight: 600;
}
