.container {
  max-width: var(--max);
}

/* ── Page header banner ── */
.page-banner {
  background: var(--brand);
  color: #FFFDF7;
  padding: 40px 0 36px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.5vw, 40px);
  color: #FFFDF7;
}

.page-banner p {
  margin: 0;
  font-size: 16px;
  opacity: .85;
}

/* ── Meta bar ── */
.privacy-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 4px;
  flex-wrap: wrap;
}

.meta-sep {
  opacity: .5;
}

/* ── Intro card ── */
.privacy-intro {
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.75;
}

.privacy-intro p {
  margin: 0 0 12px;
}

.privacy-intro p:last-child {
  margin-bottom: 0;
}

/* ── Table of Contents ── */
.toc {
  margin-bottom: 40px;
  padding: 24px 28px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand2);
  margin-bottom: 12px;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px 24px;
}

.toc-list li {
  font-size: 14px;
}

.toc-list a {
  color: var(--brand);
  font-weight: 500;
  transition: opacity 0.15s;
}

.toc-list a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Policy Sections ── */
.policy-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(176, 138, 69, 0.2);
}

.policy-section:last-of-type {
  border-bottom: none;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand2);
  margin-bottom: 8px;
}

.section-tag::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--brand2);
  border-radius: 2px;
}

.policy-section h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--brand);
  margin: 0 0 16px;
  font-weight: 700;
}

.policy-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section a {
  color: var(--brand);
  font-weight: 600;
}

.policy-section a:hover {
  text-decoration: underline;
}

/* ── HIPAA mandatory notice box ── */
.policy-notice {
  background: rgba(91, 7, 16, 0.07);
  border: 1.5px solid rgba(91, 7, 16, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Policy unordered lists ── */
.policy-list {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  padding-left: 22px;
  margin: 10px 0 16px;
}

.policy-list li {
  margin-bottom: 6px;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

/* ── Notice / Info boxes ── */
.notice-box {
  background: rgba(176, 138, 69, 0.1);
  border: 1px solid rgba(176, 138, 69, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin: 16px 0;
}

.notice-box.notice-warning {
  background: rgba(91, 7, 16, 0.05);
  border-color: rgba(91, 7, 16, 0.2);
  color: var(--brand);
}

/* ── Use-of-PHI card grid ── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.use-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(91, 7, 16, 0.07);
}

.use-icon {
  width: 36px;
  height: 36px;
  background: rgba(91, 7, 16, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.use-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--brand);
}

.use-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
}

.use-card p {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ── Patient Rights list ── */
.rights-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0 20px;
}

.rights-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(176, 138, 69, 0.2);
}

.rights-item:last-child {
  border-bottom: none;
}

.rights-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(176, 138, 69, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.rights-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--brand2);
}

.rights-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 6px;
}

.rights-item p {
  font-size: 14px;
  margin: 0;
  line-height: 1.65;
}

/* ── A2P 10DLC SMS Privacy Notice block ── */
.sms-a2p-notice {
  background: rgba(91, 7, 16, 0.04);
  border: 1.5px solid rgba(91, 7, 16, 0.22);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.sms-a2p-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sms-a2p-header svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: var(--brand);
}

.sms-a2p-header strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sms-a2p-notice p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 10px;
}

.sms-a2p-notice p:last-child {
  margin-bottom: 0;
}

.sms-a2p-notice a {
  color: var(--brand);
  font-weight: 600;
}

/* ── SMS highlight block ── */
.sms-highlight {
  margin: 16px 0 20px;
  background: rgba(91, 7, 16, 0.04);
  border: 1.5px solid rgba(91, 7, 16, 0.2);
}

.sms-highlight-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sms-highlight-inner svg {
  width: 28px;
  height: 28px;
  min-width: 28px;
  fill: var(--brand);
  margin-top: 3px;
}

.sms-highlight-inner strong {
  display: block;
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 8px;
}

.sms-highlight-inner p {
  font-size: 14px;
  margin: 0;
  line-height: 1.65;
}

/* ── SMS Terms table-style ── */
.sms-terms {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
}

.sms-terms h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand2);
  margin: 0 0 16px;
}

.sms-terms-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sms-term-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(176, 138, 69, 0.18);
  font-size: 14px;
  line-height: 1.5;
}

.sms-term-item:last-child {
  border-bottom: none;
}

.sms-term-label {
  font-weight: 700;
  color: var(--muted);
  min-width: 160px;
  flex-shrink: 0;
}

/* ── Contact block ── */
.contact-block {
  margin-top: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(176, 138, 69, .2);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: var(--brand2);
  margin-top: 2px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand2);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.contact-value a {
  color: var(--brand);
  font-weight: 600;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* ── Complaint box ── */
.complaint-box {
  background: rgba(176, 138, 69, 0.07);
  border: 1px solid rgba(176, 138, 69, 0.3);
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

.complaint-box h3 {
  font-size: 16px;
  color: var(--brand);
  margin: 0 0 10px;
}

.complaint-box p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 10px;
}

/* ── Policy footer note ── */
.policy-footer-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(176, 138, 69, 0.2);
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .use-grid {
    grid-template-columns: 1fr;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .sms-term-item {
    flex-direction: column;
    gap: 4px;
  }

  .sms-term-label {
    min-width: unset;
  }

  .sms-highlight-inner {
    flex-direction: column;
  }
}
