/*
 * legal.css — ANDP FilmStyles Legal Pages
 * Chat 7: GDPR & Legal
 *
 * Save to: blocksy-child/css/legal.css
 * Enqueued via functions.php (see snippet at bottom of this file)
 */

/* ── Outer wrapper ── */
.andp-legal-wrap {
	min-height: 100vh;
	background: #0f0f0f;
	padding-top: 56px; /* fixed nav height */
}

/* ── Shared container ── */
.andp-legal-wrap .andp-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Page header block ── */
.andp-legal-header {
	border-bottom: 1px solid #1a1a1a;
}

.andp-legal-header .andp-container {
	padding-top: 64px;
	padding-bottom: 48px;
}

/* Gold line + label — matches Support, Lab Notes */
.andp-legal-eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.andp-legal-eyebrow__line {
	display: block;
	width: 32px;
	height: 1px;
	background: #C9922A;
	flex-shrink: 0;
}

.andp-legal-eyebrow__text {
	color: #C9922A;
	font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.4em;
}

/* Page title */
.andp-legal-title {
	color: #ffffff;
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
}

/* Last updated datestamp */
.andp-legal-datestamp {
	color: #555555;
	font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin: 0;
}

/* ── Content area ── */
.andp-legal-content {
	padding: 64px 0 120px;
}

/* Narrow prose column — legal text reads poorly at full width */
.andp-legal-prose {
	max-width: 680px;
}

/* ── Typography within prose ── */

.andp-legal-prose p {
	color: #666666;
	font-size: 14px;
	line-height: 1.85;
	margin: 0 0 20px;
}

/* Lead paragraph — first p after the content starts.
   Also resets Blocksy's default "intro paragraph" styling
   which applies large size, blue color, and heading weight. */
.andp-legal-prose > p:first-child,
.entry-content .andp-legal-prose > p:first-child {
	color: #888888 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.85 !important;
	font-family: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.andp-legal-prose h2 {
	color: #ffffff;
	font-size: 13px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin: 56px 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #1e1e1e;
}

/* First h2 has no extra top margin */
.andp-legal-prose h2:first-child {
	margin-top: 0;
}

.andp-legal-prose h3 {
	color: #aaaaaa;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 32px 0 14px;
}

.andp-legal-prose ul,
.andp-legal-prose ol {
	color: #666666;
	font-size: 14px;
	line-height: 1.85;
	padding-left: 20px;
	margin: 0 0 20px;
}

.andp-legal-prose li {
	margin-bottom: 6px;
}

.andp-legal-prose li strong {
	color: #aaaaaa;
	font-weight: 500;
}

.andp-legal-prose a {
	color: #C9922A;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.andp-legal-prose a:hover {
	border-bottom-color: #C9922A;
}

.andp-legal-prose strong {
	color: #aaaaaa;
	font-weight: 500;
}

/* Inline code — used for cookie names */
.andp-legal-prose code {
	font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	font-size: 11px;
	color: #C9922A;
	background: none;
	padding: 0;
}

/* Section divider — <hr> between major sections */
.andp-legal-prose hr {
	border: none;
	border-top: 1px solid #1a1a1a;
	margin: 48px 0;
}

/* ── Cookie table ── */
.andp-legal-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0 32px;
	font-size: 12px;
}

.andp-legal-prose thead {
	border-bottom: 1px solid #1e1e1e;
}

.andp-legal-prose th {
	text-align: left;
	padding: 10px 14px;
	color: #555555;
	font-weight: 400;
	font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

.andp-legal-prose td {
	padding: 12px 14px;
	color: #555555;
	border-bottom: 1px solid #1a1a1a;
	vertical-align: top;
	line-height: 1.6;
}

.andp-legal-prose tr:last-child td {
	border-bottom: none;
}

/* ── Responsive ── */
@media ( max-width: 640px ) {
	.andp-legal-header .andp-container {
		padding-top: 40px;
		padding-bottom: 32px;
	}

	.andp-legal-content {
		padding: 40px 0 80px;
	}

	/* Stack table on mobile */
	.andp-legal-prose table,
	.andp-legal-prose thead,
	.andp-legal-prose tbody,
	.andp-legal-prose th,
	.andp-legal-prose td,
	.andp-legal-prose tr {
		display: block;
	}

	.andp-legal-prose thead {
		display: none;
	}

	.andp-legal-prose td {
		border-bottom: none;
		padding: 4px 0;
	}

	.andp-legal-prose tr {
		border-bottom: 1px solid #1a1a1a;
		padding: 12px 0;
	}
}

/*
 * ── functions.php addition ─────────────────────────────────────────────
 *
 * Add this block inside andp_enqueue_assets(), after the blog styles block:
 *
 *   // Legal page styles — only on pages using the Legal Page template
 *   if ( is_page_template( 'page-legal.php' ) ) {
 *       wp_enqueue_style(
 *           'andp-legal-style',
 *           get_stylesheet_directory_uri() . '/css/legal.css',
 *           [ 'andp-child-style' ],
 *           filemtime( get_stylesheet_directory() . '/css/legal.css' )
 *       );
 *   }
 *
 * ──────────────────────────────────────────────────────────────────────
 */
