@charset "utf-8";

:root {
	--legal-bg: #f5f7fb;
	--legal-surface: #ffffff;
	--legal-text: #1f2937;
	--legal-muted: #4b5563;
	--legal-line: #e5e7eb;
	--legal-accent: #111827;
	--legal-link: #0f766e;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	font-size: 16px;
	background: var(--legal-bg);
	-webkit-text-size-adjust: 100%;
}

body {
	position: relative;
	width: min(calc(100% - 32px), 920px);
	min-height: calc(100vh - 48px);
	margin: 24px auto !important;
	padding: 32px 24px 48px;
	color: var(--legal-text);
	background: var(--legal-surface);
	border: 1px solid var(--legal-line);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	line-height: 1.8;
}

body::before {
	display: block;
	margin: 0 0 8px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	content: "NearVibe";
}

font {
	color: inherit !important;
	font-size: inherit !important;
	font-family: inherit !important;
}

body > p:first-of-type {
	margin: 0 -24px 24px !important;
	padding: 0 24px 24px;
	border-bottom: 1px solid var(--legal-line);
	color: var(--legal-accent);
	font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
	font-weight: 700;
	line-height: 1.2 !important;
	text-align: left !important;
}

p,
li {
	color: var(--legal-muted);
	font-size: 16px;
}

p {
	margin: 0 0 1rem !important;
	line-height: 1.8 !important;
	word-break: break-word;
}

li {
	margin: 0.35rem 0;
	line-height: 1.8;
	word-break: break-word;
}

li > p {
	margin: 0 !important;
}

h2 {
	margin: 2rem 0 0.9rem !important;
	padding-top: 0.25rem;
	color: var(--legal-accent) !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

h3 {
	margin: 1.5rem 0 0.75rem !important;
	color: var(--legal-accent) !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

h4 {
	margin: 1.25rem 0 0.5rem !important;
	color: var(--legal-accent) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
}

ol,
ul {
	margin: 0.5rem 0 1rem 1.25rem;
	padding: 0;
}

a {
	color: var(--legal-link) !important;
	text-decoration: none;
	word-break: break-word;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

strong,
b {
	color: var(--legal-accent);
}

table {
	display: block;
	width: 100%;
	overflow: auto;
	border-collapse: collapse;
}

td,
th {
	padding: 8px 10px;
	border: 1px solid var(--legal-line);
	text-align: left;
	vertical-align: top;
}

@media screen and (max-width: 768px) {
	body {
		width: 100%;
		min-height: 100svh;
		margin: 0 !important;
		padding: 24px 18px 40px;
		border: none;
		border-radius: 0;
		box-shadow: none;
	}

	body > p:first-of-type {
		margin-right: -18px !important;
		margin-left: -18px !important;
		padding-right: 18px;
		padding-left: 18px;
	}

	h2 {
		font-size: 1.12rem !important;
	}
}

@media print {
	html {
		background: #ffffff;
	}

	body {
		width: 100%;
		margin: 0 !important;
		padding: 0;
		border: none;
		box-shadow: none;
	}
}
