:root {
  color-scheme: dark;
  --background: #000000;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --stroke: #2a2a2a;
  --scale-unit: min(1vw, 14px);
  --page-width: 100%;
  --content-width: 76%;
  --logo-width: 20rem;
  font-size: var(--scale-unit);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--scale-unit);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06rem;
  text-underline-offset: 0.3rem;
}

.page-shell {
  display: flex;
  width: var(--page-width);
  max-width: 1400px;
  margin: 0 auto;
  flex-direction: column;
  background: var(--background);
}

.site-header {
  display: flex;
  width: var(--page-width);
  justify-content: center;
  padding: 5rem 0 4rem;
}

.logo-link,
.site-logo {
  display: block;
  width: var(--logo-width);
}

.site-logo {
  height: auto;
}

.home-main {
  width: var(--content-width);
  margin: 0 auto;
  flex: 1;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 2rem;
  left: 0;
  z-index: 10;
  width: max-content;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);
}

.legal-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  font-size: 1.2rem;
}

.legal-navigation a {
  color: var(--text-primary);
  text-decoration: none;
}

.legal-main {
  width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 0 8rem;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.legal-main h1 {
  margin: 0 0 1.5rem;
  font-size: 2.8rem;
  line-height: 1.15;
}

.legal-main h2 {
  margin: 3.5rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.legal-main p,
.legal-main li {
  font-size: 1rem;
}

.legal-main p {
  margin: 0 0 1.25rem;
}

.legal-main ul {
  margin: 0 0 1.5rem;
  padding-left: 2rem;
}

.legal-main li {
  margin-bottom: 0.55rem;
  padding-left: 0.35rem;
}

.legal-main a {
  overflow-wrap: anywhere;
}

.legal-main code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92rem;
}

.legal-table-wrapper {
  width: 100%;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.legal-main th,
.legal-main td {
  padding: 0.8rem;
  border: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}

.legal-main th {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-main td {
  color: var(--text-secondary);
}

@media screen and (max-width: 991px) {
  :root {
    --scale-unit: 2vw;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --scale-unit: 3vw;
  }
}
