@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --wotget-font: 'Inter', system-ui, -apple-system, sans-serif;
  --wotget-radius-md: 10px;
}

body.wotget-legal-page {
  margin: 0;
  font-family: var(--wotget-font);
  color: var(--wotget-text);
  background: var(--wotget-warm-white);
}

body.wotget-legal-page #page,
body.wotget-legal-page .site-content,
body.wotget-legal-page .ast-container {
  max-width: none;
  padding: 0;
  margin: 0;
}

.wotget-legal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.wotget-legal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 0;
}

.wotget-legal__logo-link {
  display: inline-block;
}

.wotget-legal .wotget-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 12.5rem);
  max-height: 3.5rem;
  object-fit: contain;
}

.wotget-legal__login {
  color: var(--wotget-state);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.wotget-legal__login:hover {
  color: var(--wotget-state-hover);
  text-decoration: underline;
}

.wotget-legal__main {
  flex: 1 1 auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

.wotget-legal__article {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 2rem 1.75rem 2.5rem;
  border: 1px solid var(--wotget-border);
  border-radius: var(--wotget-radius-md);
  background: var(--wotget-white);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.wotget-legal__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--wotget-border);
}

.wotget-legal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: var(--wotget-weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wotget-legal__updated {
  margin: 0.5rem 0 0;
  color: var(--wotget-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.wotget-legal__article > p,
.wotget-legal__section p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.wotget-legal__section {
  margin-top: 2rem;
}

.wotget-legal__heading {
  margin: 0 0 0.85rem;
  font-size: 1.125rem;
  font-weight: var(--wotget-weight-semibold);
  line-height: 1.35;
}

.wotget-legal__subheading {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: var(--wotget-weight-semibold);
}

.wotget-legal__list {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.wotget-legal__list li {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.wotget-legal__owner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.wotget-legal__link {
  color: var(--wotget-state);
  text-decoration: none;
  font-weight: 500;
}

.wotget-legal__link:hover {
  color: var(--wotget-state-hover);
  text-decoration: underline;
}

.wotget-legal__page-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 0.875rem 1rem 1.25rem;
  font-size: 0.75rem;
  color: var(--wotget-text-muted);
}

.wotget-legal__page-footer-links {
  display: inline-flex;
  gap: 1rem;
}

@media (max-width: 767px) {
  .wotget-legal__top {
    padding: 1rem 1rem 0;
  }

  .wotget-legal__main {
    padding: 1rem;
  }

  .wotget-legal__article {
    padding: 1.25rem 1rem 1.75rem;
  }

  .wotget-legal__title {
    font-size: 1.2rem;
  }
}
