/* Páginas de conteúdo: Sobre, Contato, FAQ, Termos e Privacidade */

.content-page {
	padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.content-page-inner {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.content-page-narrow {
	max-width: 48rem;
}

.content-page .page-header .eyebrow {
	margin-bottom: var(--space-3);
}

.content-page .page-header p {
	font-size: var(--fs-md);
	line-height: 1.65;
}

.content-section + .content-section {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.content-section h2 {
	font-size: var(--fs-xl);
	margin-bottom: var(--space-4);
}

.prose p {
	max-width: 65ch;
	line-height: 1.7;
	color: var(--text-muted);
}

.prose p + p {
	margin-top: var(--space-4);
}

.prose strong {
	color: var(--text);
}

/* ---------- Cartões com ícone ---------- */

.feature-grid {
	display: grid;
	gap: var(--space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.feature {
	padding: var(--space-6);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--space-4);
	border: 1px solid var(--accent-border);
	border-radius: var(--radius-md);
	background: var(--accent-soft);
	color: var(--accent-ink);
}

.feature-icon svg {
	width: 22px;
	height: 22px;
}

.feature h3 {
	font-size: var(--fs-md);
	margin-bottom: var(--space-2);
}

.feature p {
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--text-muted);
}

/* ---------- Lista com marcadores de check ---------- */

.check-list {
	display: grid;
	gap: var(--space-3);
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	color: var(--text-muted);
	line-height: 1.6;
}

.check-list li::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	background: var(--accent-ink);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Contato ---------- */

.contact-list {
	display: grid;
	gap: var(--space-4);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.contact-card {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	height: 100%;
	padding: var(--space-5);
	color: inherit;
	text-decoration: none;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.contact-card:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-md);
}

.contact-card:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.contact-card .feature-icon {
	flex-shrink: 0;
	margin-bottom: 0;
}

.contact-card-text {
	min-width: 0;
}

.contact-card-label {
	display: block;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.contact-card-value {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.contact-list + .content-section {
	margin-top: var(--space-8);
}

/* ---------- FAQ ---------- */

.faq-group + .faq-group {
	margin-top: var(--space-10);
}

.faq-group h2 {
	font-size: var(--fs-lg);
	margin-bottom: var(--space-4);
}

.faq-list {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
}

.faq-item + .faq-item {
	border-top: 1px solid var(--border);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	min-height: var(--tap);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: var(--text-muted);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--dur) var(--ease);
}

.faq-item[open] summary::after {
	transform: rotate(180deg);
}

.faq-item summary:hover {
	background: var(--surface-alt);
}

.faq-item summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.faq-answer {
	padding: 0 var(--space-5) var(--space-5);
	color: var(--text-muted);
	line-height: 1.7;
}

.faq-answer p + p {
	margin-top: var(--space-3);
}

.faq-answer a,
.page-cta a:not(.btn) {
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Termos de uso e política de privacidade ---------- */

.content-page .page-header .legal-meta {
	margin-top: var(--space-3);
	font-size: var(--fs-sm);
	color: var(--text-faint);
}

.content-page .page-header a,
.legal-section a {
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-toc {
	margin-top: var(--space-8);
	padding: var(--space-5) var(--space-6);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface-alt);
}

.legal-toc-title {
	margin-bottom: var(--space-3);
	font-weight: 600;
	color: var(--text);
}

.legal-toc ol {
	padding-left: var(--space-6);
	list-style: decimal;
	color: var(--text-muted);
	line-height: 1.6;
}

.legal-toc li + li {
	margin-top: var(--space-1);
}

.legal-toc a {
	color: var(--text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-toc a:hover {
	color: var(--accent-ink);
}

.legal-section {
	margin-top: clamp(2rem, 5vw, 3rem);
}

.legal-section h2 {
	font-size: var(--fs-xl);
	margin-bottom: var(--space-4);
	/* o cabeçalho é sticky: sem isso, o índice esconde o título embaixo dele */
	scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

.legal-section h3 {
	margin-top: var(--space-6);
	margin-bottom: var(--space-3);
	font-size: var(--fs-md);
}

.legal-section ul,
.legal-section ol {
	max-width: 65ch;
	margin-block: var(--space-4);
	padding-left: var(--space-6);
	color: var(--text-muted);
	line-height: 1.7;
}

.legal-section ul {
	list-style: disc;
}

.legal-section ol {
	list-style: decimal;
}

.legal-section li + li {
	margin-top: var(--space-2);
}

.legal-section li ul {
	margin-block: var(--space-2) 0;
	list-style: circle;
}

.legal-section li strong {
	color: var(--text);
}

.legal-section code {
	font-size: .9em;
	padding: .1em .35em;
	border-radius: 4px;
	background: var(--surface-sunken);
	color: var(--text);
}

.legal-table-wrapper {
	margin-block: var(--space-4);
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.legal-table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	font-size: var(--fs-sm);
	line-height: 1.55;
}

.legal-table th,
.legal-table td {
	padding: var(--space-3) var(--space-4);
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--border);
}

.legal-table th {
	background: var(--surface-alt);
	font-weight: 600;
	color: var(--text);
}

.legal-table td {
	color: var(--text-muted);
}

.legal-table tr:last-child td {
	border-bottom: 0;
}

/* ---------- Chamada no fim da página ---------- */

.page-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding: clamp(1.5rem, 4vw, 2rem);
	border: 1px solid var(--accent-border);
	border-radius: var(--radius-lg);
	background: var(--accent-soft);
}

.page-cta h2 {
	font-size: var(--fs-lg);
}

.page-cta p {
	margin-top: var(--space-1);
	color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
	.faq-item summary::after {
		transition: none;
	}
}
