/* R-039: Terms of Service page-local styles. Shares tokens/header/footer/button/torn-edge
   system from /v6/styles.css (read-only). This file only adds the legal-title band and the
   bordered policy-card list used on this page, following the same visual approach as the
   sibling Privacy Policy page (both read the same /v6/styles.css tokens, so the bordered-card
   + eyebrow pattern lines up naturally without needing to read that page's output directly). */

/* Overrides the shared .hero base class's background-image (which otherwise inherits the
   homepage's hero photo via /v6/styles.css). Real client photo (engine.jpg, a macro shot of
   an engine's timing gear train), shared with the sibling Privacy Policy hero so the two
   legal pages read as a matched pair. Per Darrel, DM trace 7b232831 (R-048). */
.legal-hero {
  min-height: auto;
  background-image:
    linear-gradient(180deg, rgba(17,21,23,0.88) 0%, rgba(13,16,18,0.92) 100%),
    url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
}

.legal-hero .hero-content {
  padding: 64px 100px 72px;
}

.legal-hero .torn-edge {
  height: 120px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.legal-subhead {
  width: min(100%, 640px);
  margin-top: 20px;
  font-size: 18px;
  line-height: 32px;
  font-weight: 400;
  color: #dce8ee;
}

.legal-updated {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c7efff;
}

.legal-body {
  padding: 72px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--color-worktruck-white);
}

.legal-intro {
  max-width: 900px;
  font-size: 17px;
  line-height: 30px;
  font-weight: 500;
  color: #3d5059;
}

.legal-card {
  padding: 40px 44px;
  border: 2px solid #d8e1e6;
  background: #fff;
}

.legal-card-index {
  display: block;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-diesel-blue);
  margin-bottom: 10px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 1.8vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-deep-blue);
  margin-bottom: 18px;
}

.legal-card p {
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
  color: #3d5059;
}

.legal-card p + p {
  margin-top: 14px;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-card li {
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
  color: #3d5059;
}

.legal-flag {
  display: inline;
  font-weight: 700;
  color: #b5490f;
  background: #fdece1;
  padding: 1px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .legal-hero .hero-content { padding: 48px 24px 56px; }
  .legal-body { padding: 56px 24px 72px; }
  .legal-card { padding: 30px 26px; }
}
