/* In-world Diru Bank coming soon page.
   Source Sans 3 is self-hosted (latin, weights 400, 600, 700).
   Colours are sampled from the Diru Bank logo: navy #01004e, blue #0000fc.
   Narrow screens stack logo, card, then footer. From 768px the mark sits
   on the left and the bilingual line sits in a card. */

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
	--navy: #01004e;
	--blue: #0000fc;
	--text: #3c3c6b;
	--heading: #01004e;
	--accent: #0000fc;
	--border: #d5daf0;
	--paper: #fff;
	--ground: #e7ebff;
}

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

html,
body {
	margin: 0;
}

body {
	min-height: 100vh;
	color: var(--navy);
	font-family: "Source Sans 3", sans-serif;
	background-color: var(--ground);
	background-image:
		radial-gradient(ellipse 70% 55% at 8% 0%, rgba(0, 0, 252, 0.16), transparent 60%),
		radial-gradient(ellipse 50% 45% at 100% 100%, rgba(1, 0, 78, 0.1), transparent 55%);
}

body::before {
	content: "";
	display: block;
	height: 5px;
	background: linear-gradient(90deg, var(--blue) 0 4.5rem, var(--navy) 4.5rem);
}

img {
	border: 0;
	height: auto;
	max-width: 100%;
}

a {
	color: var(--navy);
}

a:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

.shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 1.35rem;
	align-items: start;
	align-content: start;
	width: 100%;
	min-height: calc(100vh - 5px);
	max-width: 64rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 2rem;
}

.brand {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

.logo {
	margin: 0;
	line-height: 0;
}

.logo a {
	display: inline-block;
	line-height: 0;
}

.logo img {
	display: block;
	width: min(100%, 16.5rem);
	max-width: 100%;
	height: auto;
}

.card {
	margin: 0;
	width: 100%;
	min-width: 0;
	background: var(--paper);
	border: 1px solid rgba(1, 0, 78, 0.08);
	border-left: 6px solid var(--blue);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(1, 0, 78, 0.07);
	padding: 1.35rem 1.15rem 1.2rem;
}

.copy {
	margin: 0;
}

.rule {
	width: 2.75rem;
	height: 3px;
	margin: 1.15rem 0 1.2rem;
	border: 0;
	background: var(--blue);
}

.card h1,
.card h2,
.card .lead {
	margin: 0;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

.card h1,
.card h2 {
	font-weight: 700;
	line-height: 1.15;
}

.card h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--navy);
}

.card h2 {
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 600;
	color: var(--blue);
}

.card .lead {
	margin-top: 0.4rem;
	font-weight: 400;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.45;
	letter-spacing: 0;
	color: var(--text);
}

.home-link {
	display: inline-block;
	margin-top: 0.85rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Game line and legal links. Type scale matches the other in-world footers
   (13px game line, 6px separators). Colours stay on this page's ground. */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 8px 16px;
	z-index: 10000;
}

.skip-link:focus {
	left: 8px;
}

.site-footer,
.copyright-bar {
	text-align: left;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
	color: var(--text);
}

.site-footer {
	grid-column: 1 / -1;
	grid-row: auto;
	width: 100%;
	min-width: 0;
	max-width: none;
	margin: 0;
}

.footer-game,
.footer-legal,
.copyright-bar,
.legal-body {
	overflow-wrap: break-word;
}

.footer-game {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
}

.footer-legal {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 400;
}

.footer-legal .sep,
.copyright-bar .sep {
	margin: 0 6px;
}

.footer-game a,
.footer-legal a {
	color: var(--text);
}

.footer-game a:hover,
.footer-legal a:hover {
	color: var(--navy);
}

/* Legal pages use the shared layout (header, title, article, footer). */
.page-wrapper {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 5px);
	background: transparent;
	color: var(--text);
}

.site-header {
	background: transparent;
}

.container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

.header-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 15px 8px;
	text-align: left;
}

.ce-logo {
	display: inline-block;
	line-height: 0;
}

.ce-logo img {
	width: min(17rem, 72vw);
	height: auto;
}

.breadcrumb-section {
	max-width: 760px;
	margin: 0 auto;
	padding: 12px 15px 4px;
	text-align: left;
}

.breadcrumb-title h1 {
	margin: 0;
	font-weight: 700;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.page-wrapper .legal-page {
	flex: 1;
	padding: 8px 0 28px;
	background: transparent;
}

.page-wrapper .legal-body {
	background: var(--paper);
	border-radius: 18px;
	border-left: 6px solid var(--blue);
	box-shadow: 0 18px 40px rgba(1, 0, 78, 0.07);
	padding: 1.5rem 1.6rem 0.5rem;
}

.legal-body h2 {
	color: var(--navy);
	font-weight: 700;
}

.main-footer {
	background: transparent;
	color: var(--text);
}

.copyright-bar {
	max-width: 760px;
	margin: 0 auto;
	padding: 8px 15px 32px;
	border-top: 0;
}

@media (max-width: 767px) {
	.page-wrapper .legal-body {
		padding: 1.15rem 1rem 0.35rem;
	}
}

@media (min-width: 768px) {
	.shell {
		grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
		column-gap: 3.5rem;
		row-gap: 1.75rem;
		align-items: center;
		align-content: center;
		padding: 3rem clamp(1.25rem, 5vw, 3.5rem);
	}

	.logo img {
		width: 100%;
		max-width: 20rem;
	}

	.card {
		padding: 1.85rem 2rem 1.65rem;
	}

	.site-footer {
		grid-column: 2;
		grid-row: 2;
		width: auto;
		max-width: 36rem;
	}
}
