/* =========================================================================
   Texas Atlantic Capital — Privacy Notice pop-up and page.
   Everything is prefixed "tacp-" and reset explicitly, because the WordPress
   theme styles bare h2/p/ul/li/table/button elements globally.
   ========================================================================= */

:root {
  --tacp-brand: #00718d;
  --tacp-brand-dark: #005a70;
  --tacp-brand-soft: rgba(0, 113, 141, 0.08);
  --tacp-text: #222;
  --tacp-muted: #5c6670;
  --tacp-border: #e3e7ea;
  --tacp-bg: #fff;
}

/* ---------- Shared notice text (.tacp-body) ---------- */
.tacp-body,
.tacp-body p,
.tacp-body li,
.tacp-body td,
.tacp-body th {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tacp-muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.tacp-body p {
  margin: 0 0 14px;
  padding: 0;
}

.tacp-body h2,
.tacp-body h3 {
  font-family: "Raleway", Arial, sans-serif;
  color: var(--tacp-text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  padding: 0;
}

.tacp-body h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 36px 0 12px;
  scroll-margin-top: 24px;
}

.tacp-body h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.tacp-body strong {
  color: var(--tacp-text);
  font-weight: 600;
}

.tacp-body a {
  color: var(--tacp-brand);
  text-decoration: underline;
}

.tacp-body a:hover {
  color: var(--tacp-brand-dark);
}

.tacp-body ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.tacp-body ul li {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 20px;
  list-style: none;
}

/* Small brand-coloured square bullet */
.tacp-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--tacp-brand);
}

/* "No advertising" highlight box */
.tacp-callout {
  margin: 22px 0 8px;
  padding: 20px 22px 8px;
  border-left: 4px solid var(--tacp-brand);
  background: var(--tacp-brand-soft);
}

/* Tables scroll sideways inside their own box on small screens */
.tacp-table {
  overflow-x: auto;
  margin: 0 0 14px;
  border: 1px solid var(--tacp-border);
}

.tacp-body table {
  width: 100%;
  min-width: 540px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.tacp-body th,
.tacp-body td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--tacp-border);
  font-size: 14px;
  line-height: 1.55;
}

.tacp-body th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tacp-text);
  background: #f7f7f7;
}

.tacp-body tr:last-child td {
  border-bottom: 0;
}

.tacp-body td:first-child {
  color: var(--tacp-text);
}

.tacp-label {
  margin: 0 0 6px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tacp-brand);
}

.tacp-meta {
  margin: 6px 0 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  color: var(--tacp-muted);
}

/* ---------- Pop-up ---------- */
html.tacp-open {
  overflow: hidden;
}

/* Flex column: fixed header and footer, scrolling body in between */
.tacp-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  margin: auto;
  padding: 0;
  display: none;
  flex-direction: column;
  color: var(--tacp-text);
  background: var(--tacp-bg);
  border: 0;
  border-top: 4px solid var(--tacp-brand);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.tacp-dialog[open] {
  display: flex;
  animation: tacp-in 0.25s ease;
}

.tacp-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

@keyframes tacp-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.tacp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--tacp-border);
}

.tacp-head h2 {
  margin: 0;
  padding: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tacp-text);
}

.tacp-x {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tacp-border);
  border-radius: 4px;
  background: #fff;
  color: var(--tacp-muted);
  cursor: pointer;
}

.tacp-x:hover {
  color: var(--tacp-text);
  background: #f4f4f4;
}

.tacp-x svg {
  width: 18px;
  height: 18px;
}

.tacp-dialog .tacp-body {
  overflow-y: auto;
  padding: 18px 28px 22px;
  overscroll-behavior: contain;
}

.tacp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  border-top: 1px solid var(--tacp-border);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
}

.tacp-foot a {
  color: var(--tacp-muted);
  text-decoration: underline;
}

.tacp-close {
  margin: 0;
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--tacp-brand);
  color: #fff;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.tacp-close:hover {
  background: var(--tacp-brand-dark);
}

@media (prefers-reduced-motion: reduce) {
  .tacp-dialog[open] {
    animation: none;
  }
}

@media (max-width: 600px) {
  .tacp-head,
  .tacp-dialog .tacp-body,
  .tacp-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
  .tacp-dialog {
    max-height: calc(100vh - 32px);
  }
}

/* ---------- Standalone privacy.html page ---------- */
.tacp-page {
  margin: 0;
  background: #fff;
}

.tacp-page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.tacp-page-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--tacp-border);
}

.tacp-page-header img {
  display: block;
  height: 44px;
  width: auto;
}

.tacp-page main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.tacp-page h1 {
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--tacp-text);
}

.tacp-page .tacp-meta {
  margin-bottom: 28px;
}

.tacp-page-footer {
  padding: 22px 0;
  background: #000;
}

.tacp-page-footer p {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  color: #ccc;
}

.tacp-page-footer a {
  color: #fff;
}

/* Footer link added next to the copyright line on every page */
a.tacp-footer-link {
  text-decoration: underline;
}
