/* = Fonts
----------------------------------------------------------------------------- */

@font-face {
	font-family: 'Lato';
	src: url('../fonts/lato-regular-webfont.woff2') format('woff2'),
		   url('../fonts/lato-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Lato';
	src: url('../fonts/lato-bold-webfont.woff2') format('woff2'),
			url('../fonts/lato-bold-webfont.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}





/* = General
----------------------------------------------------------------------------- */

html {
	height: 100%;
	font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

body {
	height: 100%;
	font-family: 'Lato', sans-serif;
	font-size: 1rem;
	line-height: 1.25;
	color: #fff;
	background: #000;
}

#legal {
	padding: .5rem;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	color: #585858;
	text-decoration: none;
	font-size: .75rem;
	background: #000;
}

main {
	width: 650px;
	min-height: 377px;
	margin-left: 40px; /* visual correction */
	padding: 2rem 2.5rem 2rem 1px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	color: #383838;
	background: #fff;
	box-sizing: border-box;
}

main:before {
	content: '';
	display: block;
	width: 249px;
	height: 442px;
	position: absolute;
	left: -249px;
	top: 0;
	background: url('../img/cosi.png');
	background-size: cover;
}

main h1 {
	width: 250px;
	height: 115px;
	position: absolute;
	top: -135px;
	left: 50%;
	transform: translateX(-50%);
	margin-left: -40px; /* visual correction */
	display: block;
	text-indent: -9000px;
	background: url('../img/logo.png');
	background-size: cover;
}

main h2 {
	font-size: 2rem;
	text-transform: uppercase;
}

main h3 {
	margin-bottom: 1rem;
	font-size: 1.15rem;
	text-transform: uppercase;
}

main a {
	color: #383838;
}

main p {
	margin-bottom: 1rem;
	text-align: justify;
	hyphens: auto; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto;
}

main ul  {
	margin-top: 2rem;
	display: flex;
	justify-content: space-between;
}

main ul li {
	width: 31.33%;
}

main ul li a {
	padding: .5rem .25rem;
	display: block;
	text-align: center;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	background: #707B87;
	transition: all .25s ease;
}

main ul li a:hover {
	background: #515b67;
}

#legalPage main {
	max-width: 850px;
	width: 100%;
	padding: 2rem;
	margin: 1rem auto;
	position: static;
	transform: none;
}

#legalPage main a {
	color: #383838;
}


/* = Responsive
----------------------------------------------------------------------------- */

@media only screen and (max-width: 890px) {
	
	main {
		position: relative;
		left: 0;
		top: 120px;
		transform: none;
		min-height: 0;
		padding: 1.5rem;
		padding-bottom: 2.5rem;
	}

	main h1 {
		position: relative;
		top: -142px;
		margin-left: 0;
		margin-bottom: -114px;
	}

	main {
		width: 95%;
		margin: 0 auto;
		padding-left: 1.5rem;
	}

	main:before {
		display: none;
	}


}
@media only screen and (max-width: 480px) {
	
	main ul {
		display: block;
	}

	main ul li {
		width: 100%;
		display: block;
		margin-bottom: .5rem;
	}

	#legalPage main h2 {
		font-size: 1.5rem;
	}


}