/* =====================================================
   RENTREL LEGAL PAGES
   Files: privacy.html, terms.html, disclaimer.html
   Matches Rentrel navy / blue / soft-card theme
===================================================== */

:root {
  --legal-navy: #07142f;
  --legal-navy-2: #050c1d;
  --legal-blue: #155dfc;
  --legal-blue-dark: #082b78;
  --legal-text: #0b1220;
  --legal-muted: #607086;
  --legal-soft: #f6f9ff;
  --legal-line: rgba(15, 23, 42, 0.1);
  --legal-card: #ffffff;
  --legal-shadow: 0 26px 70px rgba(7, 20, 47, 0.11);
  --legal-radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--legal-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(21, 93, 252, 0.09), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(20, 184, 166, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

a { color: inherit; }

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-logo {
  height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(7, 20, 47, 0.08);
  text-decoration: none;
}

.legal-logo img {
  display: block;
  height: 31px;
  max-width: 180px;
  object-fit: contain;
}

.legal-back-link {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--legal-navy);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(7, 20, 47, 0.13);
}

.legal-back-link:hover { background: #0b1c44; }

/* Hero */
.legal-hero {
  padding: 74px 0 34px;
}

.legal-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--legal-blue-dark);
  background: rgba(21, 93, 252, 0.09);
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #07142b;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.legal-hero p {
  max-width: 790px;
  margin: 22px 0 0;
  color: var(--legal-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  font-weight: 520;
}

.legal-updated {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-updated span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--legal-line);
  color: #46556b;
  font-size: 0.8rem;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(7, 20, 47, 0.04);
}

/* Content */
.legal-main {
  padding: 26px 0 78px;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.legal-card,
.legal-side-card {
  border-radius: var(--legal-radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--legal-shadow);
}

.legal-card {
  padding: clamp(26px, 4vw, 46px);
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--legal-line);
}

.legal-section h2 {
  margin: 0 0 12px;
  color: #07142b;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.legal-section p,
.legal-section li {
  color: #4f5f75;
  font-size: 0.98rem;
  line-height: 1.72;
  font-weight: 520;
}

.legal-section p { margin: 0; }
.legal-section p + p { margin-top: 12px; }

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-section li + li { margin-top: 8px; }

.legal-section strong { color: #13223a; font-weight: 850; }

.legal-side-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.legal-side-card h3 {
  margin: 0 0 12px;
  color: #07142b;
  font-size: 1rem;
  font-weight: 900;
}

.legal-side-card p {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 560;
}

.legal-side-links {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.legal-side-links a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  color: #14326c;
  background: #f1f5ff;
  border: 1px solid rgba(21, 93, 252, 0.08);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.legal-side-links a:hover {
  background: #e8efff;
}

.legal-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(21, 93, 252, 0.07);
  border: 1px solid rgba(21, 93, 252, 0.1);
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.62;
  font-weight: 580;
}

/* Footer mount spacing */
#footerMount { margin-top: auto; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-side-card { position: static; }
}

@media (max-width: 640px) {
  .legal-container { width: min(100% - 30px, 560px); }
  .legal-header { padding: 13px 0; }
  .legal-logo { height: 46px; padding: 0 14px; border-radius: 15px; }
  .legal-logo img { height: 27px; max-width: 155px; }
  .legal-back-link { min-height: 40px; padding: 0 14px; font-size: 0.8rem; }
  .legal-hero { padding: 52px 0 22px; }
  .legal-main { padding: 20px 0 56px; }
  .legal-card { border-radius: 22px; }
  .legal-side-card { border-radius: 22px; }
}
