/* ═══════════════════════════════════════════════════════════════════
   Service Safe Ltd — Legal / compliance document pages
   Document body sits in a --surface-1 panel on the near-black canvas.
   Covers lp-* (document shell), cc-* (compliance cards), dr-* (GDPR
   data request form) and cp-* (cookie preferences controls).
   ═══════════════════════════════════════════════════════════════════ */

.lp-hero {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 40px);
  background:
    radial-gradient(ellipse 58% 62% at 80% 0%, rgba(125, 201, 255, 0.09), transparent 64%),
    var(--bg);
}

.lp-hero__inner { max-width: 900px; margin-inline: auto; }
.lp-title { font-size: clamp(1.875rem, 4.2vw, 2.75rem); margin: var(--sp-2) 0 var(--sp-1); }
.lp-meta { font-size: var(--fs-sm); color: var(--text-3); }

.lp-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: var(--sp-3);
  padding: 9px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.lp-back:hover { color: var(--text-1); background: var(--surface-3); border-color: var(--border-strong); }
.lp-back svg { width: 15px; height: 15px; }

/* ── Document panel ────────────────────────────────────────────────── */
.lp-main {
  max-width: 900px;
  margin: 0 auto clamp(56px, 8vw, 104px);
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
}

.lp-content > h2 {
  font-size: clamp(1.1875rem, 2vw, 1.375rem);
  color: var(--text-1);
  margin: var(--sp-6) 0 var(--sp-2);
  padding-left: var(--sp-2);
  position: relative;
}
.lp-content > h2:first-child { margin-top: 0; }
.lp-content > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.lp-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  margin: var(--sp-3) 0 10px;
}

/* Long-form legal copy uses the primary text colour for readability */
.lp-content p { margin-bottom: var(--sp-2); color: var(--text-2); }

.lp-content ul, .lp-content ol { margin: 0 0 var(--sp-3); padding: 0; }
.lp-content ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--text-2);
}
.lp-content ul li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.lp-content ul ul { margin: 10px 0 0; }

.lp-content ol { counter-reset: lp-ol; }
.lp-content ol > li {
  position: relative;
  counter-increment: lp-ol;
  padding-left: 34px;
  margin-bottom: 13px;
  color: var(--text-2);
}
.lp-content ol > li::before {
  content: counter(lp-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.lp-content li strong, .lp-content p strong { color: var(--text-1); font-weight: 700; }

.lp-content a:not(.btn) {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.lp-content a:not(.btn):hover { color: var(--text-1); text-decoration: underline; }

.lp-note {
  font-size: var(--fs-sm);
  color: var(--text-3);
  font-style: italic;
  margin-top: var(--sp-2);
}

/* ── Contact card ──────────────────────────────────────────────────── */
.lp-contact-card {
  margin-top: var(--sp-6);
  padding: clamp(24px, 3.5vw, 32px);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
}
.lp-contact-card h3 { margin: 0 0 var(--sp-1); font-size: 1.0625rem; }
.lp-contact-card p { margin-bottom: 10px; }
.lp-contact-card p:last-child { margin-bottom: 0; }

/* ── Compliance contact grid ───────────────────────────────────────── */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.cc-card {
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.cc-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.cc-card h3 { margin-top: 0; }
.cc-card p { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.cc-card p:last-child { margin-bottom: 0; }
.cc-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  margin-bottom: 10px;
}

/* ── Data request form (dr-*) ──────────────────────────────────────── */
.dr-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  padding: clamp(22px, 3.5vw, 32px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.dr-group { display: flex; flex-direction: column; gap: 9px; }
.dr-group > label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.dr-group .dr-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-3); }

.dr-group input[type="text"],
.dr-group input[type="email"],
.dr-group input[type="tel"],
.dr-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  font-size: var(--fs-sm);
  color: var(--text-1);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.dr-group input::placeholder, .dr-group textarea::placeholder { color: var(--text-3); }
.dr-group input:focus, .dr-group textarea:focus {
  outline: none;
  background: var(--surface-3);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dr-group textarea { resize: vertical; min-height: 130px; }

.dr-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 600px) { .dr-row { grid-template-columns: 1fr; } }

.dr-check-group { display: flex; flex-direction: column; gap: 10px; }
.dr-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.dr-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.dr-check span { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }

.dr-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.7;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
}

.dr-submit { align-self: flex-start; }

.dr-success {
  display: none;
  padding: var(--sp-3);
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-card);
  color: var(--ok);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-top: var(--sp-2);
}

/* ── Cookie preferences (cp-*) ─────────────────────────────────────── */
.cp-section {
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.cp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cp-section-title { font-size: 1.0625rem; font-weight: 700; color: var(--text-1); margin: 0; }
.cp-section-desc { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7; margin: 0; }
.cp-providers { font-size: var(--fs-xs); color: var(--text-3); margin: 10px 0 0; }

.cp-badge-always {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

.cp-toggle-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cp-toggle-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  min-width: 26px;
}

.cp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--sp-3); }
.cp-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.75;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}
