/**
 * Policy Document Styling - Inter Typography & Clean Legal Layout
 * Applies ONLY to generated policy documents and shortcode embeds (.wppg-policy-document).
 *
 * @package WP_Policy_Generator
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Main Document Scope */
.wppg-policy-document {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'tnum';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	color: #1e293b;
	line-height: 1.75;
	font-size: 15.5px;
	max-width: 900px;
	margin: 0 auto;
	padding: 10px 0 40px;
}

/* Headings */
.wppg-policy-document h1,
.wppg-policy-document h2,
.wppg-policy-document h3,
.wppg-policy-document h4 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	color: #0f172a;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.3;
	margin-top: 2.2rem;
	margin-bottom: 0.85rem;
}

.wppg-policy-document h1 {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.035em;
	margin-bottom: 1.5rem;
}

.wppg-policy-document h2 {
	font-size: 1.35rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid #e2e8f0;
}

.wppg-policy-document h3 {
	font-size: 1.12rem;
	font-weight: 600;
	margin-top: 1.5rem;
	margin-bottom: 0.6rem;
}

/* Paragraphs & Meta Dates */
.wppg-policy-document p {
	margin-top: 0;
	margin-bottom: 1.25rem;
	color: #334155;
	letter-spacing: -0.011em;
	font-size: 15.5px;
}

.wppg-policy-document .wppg-meta-date {
	font-size: 13.5px;
	color: #64748b;
	margin-bottom: 0.35rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* Lists */
.wppg-policy-document ul,
.wppg-policy-document ol {
	margin-top: 0;
	margin-bottom: 1.4rem;
	padding-left: 1.6rem;
	color: #334155;
}

.wppg-policy-document li {
	margin-bottom: 0.6rem;
	line-height: 1.7;
	letter-spacing: -0.01em;
}

.wppg-policy-document strong {
	font-weight: 600;
	color: #0f172a;
}

/* Links */
.wppg-policy-document a {
	color: #2563eb;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.wppg-policy-document a:hover {
	color: #1d4ed8;
	text-decoration-color: #1d4ed8;
}

/* Dividers */
.wppg-policy-document hr {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 2.2rem 0;
}

/* Tables (e.g. Shipping estimates) */
.wppg-policy-document .wppg-policy-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	font-size: 14px;
	margin: 1.5rem 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wppg-policy-document .wppg-policy-table th {
	background: #f8fafc;
	font-weight: 600;
	color: #1e293b;
	padding: 12px 16px;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	text-align: left;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wppg-policy-document .wppg-policy-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	color: #475569;
	background: #ffffff;
}

.wppg-policy-document .wppg-policy-table tr:last-child td {
	border-bottom: none;
}

.wppg-policy-document .wppg-policy-table th:last-child,
.wppg-policy-document .wppg-policy-table td:last-child {
	border-right: none;
}

/* Legal Disclaimer Box */
.wppg-policy-document .wppg-legal-disclaimer {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #2563eb;
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 2.8rem;
	font-size: 13px;
	color: #64748b;
	line-height: 1.65;
}

.wppg-policy-document .wppg-legal-disclaimer p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
}

.wppg-policy-document .wppg-legal-disclaimer strong {
	color: #334155;
}
