/* Shared styling for the AIDE legal pages. One stylesheet rather than inline blocks
   per page, so the three documents cannot drift apart visually — a legal page that
   looks unlike its siblings reads as an afterthought, and these are the pages a buyer
   and a carrier reviewer actually open. Colors match public/aide/site.css. */

:root {
  --navy: #07185a;
  --ink: #0a1438;
  --muted: #4e668d;
  --blue: #0b78ff;
  --line: #d3e1f2;
  --soft: #f5f9ff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  background: var(--soft);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 22px 56px;
}

.document {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 30px 34px 34px;
  box-shadow: 0 10px 26px rgba(23, 74, 140, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.brand img {
  max-width: 176px;
  height: auto;
}

h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
}

.updated {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Every legal page links to the other two. Someone who lands on the SMS Terms from a
   consent checkbox should not have to go hunting for the Privacy Policy. */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 26px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.legal-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover {
  background: #e7f1ff;
}

.legal-nav a[aria-current="page"] {
  background: var(--navy);
  color: #ffffff;
}

h2 {
  margin: 26px 0 8px;
  color: #174b7a;
  font-size: 17px;
}

p,
li {
  color: #344456;
  font-size: 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 4px;
}

code {
  padding: 1px 5px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
}

a {
  color: var(--blue);
}

footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .document {
    padding: 22px 18px 26px;
  }

  h1 {
    font-size: 23px;
  }
}
