/* =========================================================================
   Legal Engine Trust Centre — presentation layer.

   Brand tokens are lifted verbatim from the production stylesheet at
   https://legalengine.co.uk/styles.css (read 2026-09-21) so a visitor
   arriving from the marketing site sees one continuous brand. Fonts are
   self-hosted from the same source, deliberately: a trust page must not
   leak its visitors' IP addresses to a third-party font CDN.

   This file is hand-maintained presentation. The CONTENT is generated —
   see data/trust-facts.json and scripts/render.py.
   ========================================================================= */

:root {
  --le-charcoal: #454545;
  --le-blue: #3a8dff;
  --le-blue-deep: #2a7ae5;
  --le-coral: #ff6b5e;
  --le-gold: #ffd666;
  --le-grey: #eaeaea;
  --le-offwhite: #f8f8f8;

  --ink: #1d1d1d;
  --ink-2: #5d5d5d;
  --ink-3: #8a8a8a;
  --line: #e6e6e6;
  --line-2: #d6d6d6;
  --card: #ffffff;
  --wash: #f1f6ff;

  --ink-dark: #0e1621;
  --ink-dark-2: #16202d;
  --dark-line: #26323f;
  --dark-text: #e7ecf2;
  --dark-text-2: #9fb0c2;

  --container: 1120px;
  --narrow: 780px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--le-charcoal);
  background: var(--le-offwhite);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--le-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.container.narrow { max-width: var(--narrow); }

@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }
}

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand .divider {
  width: 1px; height: 22px; background: var(--line-2); flex: 0 0 auto;
}
.nav-brand .label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 720px) {
  .nav-inner { padding: 0.7rem 1.25rem; }
  .nav-brand .divider, .nav-brand .label { display: none; }
  .nav-links { gap: 1rem; }
  .nav-links a.hide-sm { display: none; }
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--le-blue); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.btn-primary:hover { background: var(--le-blue-deep); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(58,141,255,0.32); }
.btn-ghost { background: transparent; color: var(--le-charcoal); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--le-charcoal); background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ----------------------------------------------------------- sections --- */

.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section.sunken { background: #fff; border-block: 1px solid var(--line); }

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--le-blue-deep);
}
.lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; }

/* -------------------------------------------------------------- hero --- */

.hero {
  padding: 5rem 0 3.5rem;
  background:
    radial-gradient(1100px 420px at 78% -12%, rgba(58,141,255,0.10), transparent 62%),
    radial-gradient(760px 340px at 4% 4%, rgba(255,107,94,0.07), transparent 60%);
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-top: 1rem;
  max-width: 17ch;
}
.hero .lede { margin-top: 1.4rem; max-width: 62ch; }

.status-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.status-stamp .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31,157,85,0.16);
  flex: 0 0 auto;
}
.status-stamp strong { color: var(--ink); font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ------------------------------------------------------------- cards --- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 6px 24px rgba(20,30,50,0.06); }

.card h3 { font-size: 1.28rem; margin-top: 0.85rem; }
.card .summary { color: var(--ink-2); margin: 0.6rem 0 0; font-size: 1rem; }
.card .body { margin: 1.1rem 0 0; }
.card .body p { margin: 0 0 0.85rem; font-size: 0.975rem; color: var(--ink-2); }
.card .body p:last-child { margin-bottom: 0; }

.card .requestable {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.card .requestable strong { color: var(--ink-2); font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  align-self: flex-start;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.pill-active { background: #eaf6ef; color: #17693c; }
.pill-active .dot { background: #1f9d55; }
.pill-pending { background: #fff6e2; color: #8a6300; }
.pill-pending .dot { background: var(--le-gold); }
.pill-informational { background: var(--wash); color: var(--le-blue-deep); }
.pill-informational .dot { background: var(--le-blue); }

/* --------------------------------------------------------- practices --- */

.practice-grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
@media (max-width: 860px) { .practice-grid { grid-template-columns: 1fr; gap: 2rem; } }

.practice h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--le-blue);
  display: inline-block;
}
.check { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.85rem; }
.check li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-2);
  font-size: 0.975rem;
  line-height: 1.6;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--le-blue);
  border-bottom: 2px solid var(--le-blue);
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------- form --- */

.section.dark {
  background: var(--ink-dark);
  color: var(--dark-text);
  background-image: radial-gradient(900px 400px at 85% 0%, rgba(58,141,255,0.16), transparent 60%);
}
.section.dark h2 { color: #fff; }
.section.dark .lede { color: var(--dark-text-2); }
.section.dark .eyebrow { color: #7fb4ff; }

.form-shell {
  margin-top: 2.5rem;
  background: var(--ink-dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 2.25rem;
}
@media (max-width: 720px) { .form-shell { padding: 1.4rem; } }

.field { margin-bottom: 1.35rem; }
.field label, .fieldset-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}
.field .hint { font-weight: 400; color: var(--dark-text-2); letter-spacing: 0; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: #0b131c;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  color: var(--dark-text);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--le-blue);
  box-shadow: 0 0 0 3px rgba(58,141,255,0.22);
}
.field input::placeholder, .field textarea::placeholder { color: #6b7d90; }
.field textarea { resize: vertical; min-height: 96px; }

.grid-2 { display: grid; gap: 1.35rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }

.doc-options { display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr; margin-top: 0.25rem; }
@media (max-width: 860px) { .doc-options { grid-template-columns: 1fr; } }

.doc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  font-size: 0.925rem;
  color: var(--dark-text-2);
  line-height: 1.45;
}
.doc-option:hover { border-color: #3d4e61; background: rgba(58,141,255,0.05); }
.doc-option input { margin: 0.28rem 0 0; accent-color: var(--le-blue); flex: 0 0 auto; }
.doc-option:has(input:checked) { border-color: var(--le-blue); background: rgba(58,141,255,0.1); color: var(--dark-text); }

.form-foot {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.form-foot .note { font-size: 0.85rem; color: var(--dark-text-2); max-width: 46ch; margin: 0; }

/* honeypot — off-screen, never focusable, invisible to assistive tech */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-message.show { display: block; }
.form-message.ok { background: rgba(31,157,85,0.14); border: 1px solid rgba(31,157,85,0.4); color: #86e3b0; }
.form-message.err { background: rgba(255,107,94,0.12); border: 1px solid rgba(255,107,94,0.4); color: #ffb3ab; }

.form-done { text-align: center; padding: 2.5rem 1rem; }
.form-done h3 { color: #fff; font-size: 1.5rem; }
.form-done p { color: var(--dark-text-2); margin: 0.85rem auto 0; max-width: 48ch; }

/* ------------------------------------------------------------ footer --- */

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer img { height: 26px; width: auto; margin-bottom: 1rem; }
.footer .legal { max-width: 46ch; line-height: 1.7; }
.footer .links { display: grid; gap: 0.5rem; }
.footer .links a { color: var(--ink-2); }

.verified-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
