/* Kiela legal / support pages */
:root {
  --bg: #faf8f5;
  --text: #1d1d1f;
  --text-muted: #5c5c62;
  --accent: #e85d3e;
  --border: #e8e4de;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-nav a:hover {
  color: var(--accent);
}

.legal-nav .brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.legal-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language switch (PT left / EN right) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: none;
  background: transparent;
  padding: 2px 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  flex-shrink: 0;
  line-height: 1;
}
.lang-switch__opt {
  opacity: 0.5;
  min-width: 1.35em;
  text-align: center;
  user-select: none;
}
.lang-switch:not(.is-en) .lang-switch__opt:first-child,
.lang-switch.is-en .lang-switch__opt:last-child {
  opacity: 1;
}
.lang-switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #0a0f18;
  flex-shrink: 0;
  box-sizing: border-box;
}
.lang-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #0a0f18;
  box-sizing: border-box;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-switch.is-en .lang-switch__knob,
.lang-switch[aria-checked="true"] .lang-switch__knob {
  transform: translateX(18px);
}
.lang-switch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch__knob {
    transition: none;
  }
}

.legal-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.legal-page .meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.legal-page .lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.legal-page .legal-footer-url {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #d4502f;
}

.legal-back {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
}

.legal-back:hover {
  background: #d4502f;
  color: #fff !important;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text) !important;
}
