/* ==========================================================================
   Agave Healthcare Tucson LLC - shared legal stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html.
   Defines its own background, text and header colors with strong contrast.
   No rgba, no opacity decimals, no translucent surfaces.
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background-color: #F2F6EA;
  color: #344032;
  line-height: 1.72;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: #202A20;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.05em;
}

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.55em;
}

a {
  color: #8E5316;
}

strong {
  color: #202A20;
}

/* --------------------------------------------------------------------------
   Legal header
   -------------------------------------------------------------------------- */

.legal-header {
  background-color: #202A20;
  color: #F2F6EA;
  padding: 26px 0 30px;
  border-bottom: 6px solid #B46C22;
}

.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid #4A5448;
}

.legal-brand-row a {
  color: #F2F6EA;
  text-decoration: none;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #4A5448;
  padding-bottom: 2px;
}

.legal-brand-row a:hover,
.legal-brand-row a:focus-visible {
  color: #E8B87A;
  border-bottom-color: #E8B87A;
}

.legal-brand-row span {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C4CEBC;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: clamp(28px, 4.2vw, 42px);
  margin-bottom: 10px;
}

.legal-header p {
  color: #E7EBDD;
  max-width: 66ch;
  font-size: 15.5px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-toc {
  background-color: #DCE2CE;
  border: 2px solid #202A20;
  border-radius: 4px;
  padding: 24px 26px;
  margin: 40px auto 46px;
  max-width: 880px;
}

.legal-toc h2 {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3E4A3C;
  margin-bottom: 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-toc a {
  color: #2F3A2D;
  text-decoration: none;
  border-bottom: 1px solid #A2B09A;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: #8E5316;
  border-bottom-color: #B46C22;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 30px;
}

.legal-content section {
  background-color: transparent !important;
  border-top: 2px solid #C9D2BA;
  padding: 26px 0 8px;
  margin: 0;
}

.legal-content section:first-of-type {
  border-top: 3px solid #202A20;
}

.legal-content h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 12px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-size: 17px;
  margin-top: 18px;
  margin-bottom: 8px;
  color: #2F3A2D;
}

.legal-content p,
.legal-content li {
  font-size: 15.5px;
}

.legal-content ul {
  list-style: square;
}

.legal-content ul li::marker {
  color: #B46C22;
}

.legal-note {
  background-color: #DCE2CE;
  border-left: 5px solid #B46C22;
  padding: 16px 20px;
  margin: 18px 0 24px;
  font-size: 15px;
}

.legal-details {
  background-color: #E7EBDD;
  border: 2px solid #202A20;
  border-radius: 4px;
  padding: 20px 22px;
  margin: 18px 0 26px;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-details strong {
  display: inline-block;
  min-width: 118px;
  color: #2F3A2D;
}

/* --------------------------------------------------------------------------
   Legal footer
   -------------------------------------------------------------------------- */

.legal-footer {
  background-color: #202A20;
  color: #F2F6EA;
  padding: 34px 0 40px;
  margin-top: 28px;
}

.legal-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  align-items: baseline;
  justify-content: space-between;
}

.legal-footer p {
  margin: 0;
  font-size: 14px;
  color: #DCE2CE;
}

.legal-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 14px;
}

.legal-footer-links li {
  margin: 0;
}

.legal-footer-links a {
  color: #F2F6EA;
  text-decoration: none;
  border-bottom: 1px solid #4A5448;
  padding-bottom: 1px;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
  color: #E8B87A;
  border-bottom-color: #E8B87A;
}

.legal-footer small {
  display: block;
  max-width: 880px;
  margin: 18px auto 0;
  padding: 0 24px;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 12.5px;
  color: #C4CEBC;
}

@media (max-width: 700px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-details strong {
    display: block;
    min-width: 0;
  }
}
