/**
 * Professional styling for legal / policy pages (Privacy Policy, Terms, etc.).
 *
 * Applies AUTOMATICALLY on legal pages — the theme adds the body class
 * `top10-legal-page` (privacy policy, terms, cookie policy, disclaimer, …).
 * You can also apply it manually to any Elementor section/container by adding
 * the CSS class `top10-legal` (Advanced → CSS Classes).
 *
 * Both selectors are combined with :is() so every rule covers both cases.
 */

/* Content block: readable, centered column. */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) {
	max-width: 820px;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.6;
}

/* Headings */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) :is( h1, h2, h3 ) {
	color: #fff;
	font-weight: 700;
	line-height: 1.25;
	scroll-margin-top: 100px; /* anchor jumps clear the fixed nav */
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 0.5em;
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h2 {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 1em 0 0.6em;
	padding-top: 0.8em;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h3 {
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	margin: 1.8em 0 0.4em;
}
/* First heading sits flush — no divider above it. */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) > :first-child,
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Body copy */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) p {
	margin: 0 0 0.35em;
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) a {
	color: #9b8cff;
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-word;
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) a:hover {
	color: #fff;
}

/* Lists */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) :is( ul, ol ) {
	margin: 0 0 1.15em;
	padding-left: 1.4em;
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) li {
	margin-bottom: 0.5em;
}

/* Dividers & quotes */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) hr {
	border: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
	margin: 1.6em 0;
}
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) blockquote {
	margin: 1.5em 0;
	padding: 0.4em 1.25em;
	border-left: 3px solid rgba(155, 140, 255, 0.6);
	color: rgba(255, 255, 255, 0.85);
}

/* Collapse stray empty paragraphs left over from pasted block markup. */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) p:empty {
	display: none;
}

/* Optional "last updated" line — add class "legal-meta" to a paragraph. */
:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) .legal-meta {
	font-size: 0.85em;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 2.5em;
}

/* ----------------------------------------------------------------------
   Responsive: tablets
   ---------------------------------------------------------------------- */
@media ( max-width: 768px ) {
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) {
		font-size: 15px;
		line-height: 1.65;
	}
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h2 {
		font-size: clamp(1.25rem, 5vw, 1.6rem);
		margin-top: 1.3em;
		padding-top: 0.9em;
	}
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h3 {
		font-size: 1.1rem;
	}
}

/* ----------------------------------------------------------------------
   Responsive: phones
   ---------------------------------------------------------------------- */
@media ( max-width: 480px ) {
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) {
		font-size: 14.5px;
		line-height: 1.6;
		padding-left: 4px;
		padding-right: 4px;
		word-break: break-word;
		overflow-wrap: anywhere;
	}
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h1 {
		font-size: 1.7rem;
	}
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) h2 {
		font-size: 1.35rem;
		margin-top: 1.15em;
	}
	:is( .top10-legal, body.top10-legal-page .elementor-widget-text-editor ) hr {
		margin: 1.2em 0;
	}
}