/* Legal and app pages for controlsolution.org.
   Loaded after the site's own styles.css; only adds rules for the content area. */

.legal {
  max-width: 880px;
  margin: auto;
  padding: 7rem 1rem 3rem;
  color: var(--text-dark);
  line-height: 1.75;
}

.legal .eyebrow {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.legal h1 {
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.legal .meta {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.legal h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
  scroll-margin-top: 90px;
}

.legal h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  scroll-margin-top: 90px;
}

.legal p,
.legal li,
.legal td {
  color: #374151;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}

.legal ul {
  list-style: disc;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal ul.plain {
  padding-left: 0;
  list-style: none;
}

.legal a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--text-dark);
}

.legal strong {
  font-weight: 600;
  color: var(--text-dark);
}

.legal .card {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
}

.legal .card > :last-child {
  margin-bottom: 0;
}

.legal .card.note {
  background-color: #fff7f4;
  border-color: #f6cfc5;
}

.legal .toc ol {
  columns: 2 260px;
  column-gap: 2rem;
  margin-bottom: 0;
}

.legal .toc h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.table-wrap {
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal th,
.legal td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e5e7eb;
}

.legal th {
  font-weight: 600;
  color: var(--text-dark);
  background-color: #f9fafb;
}

.legal address {
  font-style: normal;
}

.legal .actions {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal .actions a {
  padding: 0.85rem 1.4rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  background-color: #f1a501;
  border-radius: 5px;
  box-shadow: 2px 2px 20px rgba(241, 165, 1, 0.4);
}

.legal .actions a.secondary {
  color: var(--text-dark);
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.legal .link-grid {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1rem;
}

.legal .link-grid a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}

.legal .link-grid a:hover {
  border-color: var(--primary-color);
}

.legal .link-grid span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.nav__links a[aria-current="page"] {
  color: var(--primary-color);
}

.footer__col address {
  font-style: normal;
}

.footer__col p a,
.footer__col address a {
  color: var(--text-light);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

@media (width > 540px) {
  .legal .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  .legal {
    padding-top: 3.5rem;
  }

  .legal h1 {
    font-size: 2.75rem;
  }

  .nav__links {
    gap: 2.5rem;
  }
}
