/* =========================================================
   AI Tax Relief — Legal / inner pages
   (loaded after style.css)
   ========================================================= */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 4.6rem;
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(31, 111, 209, .15), transparent 60%),
    radial-gradient(700px 380px at -10% 40%, rgba(115, 179, 231, .18), transparent 60%),
    linear-gradient(180deg, #fdfdfb 0%, #f6f9fc 100%);
  border-bottom: 1px solid var(--line-soft);
  color: #4b5b73;
}
.page-hero .orb-1 { width: 300px; height: 300px; top: -140px; right: 10%; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  color: var(--muted-2);
}
.crumbs a { color: #3a4a62; display: inline-flex; align-items: center; gap: .35rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs .bi-chevron-right { font-size: .7rem; }
.crumbs span { color: var(--gold); }

.page-title {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: .9rem;
}
.page-lead { font-size: 1.1rem; line-height: 1.7; max-width: 720px; margin-bottom: 1.5rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.page-meta span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
}
.page-meta i { color: var(--gold); }

.legal-section { background: var(--bg-soft); padding: 3.5rem 0 5.5rem; }

/* ---------- Sidebar ---------- */
.legal-aside { position: sticky; top: 130px; display: grid; gap: 1.1rem; }
.aside-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.aside-title {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: calc(100vh - 470px);
  min-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc-list a {
  display: flex;
  gap: .55rem;
  padding: .42rem .6rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.toc-list a .toc-num { color: #a8b4c6; min-width: 1.3rem; }
.toc-list a:hover { background: #f3f6fa; color: var(--ink); }
.toc-list a.active { background: #f0f6fd; color: var(--emerald-dark); border-left-color: var(--emerald); }
.toc-list a.active .toc-num { color: var(--emerald); }

.legal-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.legal-nav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.legal-nav a i {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: #f1f4f9;
  color: var(--muted);
  flex: 0 0 auto;
}
.legal-nav a:hover { background: #f6f8fb; border-color: #e8edf4; color: var(--ink); }
.legal-nav a[aria-current="page"] { background: #f5f8fc; border-color: #d9e4f1; }
.legal-nav a[aria-current="page"] i { background: #e1eaf5; color: #1a4480; }

.aside-call {
  display: block;
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  background: linear-gradient(135deg, #f5f9fe, #e1ecfa);
  border: 1px solid #c9dcf5;
  color: var(--emerald-dark);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.aside-call:hover { color: var(--emerald-dark); border-color: var(--mint); box-shadow: 0 14px 28px -18px rgba(11, 86, 179, .7); }
.aside-call small { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .35rem; }
.aside-call strong { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.3rem; font-weight: 800; transition: color .2s; }
.aside-call strong i { color: var(--emerald); font-size: 1.05rem; }
.aside-call:hover strong { color: var(--emerald-dark); }

/* ---------- Content card ---------- */
.legal-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 24px;
  padding: 3rem 3.2rem;
  box-shadow: var(--shadow);
}
.legal-content { color: #3a4a62; font-size: 1rem; line-height: 1.8; }
.legal-content h2 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2.6rem 0 1rem;
  padding-top: 2.2rem;
  border-top: 1px solid #eef2f7;
  scroll-margin-top: 130px;
}
.legal-content h2.first { margin-top: 0; padding-top: 0; border-top: 0; }
.sec-num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fafd, #e8eef6);
  border: 1.5px solid #a9c7e8;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 800;
}
.sec-num i { font-size: 1rem; }
.legal-content h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 1.6rem 0 .5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content strong { color: var(--ink); }
.legal-content .link {
  color: var(--emerald-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(11, 86, 179, .35);
}
.legal-content .link:hover { color: var(--emerald); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li i { color: var(--emerald); font-size: 1.05rem; margin-top: .2rem; }

.notice {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: #f5f8fc;
  border: 1px solid #d9e4f1;
  color: #162e51;
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}
.notice > i {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #e1eaf5;
  color: #1a4480;
  font-size: 1.05rem;
}
.notice strong { color: #0f2341; }
.notice-dark { background: var(--bg-soft); border-color: var(--line); color: var(--text); }
.notice-dark strong { color: var(--ink); }
.notice-dark > i { background: #e8eef6; color: var(--gold); }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1rem; }
.info-item {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #e8edf4;
  background: var(--bg-light);
  font-size: .94rem;
  line-height: 1.6;
}
.info-item strong { display: block; margin-bottom: .25rem; }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid #e3e8f0; margin: 1.2rem 0 1.4rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.55; min-width: 600px; }
.data-table th {
  background: #f1f4f9;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .9rem 1rem;
}
.data-table td { padding: .9rem 1rem; border-top: 1px solid #eef2f7; vertical-align: top; }
.data-table tr:nth-child(even) td { background: #fafbfd; }
.data-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.yes, .no {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.yes { background: #e6f0fb; color: var(--emerald-dark); }
.no { background: #f1f4f9; color: #7a8aa2; }

.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.cat-chips li {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: #f0f6fd;
  border: 1px solid #c9dcf5;
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: .85rem;
}

.faq-item { padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--bg-light); margin-bottom: .8rem; }
.faq-item strong { display: block; margin-bottom: .3rem; }
.faq-item p { margin: 0; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin: 1rem 0 1.2rem;
}
.contact-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #e8edf4;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  line-height: 1.5;
}
a.contact-item:hover { border-color: var(--mint); }
.contact-item > i {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #e8f1fc;
  color: var(--emerald);
}
.contact-item small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item span { color: var(--ink); font-weight: 700; }

.print-note { font-size: .88rem; color: var(--muted); font-style: italic; margin: 0; }

/* Placeholder text that must be replaced before launch */
.ph {
  background: #fef3c7;
  border: 1px dashed #d97706;
  border-radius: 6px;
  padding: 0 .35rem;
  color: #92400e;
  font-weight: 700;
}

/* ---------- Call-only opt-out ---------- */
.call-panel {
  position: relative;
  overflow: hidden;
  margin: 1.2rem 0 2rem;
  padding: 2.6rem 2.4rem;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(600px 260px at 50% -30%, rgba(31, 111, 209, .2), transparent 65%),
    linear-gradient(180deg, #f5f9fe, #ffffff);
  border: 1px solid #c9dcf5;
  box-shadow: 0 30px 60px -36px rgba(11, 86, 179, .45);
}
.call-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 27, 51, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 51, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}
.call-panel > * { position: relative; }
.call-panel-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, #2a7de1, #0a4590);
  animation: callPulse 2.4s infinite;
}
.call-panel-label {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.call-panel-number {
  display: block;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: .7rem;
  text-decoration: none !important;
}
.call-panel-number:hover { color: var(--emerald-dark); }
.call-panel p { max-width: 520px; margin: 0 auto 1.6rem; color: var(--muted); }
.call-panel .btn-cta { text-decoration: none !important; }
.call-panel-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem;
  margin-top: 1.4rem;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.call-panel-meta i { color: var(--emerald); margin-right: .3rem; }

.call-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}
.call-steps li {
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px solid #e8edf4;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
  font-size: .94rem;
}
.call-steps .step-badge {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: .9rem;
  border-radius: 12px;
  font-weight: 800;
  color: var(--gold);
  background: linear-gradient(180deg, #f8fafd, #e8eef6);
  border: 1.5px solid #a9c7e8;
}
.call-steps strong { display: block; font-size: 1rem; margin-bottom: .3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .legal-aside { position: static; }
  .legal-card { padding: 2.4rem 2rem; }
}
@media (max-width: 767.98px) {
  .info-grid, .contact-card, .call-steps { grid-template-columns: 1fr; }
  .call-panel { padding: 2.2rem 1.3rem; }

  /* Data table → stacked cards on phones */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .data-table { min-width: 0; display: block; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: .7rem; }
  .data-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .35rem .8rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .data-table tr:nth-child(even) td { background: none; }
  .data-table td { display: block; padding: 0; border: 0; }
  .data-table td:first-child { grid-column: 1; grid-row: 1; white-space: normal; font-size: .95rem; }
  .data-table td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: start; }
  .data-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: .86rem; }
}
@media (max-width: 575.98px) {
  .page-hero { padding: 2.4rem 0 2.6rem; }
  .crumbs { font-size: .78rem; margin-bottom: 1rem; }
  .page-title { font-size: 1.9rem; }
  .page-lead { font-size: 1rem; margin-bottom: 1.2rem; }
  .page-meta span { font-size: .78rem; padding: .4rem .8rem; }
  .legal-section { padding: 1.4rem 0 3rem; }
  .legal-section .container { padding-left: 12px; padding-right: 12px; }
  .legal-card { padding: 1.6rem 1.15rem; border-radius: 18px; }
  .legal-content { font-size: .96rem; line-height: 1.75; }
  .legal-content h2 { font-size: 1.12rem; gap: .65rem; margin-top: 2rem; padding-top: 1.8rem; }
  .legal-content h3 { font-size: 1.02rem; }
  .sec-num { width: 32px; height: 32px; font-size: .82rem; }
  .notice { padding: 1rem; gap: .8rem; font-size: .9rem; }
  .notice > i { width: 34px; height: 34px; }
  .call-panel { padding: 1.8rem 1.1rem; }
  .call-panel-icon { width: 58px; height: 58px; font-size: 1.35rem; }
  .call-panel-number { font-size: 2rem; }
  .cat-chips li { font-size: .8rem; }
  .aside-card { padding: 1.2rem 1.1rem; }
  .call-panel .btn-cta { width: 100%; justify-content: center; }
}
