/* Shared styles for DocAgenda legal / support pages */

@font-face {
  font-family: 'Geist';
  src: url('../../assets/brand/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../../assets/brand/Geist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../../assets/brand/Geist-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface-dark: oklch(12% 0.02 250);
  --text-main: oklch(98% 0.01 250);
  --text-muted: oklch(70% 0.02 250);
  --brand-link: oklch(75% 0.12 250);
}

body {
  font-family: "Geist", sans-serif;
  background-color: var(--surface-dark);
  color: var(--text-main);
  margin: 0;
  min-height: 100vh;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-nav a:hover {
  color: #fff;
}

.legal-nav .brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.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: rgba(255, 255, 255, 0.85);
  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 rgba(255, 255, 255, 0.7);
  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-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 h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: rgba(255, 255, 255, 0.75);
  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(--brand-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #fff;
}

.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 .legal-note {
  margin-top: 2.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.legal-back {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: #fff;
  color: #000 !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
}

.legal-back:hover {
  opacity: 0.9;
  color: #000 !important;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
