:root {
  --blog-body-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.privacy-policy {
  /* Base typography tweaks */
  font-family: var(--blog-body-font);
  color: var(--dark);
  line-height: 1.4;
  text-align: left;
  background-color: var(--bg-primary, #0a0a0a);
}

/* Container for readable width */
.privacy-policy .container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
} 
.article-metadata {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Hero banner */
.hero {
  position: relative;
  height: 40vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center; 
  padding-left:0 !important;
  padding-right:0 !important;
  width: 100%;
}

.privacy-policy .blog-hero {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding-top: clamp(80px, 10vw, 100px);
  padding-bottom: 0;
}

.privacy-policy .blog-hero .titles-only {
  padding-bottom: 0;
}

.privacy-policy h1 {
  font-size: 3rem;
  margin: 0;
}

/* Content elements */
.privacy-policy h1,
.privacy-policy h2,
.privacy-policy h3,
.privacy-policy h4 {
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  text-align: left;
}

/* Anchor icon styling - appears on hover */
.privacy-policy .anchor-icon {
  visibility: hidden;
  margin-left: 0.5rem;
  text-decoration: none;
  color: #999;
  font-size: 0.8em;
  font-weight: normal;
  transition: color 0.2s ease;
}

.privacy-policy h1:hover .anchor-icon,
.privacy-policy h2:hover .anchor-icon,
.privacy-policy h3:hover .anchor-icon,
.privacy-policy h4:hover .anchor-icon,
.privacy-policy h5:hover .anchor-icon,
.privacy-policy h6:hover .anchor-icon {
  visibility: visible;
}

.privacy-policy .anchor-icon:hover {
  color: #666;
}

.privacy-policy p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.privacy-policy ul {
  list-style: disc outside;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-policy ol {
  list-style: decimal outside;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-policy ol li {
  padding-left: 1rem;
}

.privacy-policy hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem auto;
  width: 60%;
}

.privacy-policy img {
  margin: 1.5rem 0;
}

.privacy-policy figure {
  margin: 1.5rem 0 3.5rem;
}

.privacy-policy figure img {
  display: block;
  margin: 0;
}

.privacy-policy figcaption {
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  line-height: 1;
  font-size: 0.875rem;
}

.privacy-policy figcaption small {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1em;
}

/* Links */
.privacy-policy a {
  color: var(--brand-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.privacy-policy a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.privacy-policy a:visited {
  color: var(--brand-color);
}

/* Blockquotes */
.privacy-policy blockquote {
  border-left: 4px solid var(--brand-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--secondary);
  font-style: italic;
}

/* Inline code styling */
.privacy-policy code:not(pre code) {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent, #47FFD7);
  padding-top: calc(0.2em - 1px);
  padding-bottom: calc(0.2em - 1px);
  padding-left: calc(0.4em + 2px);
  padding-right: calc(0.4em + 2px);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.85em;
  font-weight: bold;
  letter-spacing: -0.01em;
}

/* Code blocks (pre) */
.privacy-policy pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.privacy-policy pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 0.9em;
}

/* KaTeX math formulas */
/* Block math ($$...$$) - centered display formulas */

/* Ensure paragraphs containing math center their content (modern browsers) */
.privacy-policy p:has(.katex-display),
.privacy-policy p:has(.katex:only-child) {
  text-align: center !important;
}

/* Universal rule for all katex-display elements - use block display with centered content */
.privacy-policy .katex-display,
.privacy-policy * .katex-display {
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Handle inline katex that appears as the only child in a paragraph (should be block math) */
/* This catches cases where $$...$$ formulas are rendered as .katex instead of .katex-display */
/* Only apply to paragraphs where katex is the only or first/last child (block math scenario) */
.privacy-policy p > .katex:only-child,
.privacy-policy p:has(> .katex:only-child),
.privacy-policy p:has(> .katex:first-child:last-child) {
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

/* Center paragraphs that contain only a katex element (block math in paragraph) */
.privacy-policy p:has(> .katex:only-child) {
  text-align: center !important;
}

/* Special handling when inside paragraphs - ensure it breaks out of text-align context */
.privacy-policy p .katex-display {
  text-align: center !important;
  /* Force the paragraph's text-align to not affect this */
  direction: ltr !important;
}

/* Center the actual KaTeX content inside */
.privacy-policy .katex-display > .katex {
  display: inline-block !important;
  text-align: initial !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Inline math ($...$) - keep inline with text */
.privacy-policy .katex:not(.katex-display > .katex):not(p > .katex:only-child) {
  font-size: 1.05em;
}

/* Center the actual KaTeX content */
.privacy-policy .katex-display > .katex {
  display: inline-block !important;
  text-align: initial;
  margin: 0 !important;
  flex-shrink: 0;
}

/* Inline math ($...$) - keep inline with text */
.privacy-policy .katex:not(.katex-display > .katex) {
  font-size: 1.05em;
}

/* Table wrapper for horizontal scroll when needed */
.privacy-policy .table-scroll {
  width: 100%; /* default: respect container width */
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

/* Full-bleed variant: allow wrapper to grow to viewport and center */
.privacy-policy .table-scroll.is-fullbleed {
  /* Full-bleed container aligned to viewport with equal gutters */
  width: 100vw;
  max-width: none;
  left: auto;
  transform: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: var(--page-padding-x, clamp(1.5rem, 5vw, 6rem));
  padding-right: var(--page-padding-x, clamp(1.5rem, 5vw, 6rem));
}

/* Table styles */
.privacy-policy table {
  width: max-content; /* let table grow based on content, potentially wider than container */
  border-collapse: collapse; /* ensures borders share edges */
  margin: 0; /* wrapper handles layout */
}

.privacy-policy table th {
  text-align: left; /* column headers left-aligned */
  vertical-align: top;
}

.privacy-policy table th,
.privacy-policy table td {
  width: 200px;
  min-width: 200px;
  max-width: 220px;
  vertical-align: top; /* top-align content in all cells */
  padding: 0.5rem;
}

/* Dotted vertical dividers between columns */
.privacy-policy table th:not(:last-child),
.privacy-policy table td:not(:last-child) {
  border-right: 1px dotted var(--border-color);
}

@media (max-width: 768px) {
  .privacy-policy .hero-content h1 {
    font-size: 2.25rem;
  }
  .privacy-policy .container {
    padding-left: var(--page-padding-x, clamp(1.5rem, 5vw, 6rem));
    padding-right: var(--page-padding-x, clamp(1.5rem, 5vw, 6rem));
  }
  .privacy-policy .table-scroll.is-fullbleed {
    padding-left: var(--page-padding-x, clamp(1.5rem, 5vw, 6rem));
    padding-right: var(--page-padding-x, clamp(1.5rem, 5vw, 6rem));
  }
}