/* Legal pages (Figma "Handelsbetingelser" 220:15951, "Privatliv" 220:16166).
   02 Hero: the page hero on surface/accent with no intro; the heading keeps to the heading column
   (1280 − 80 gap − 440 intro column = 760), so long titles wrap as designed.
   03 Body: a 720 prose column for the client's text. Until it arrives, a Label/Meta note in
   text/secondary stands in its place, full container width. */

.axn-legal-hero.axn-page-hero {
	background: var(--surface-accent);
}

.axn-legal-hero .axn-page-hero__cols > :first-child {
	max-width: 760px;
}

.axn-legal .axn-prose:has(> .axn-legal__pending:only-child) {
	max-width: none;
}

.axn-prose > .axn-legal__pending {
	margin: 0;
	color: var(--text-secondary);
}

/* The design keeps the (empty) 106px intro column, so a one-line title still gets the full
   hero height (336 at 1440). */
@media (min-width: 768px) {
	.axn-legal-hero .axn-page-hero__cols {
		min-height: 106px;
	}
}

/* Workaround: elementor.css resets unclassed links in .axn-wrap to color: inherit, so the
   breadcrumb link would lose text/link. */
.elementor-page .axn-legal-hero .axn-breadcrumb a:not([class]) {
	color: var(--text-link);
	text-decoration: underline;
}

/* Body copy. Elementor's `.elementor a { text-decoration: none }` ties with `.axn-prose a`;
   restore the underlined inline links here. */
.axn-legal .axn-prose a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.axn-legal .axn-prose a:not(.wp-block-button__link):hover {
	text-decoration-color: var(--accent-rule);
	text-decoration-thickness: 2px;
}

.axn-prose > .axn-legal__pending:not(:last-child) {
	margin-bottom: var(--space-20);
}

/* Download button for the terms PDF. */
.axn-legal .axn-prose > .wp-block-buttons {
	margin: var(--space-32) 0;
}

/* .axn-prose a would underline and recolour the button label; long labels may wrap on mobile. */
.axn-legal .axn-prose .wp-block-button__link {
	max-width: 100%;
	color: var(--text-on-cta);
	text-decoration: none;
	white-space: normal;
	text-align: left;
}
