/* ==========================================================================
   PriorAuthPro — Shared styles for Terms, Privacy, Contact & Disclaimer pages
   ========================================================================== */

:root {
  --dark: #2b4142;
  --sage: #a3b9a3;
  --light-sage: #ebf0eb;
  --warm-bg: #FAF8F5;
  --card-bg: #FFFFFF;
  --sand: #F0EBE3;
  --text: #2C2C2C;
  --text-secondary: #555555;
  --border: #DDD8D0;
  --accent: #c2552a;
  --success: #3A7A4C;
  --heading: 'Roboto Condensed', 'Roboto', sans-serif;
  --body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--warm-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--dark); color: #fff;
  padding: 0.75rem 1.5rem; z-index: 9999;
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* LINKS — override browser defaults to stay on-brand */
a { color: var(--dark); }
a:visited { color: var(--dark); }

/* FOCUS */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--dark); padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--heading); font-weight: 700; font-size: 1.15rem;
  color: #fff; letter-spacing: -0.02em; text-decoration: none;
}
.nav-logo:visited { color: #fff; }
.nav-logo span { color: var(--sage); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:visited { color: rgba(255,255,255,0.8); }
.nav-links a:hover, .nav-links a:focus { color: #fff; }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 0.5rem 1.25rem; border-radius: 6px;
  font-weight: 600 !important; transition: background 0.2s !important;
}
.nav-cta:hover, .nav-cta:focus { background: #a8441f !important; }

/* PAGE HERO */
.page-hero {
  padding: 8rem 2rem 3rem;
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

/* CONTAINER */
.container { max-width: 780px; margin: 0 auto; }

/* LEGAL CONTENT (Terms & Privacy) */
.legal-content {
  padding: 3.5rem 2rem 5rem;
}
.legal-content section {
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-content p:last-child {
  margin-bottom: 0;
}
.legal-content strong {
  color: var(--text);
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.legal-content a:visited { color: var(--dark); }
.legal-content a:hover, .legal-content a:focus {
  color: #a8441f;
}
.legal-content ul {
  margin: 0.75rem 0 0.75rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.legal-content li {
  margin-bottom: 0.4rem;
}
.legal-content li::marker {
  color: var(--sage);
}

/* SUBSECTIONS (e.g., 2.1, 3.4) */
.legal-content h3 {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

/* CALLOUT BOXES */
.legal-callout {
  background: var(--light-sage);
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}
.legal-callout p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.legal-callout p:last-child {
  margin-bottom: 0;
}
.legal-callout.warning {
  background: #fff8f4;
  border-color: var(--accent);
}
.legal-callout.warning .callout-heading {
  color: var(--accent);
}
.legal-callout .callout-heading {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

/* DEFINITION LISTS */
.legal-content dl {
  margin: 1rem 0;
}
.legal-content dt {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 1rem;
}
.legal-content dt:first-child {
  margin-top: 0;
}
.legal-content dd {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0.25rem 0 0 1.25rem;
}

/* UPPERCASE LEGAL SECTIONS (disclaimers, liability caps) */
.legal-caps {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* CONTACT / INFO TABLE */
.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.legal-info-table tr {
  border-bottom: 1px solid var(--border);
}
.legal-info-table tr:last-child {
  border-bottom: none;
}
.legal-info-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0.6rem 1rem 0.6rem 0;
  white-space: nowrap;
  width: 140px;
}
.legal-info-table td {
  color: var(--text-secondary);
  padding: 0.6rem 0;
}
.legal-info-table a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FINAL ACKNOWLEDGMENT BANNER */
.legal-ack {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* PAGE HERO SUBTITLE LINE */
.page-hero .hero-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* CONTACT PAGE */
.contact-content {
  padding: 3.5rem 2rem 5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.contact-card h2 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.contact-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.contact-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.contact-card a:visited { color: var(--dark); }
.contact-card a:hover, .contact-card a:focus {
  color: #a8441f;
}
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.contact-form h2 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.contact-form .field-group {
  margin-bottom: 1.25rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--warm-bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--dark);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn-submit {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form .btn-submit:hover,
.contact-form .btn-submit:focus {
  background: #1e2f30;
}

/* COMPLIANCE BANNER */
.compliance {
  background: var(--sand);
  padding: 2rem;
  text-align: center;
}
.compliance p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
}
footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
footer a:visited { color: rgba(255,255,255,0.75); }
footer a:hover, footer a:focus { color: #fff; }

/* ==========================================================================
   DISCLAIMER PAGE
   ========================================================================== */

/* DISCLAIMER CONTENT WRAPPER */
.disclaimer-content {
  padding: 4rem 2rem 5rem;
}
.disclaimer-content section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 80px;
}
.disclaimer-content h2 {
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--light-sage);
}
.disclaimer-content p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
}
.disclaimer-content ul,
.disclaimer-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.disclaimer-content li {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

/* TABLE OF CONTENTS */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}
.toc-label {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark);
  margin-bottom: 1rem;
}
.toc ol {
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 2rem;
}
.toc ol li { font-size: 0.9rem; }
.toc ol a { color: var(--dark); text-decoration: none; font-weight: 500; }
.toc ol a:hover { text-decoration: underline; color: var(--accent); }

/* SECTION DIVIDER */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* SUBSECTION LABELS */
.subsection-label {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  background: var(--light-sage);
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}
.subsection-label:first-child { margin-top: 0; }

/* CALLOUT BOXES */
.callout {
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.callout-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.callout p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }
.callout li { font-size: 0.95rem; }
.callout-warning {
  background: #FFF8F5;
  border: 1.5px solid var(--accent);
}
.callout-warning .callout-title { color: var(--accent); }
.callout-info {
  background: var(--light-sage);
  border: 1.5px solid var(--sage);
}
.callout-info .callout-title { color: var(--dark); }
.callout-state {
  background: var(--sand);
  border: 1px solid var(--border);
  border-left: 4px solid var(--dark);
}
.callout-state .callout-title { color: var(--dark); }

/* SCOPE TABLE */
.scope-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.scope-table th {
  background: var(--dark);
  color: #fff;
  font-family: var(--heading);
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.88rem;
}
.scope-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.scope-table tr:nth-child(even) td { background: var(--sand); }
.scope-table .yes { color: var(--success); font-weight: 600; }
.scope-table .no { color: var(--accent); font-weight: 600; }

/* STATE GRID */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

/* RESOURCE LIST */
.resource-list {
  list-style: none;
  padding: 0;
}
.resource-list li {
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.resource-list li strong { display: block; color: var(--dark); margin-bottom: 0.15rem; }
.resource-list li span { color: var(--text-secondary); font-size: 0.88rem; }

/* LEGAL CAPS BLOCK (boxed variant used on Disclaimer page) */
.legal-caps-block {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

/* HERO — effective date & read-first notice */
.page-hero .effective {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.page-hero .read-first {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(194,85,42,0.18);
  border: 1px solid rgba(194,85,42,0.5);
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  color: #f0a07a;
  font-size: 0.92rem;
  max-width: 640px;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .page-hero { padding: 6rem 1.25rem 2rem; }
  .legal-content { padding: 2.5rem 1.25rem 3.5rem; }
  .disclaimer-content { padding: 2.5rem 1.25rem 3.5rem; }
  .contact-content { padding: 2.5rem 1.25rem 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: 1fr; }
}
