/* =============================================================
   SERVICE REQUEST TERMS — css/service-terms.css
   -------------------------------------------------------------
   Loaded with css/policy-pages.css on
   /terms-and-conditions-for-service-requests/ only.

   A second file rather than just adding the slug to the policy
   enqueue: the other three policy pages carry their own <h1> in
   post_content, so policy-pages.css §0 hides `.entry-header`
   outright. This page's H1 is the template's and is the only one
   on the page — loading policy-pages.css alone would delete it,
   which is an SEO change wearing a stylesheet's clothes.

   The sections come from inc/service-terms.php, which emits the
   same `wows-tc-*` classes. This file does two jobs: put the H1
   back, and win the specificity fights below.
   ============================================================= */


/* -------------------------------------------------------------
   0. BEATING page.php's GENERIC PAGE RULES
   -------------------------------------------------------------
   This page renders through page.php, and style.css §4 styles
   that template globally — a fallback cannot know what lands on
   it. Those rules are MORE specific than policy-pages.css's, so
   without this block the policy layout applies and is then
   silently overruled. Every rule here was found by reading a
   computed value back, not by reading the file. → §CSS-2
   ------------------------------------------------------------- */

/* `.wows-page article` caps the page at 720px, so the 860px the
   cards are drawn for was unreachable — correct layout, 25% too
   narrow. (0,3,0) beats the generic (0,2,0). */
.wows-svcterms .wows-page article,
.wows-svcterms .wows-page .entry-header {
	max-width: 860px;
}

/* `.wows-page .entry-content h2` (0,2,1) beats
   `.wows-tc-section-title` (0,1,0), so titles kept the generic
   48px top margin inside a card with its own padding. */
.wows-svcterms .entry-content .wows-tc-section-title {
	font-family: var(--wows-font-display);
	font-size: var(--wows-fs-lg);
	font-weight: 600;
	letter-spacing: var(--wows-ls-tight);
	color: var(--wows-ink);
	margin: 0;
}

/* Same collision one level down: (0,2,1) over (0,1,1). */
.wows-svcterms .entry-content .wows-tc-quicknav h3 {
	font-family: var(--wows-font-display);
	font-size: var(--wows-fs-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wows-ls-eyebrow);
	color: var(--wows-accent);
	margin: 0 0 var(--wows-sp-2);
}

/* `.wows-page .entry-content ol` / `li` are (0,2,1) and outrank
   policy-pages.css §2's `.wows-tc-quicknav ol` at (0,1,1), so the
   nav inherited the generic margins, line-height and ink colour.
   Restated at (0,3,1). The two-column rule survives — nothing
   generic sets `columns`. */
.wows-svcterms .entry-content .wows-tc-quicknav ol {
	margin: 0;
	padding-left: var(--wows-sp-5);
	font-size: var(--wows-fs-base);
	line-height: 2;
	color: var(--wows-text-faint);
}

.wows-svcterms .entry-content .wows-tc-quicknav ol li {
	margin-bottom: 0;
}

/* Undoes policy-pages.css §0. Scoped to the body class so it can
   only ever apply on this page, whatever else loads that file. */
.wows-svcterms .entry-header {
	display: block;
	max-width: 860px;
	margin: 0 auto;
	padding: var(--wows-section-sm) var(--wows-gutter) 0;
	text-align: center;
}

/* Matches .wows-tc-header h1 in policy-pages.css §1, so the two
   page types share a header rather than resembling one. */
.wows-svcterms .entry-title {
	font-family: var(--wows-font-display);
	font-size: var(--wows-fs-section);
	font-weight: 700;
	line-height: var(--wows-lh-heading);
	letter-spacing: var(--wows-ls-h1);
	color: var(--wows-ink);
	margin: 0;
}

/* Minus .wows-tc-wrap's top padding — the header above has it. */
.wows-svcterms .wows-tc-wrap {
	padding-top: var(--wows-sp-7);
}

/* A row the source never numbered — the closing "Agreement"
   clause. Without this the <ol> prints "13." beside a card headed
   "Agreement", inventing a thirteenth clause. Numbered rows are
   pinned with `value` in wows_service_terms_quicknav(). */
.wows-svcterms .wows-tc-quicknav__item--unnumbered {
	list-style: none;
}

/* Bullet clauses: the source's "• " paragraphs, turned into real
   list items by the transformer. */
.wows-svcterms .wows-tc-section-body ul {
	margin: 0;
	padding-left: var(--wows-sp-5);
	list-style: disc;
}

.wows-svcterms .wows-tc-section-body ul li {
	padding: var(--wows-sp-2) 0;
	font-size: var(--wows-fs-base);
	line-height: var(--wows-lh-body);
	color: var(--wows-text);
}

.wows-svcterms .wows-tc-section-body ul li::marker {
	color: var(--wows-text-faint);
}

.wows-svcterms .wows-tc-section-body > p {
	margin: 0 0 var(--wows-sp-3);
	font-size: var(--wows-fs-base);
	line-height: var(--wows-lh-body);
	color: var(--wows-text);
}

.wows-svcterms .wows-tc-section-body > p:last-child {
	margin-bottom: 0;
}

/* The page's "Last updated" date is post_content's final paragraph, which the
   render-time rebuild files under the unnumbered Agreement section. Matched by
   position because post_content carries no class for it. */
.wows-svcterms #svc-terms-agreement .wows-tc-section-body > p:last-child {
	margin-top: var(--wows-sp-4);
	font-size: var(--wows-fs-2xs);
	color: var(--wows-text-muted);
}

@media (max-width: 680px) {
	.wows-svcterms .entry-header {
		padding-top: var(--wows-sp-8);
	}
}
