/* MIDICap legal pages (Privacy / Terms) — matches the landing-page design system.
   Pairs with fonts.css (Archivo). No Font Awesome needed here. */

:root {
  --bg: #0E0E12;
  --bg-card: #131318;
  --border: #22222A;
  --border-soft: #2A2A34;
  --text: #F2F2F5;
  --text-dim: #B8B8C4;
  --text-mute: #7A7A88;
  --brand-1: #4A00E0;
  --brand-2: #8E2DE2;
  --brand-3: #C33764;
  --grad: linear-gradient(45deg, #4A00E0 0%, #8E2DE2 50%, #C33764 100%);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------------- containers ---------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
/* the middle content block (direct child of body) is narrower for readability */
body > .container {
  max-width: 820px;
  padding-top: 72px;
  padding-bottom: 88px;
  flex: 1 0 auto;
}

/* ---------------- header / nav ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-img {
  width: 34px;
  height: 34px;
  padding: 4px;
  background: #FFFFFF;
  border-radius: 8px;
  display: block;
}
/* "Back to Home" link -> outlined pill, like the landing's secondary button */
header nav a:not(.logo) {
  text-decoration: none;
  color: #A8A8B6;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border: 1px solid #3A3A46;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
header nav a:not(.logo):hover {
  color: #FFFFFF;
  border-color: var(--brand-2);
}

/* ---------------- page heading ---------------- */
h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
  padding-top: 14px;
  position: relative;
}
h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
}
.last-updated {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 36px;
}

/* ---------------- policy card ---------------- */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 52px);
}
.policy-card > p:first-child {
  font-size: 17px;
  color: var(--text);
}

.policy-card h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.policy-card h2:first-of-type { /* first section sits right under the intro */
  margin-top: 32px;
}

.policy-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-2);
  margin-top: 22px;
  margin-bottom: 8px;
}

.policy-card p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 14px;
}
.policy-card p:last-child { margin-bottom: 0; }

.policy-card strong { color: var(--text); font-weight: 700; }

.policy-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.policy-card li {
  position: relative;
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 26px;
  margin-bottom: 10px;
}
.policy-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad);
}

.policy-card a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.policy-card a:hover { color: var(--brand-3); }

/* ---------------- footer ---------------- */
footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
footer .container { text-align: center; }
footer p {
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}

/* ---------------- responsive ---------------- */
@media (max-width: 600px) {
  body > .container { padding-top: 48px; padding-bottom: 64px; }
  header nav a:not(.logo) { padding: 8px 14px; font-size: 12px; }
}
