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

:root {
  --ink-strong: #0F1226;
  --ink: #1F2440;
  --ink-body: #525876;
  --ink-muted: #8A90A8;
  --hairline: rgba(15,18,38,0.08);
  --sky-500: #5B8DEF;
  --sky-700: #2F5BC4;
}

html { font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: #f6f8ff;
  color: var(--ink-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Underline links only within the legal body content, so the shared
   navbar/footer links keep their own (un-underlined) styling. */
.legal-card a { color: var(--sky-700); text-decoration: underline; }
.legal-card a:hover { color: var(--sky-500); }

/* Header */
.legal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(235, 241, 255, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-logo { height: 26px; width: auto; display: block; }
.legal-logo-link { display: inline-flex; align-items: center; }

/* ---- Brand logo: keyboard-key icon + wordmark ---- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-key {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(160deg, #7FA9FF 0%, #5B8DEF 45%, #2F5BC4 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -2px 4px rgba(15,18,38,0.18) inset,
    0 3px 6px -2px rgba(47,91,196,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-key-face {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.18) 0%, rgba(47,91,196,0.0) 55%),
              linear-gradient(160deg, #5E92F2 0%, #3D6BCE 100%);
  box-shadow:
    0 2px 4px rgba(15,18,38,0.28) inset,
    0 -1px 2px rgba(255,255,255,0.25) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-key-s {
  width: 13px;
  height: auto;
  display: block;
  color: #fff;
}

.brand-word {
  font-family: 'Gabarito', sans-serif;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  line-height: 1;
}
.brand-speedi { font-weight: 700; }
.brand-site   { font-weight: 400; }

/* Main */
.legal-main {
  flex: 1;
  padding: 140px 24px 80px;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(91, 141, 239, 0.14);
  border-radius: 24px;
  padding: 56px 56px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 12px 40px -12px rgba(15,18,38,0.10);
}

/* Typography */
.legal-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky-700);
  margin-bottom: 12px;
}

.legal-card h1 {
  font-family: 'Gabarito', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: normal;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.legal-card h2 {
  font-family: 'Gabarito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: normal;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-card p {
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: var(--ink-body);
}

.legal-card ul {
  margin: 0 0 14px 20px;
}

.legal-card ul li {
  font-size: 0.96rem;
  color: var(--ink-body);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Footer */
.legal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.legal-footer p {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.legal-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-left: 16px;
}

.legal-footer a:hover { color: var(--ink-body); }

@media (max-width: 600px) {
  .legal-card { padding: 36px 24px; }
  .legal-card h1 { font-size: 1.7rem; }
}
