/*
Theme Name: Portal 6 Comercial
Theme URI: https://portal6.com.br/
Author: Portal 6
Description: Tema leve para a landing comercial e páginas institucionais do Portal 6.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: portal6-comercial-theme
*/

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-variable.woff2") format("woff2");
}

:root {
	color-scheme: light;
	--p6-theme-ink: #22242c;
	--p6-theme-purple: #5b167e;
	--p6-theme-cream: #f8f6f2;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--p6-theme-cream);
	color: var(--p6-theme-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body.p6-theme--landing,
body.p6-theme--privacy {
	background-color: #25123e;
	background-image:
		radial-gradient(ellipse 70% 40% at 100% 0%, rgb(104 73 166 / 72%), transparent 70%),
		radial-gradient(ellipse 55% 30% at 0% 100%, rgb(26 48 141 / 55%), transparent 72%),
		linear-gradient(180deg, #3b1b5e 0%, #211037 68%, #190b2f 100%);
	color: #fff;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

a {
	color: var(--p6-theme-purple);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #d4a5ea;
	outline-offset: 3px;
}

.p6-theme__skip {
	position: absolute;
	z-index: 100;
	top: -100px;
	left: 16px;
	padding: 10px 14px;
	border-radius: 7px;
	background: #fff;
	color: var(--p6-theme-ink);
	font-weight: 700;
}

.p6-theme__skip:focus {
	top: 12px;
}

.p6-theme__screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.p6-theme__header {
	background: #21152e;
	color: #fff;
}

.p6-theme__header-inner,
.p6-theme__footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(100% - 40px, 1180px);
	margin-inline: auto;
}

.p6-theme__header-inner {
	min-height: 76px;
}

.p6-theme__brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.p6-theme__brand img {
	display: block;
	width: 90px;
	height: auto;
}

.p6-theme__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
}

.p6-theme__nav a {
	color: #fff;
	text-decoration: none;
}

.p6-theme__nav a:hover,
.p6-theme__nav a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.p6-theme__content {
	width: min(100% - 40px, 860px);
	min-height: 60vh;
	margin: 48px auto 64px;
	padding: clamp(24px, 6vw, 60px);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgb(34 36 44 / 5%);
}

.p6-theme__content h1 {
	margin-top: 0;
	font-size: clamp(30px, 6vw, 44px);
	letter-spacing: -0.045em;
	line-height: 1.15;
}

.p6-theme__content h2,
.p6-theme__content h3 {
	line-height: 1.25;
}

.p6-theme__content p,
.p6-theme__content ul,
.p6-theme__content ol {
	max-width: 70ch;
}

.p6-theme__content a {
	text-underline-offset: 3px;
}

.p6-theme__entry + .p6-theme__entry {
	margin-top: 34px;
	padding-top: 34px;
	border-top: 1px solid #dedfe3;
}

.p6-theme__entry-title {
	margin: 0 0 8px;
	font-size: clamp(25px, 5vw, 34px);
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.p6-theme__entry-title a {
	color: inherit;
	text-decoration: none;
}

.p6-theme__entry-title a:hover {
	color: var(--p6-theme-purple);
}

.p6-theme__pagination {
	margin-top: 36px;
}

.p6-theme__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.p6-theme__footer {
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	color: #5d626d;
	font-size: 13px;
}

.p6-theme__footer p {
	margin: 0;
}

.p6-theme__footer a {
	color: #5b167e;
}

.p6-theme--landing .p6-theme__footer,
.p6-theme--privacy .p6-theme__footer {
	border-top-color: rgb(255 255 255 / 20%);
	color: rgb(255 255 255 / 84%);
}

.p6-theme--landing .p6-theme__footer a,
.p6-theme--privacy .p6-theme__footer a {
	color: #fff;
}

.p6-theme__landing {
	min-height: 90vh;
}

.p6-theme__privacy {
	min-height: 100vh;
	padding-block: 32px 80px;
}

.p6-theme__privacy-inner {
	width: min(100% - 40px, 1180px);
	margin-inline: auto;
}

.p6-theme__back {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 6px 16px;
	/* border: 1px solid rgb(255 255 255 / 32%); */
	border-radius: 999px;
	background: rgb(255 255 255 / 8%);
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.p6-theme__back:hover {
	border-color: rgb(255 255 255 / 65%);
	background: rgb(255 255 255 / 16%);
}

.p6-theme__back span {
	font-size: 20px;
	line-height: 1;
}

.p6-theme__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	color: rgb(255 255 255 / 75%);
	font-size: 13px;
}

.p6-theme__breadcrumb a {
	color: #fff;
	text-underline-offset: 3px;
}

.p6-theme__privacy-title {
	margin: 14px 0 32px;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.08;
}

.p6-theme__privacy-layout.has-toc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 256px;
	align-items: start;
	gap: 28px;
}

.p6-theme__privacy-card {
	min-width: 0;
	min-height: 240px;
	padding: 30px;
	border-radius: 20px;
	background: #fff;
	color: var(--p6-theme-ink);
}

.p6-theme__privacy-layout.has-toc .p6-theme__privacy-card {
	grid-column: 1;
	grid-row: 1;
}

.p6-theme__privacy-copy > :first-child {
	margin-top: 0;
}

.p6-theme__privacy-copy > :last-child {
	margin-bottom: 0;
}

.p6-theme__privacy-copy h2,
.p6-theme__privacy-copy h3 {
	margin-top: 1.8em;
	line-height: 1.25;
	scroll-margin-top: 30px;
}

.p6-theme__privacy-copy p,
.p6-theme__privacy-copy li {
	max-width: 76ch;
}

.p6-theme__privacy-copy a {
	text-underline-offset: 3px;
}

.p6-theme__privacy-empty {
	margin: 0;
	color: #62646d;
}

.p6-theme__toc {
	position: sticky;
	top: 24px;
	grid-column: 2;
	grid-row: 1;
	max-height: calc(100vh - 48px);
	padding: 24px;
	overflow: auto;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 16px;
	background: rgb(255 255 255 / 9%);
	color: #fff;
}

.p6-theme__toc h2 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
}

.p6-theme__toc ol {
	display: grid;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p6-theme__toc a {
	display: block;
	padding: 6px 0 6px 10px;
	border-left: 2px solid transparent;
	color: rgb(255 255 255 / 86%);
	font-size: 13px;
	line-height: 1.45;
	text-decoration: none;
}

.p6-theme__toc a:hover,
.p6-theme__toc a:focus-visible {
	border-left-color: #d4a5ea;
	color: #fff;
}

.p6-theme__toc-subitem a {
	padding-left: 20px;
	font-size: 12px;
}

@media (max-width: 900px) {
	.p6-theme__privacy-layout.has-toc {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.p6-theme__toc {
		position: static;
		grid-column: 1;
		grid-row: 1;
		max-height: 300px;
	}

	.p6-theme__privacy-layout.has-toc .p6-theme__privacy-card {
		grid-column: 1;
		grid-row: 2;
	}
}

@media (max-width: 580px) {
	.p6-theme__header-inner,
	.p6-theme__footer-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.p6-theme__header-inner {
		padding-block: 16px;
	}

	.p6-theme__footer-inner {
		gap: 4px;
	}

	.p6-theme__content {
		margin-block: 20px 36px;
		border-radius: 12px;
	}

	.p6-theme__privacy {
		padding-block: 22px 48px;
	}

	.p6-theme__privacy-title {
		margin-bottom: 24px;
	}

	.p6-theme__privacy-card {
		min-height: 180px;
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
