/* Shared legal-page format for Privacy Policy and Terms of Use. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --policy-red: var(--brand-red);
  --policy-dark: var(--text-main);
  --policy-text: var(--text-muted);
  --policy-muted: var(--text-muted);
  --policy-line: #dddddd;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--policy-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.privacy-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Legal page identity and version metadata. */
.privacy-hero {
  padding: 66px 0 58px;
  border-bottom: 1px solid var(--policy-line);
  background: linear-gradient(135deg, #ffffff, #fafafa);
}

.privacy-eyebrow {
  margin-bottom: 16px;
  color: var(--policy-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.privacy-eyebrow span {
  width: 4px;
  height: 20px;
  background: var(--policy-red);
}

.privacy-hero h1 {
  color: var(--policy-dark);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.privacy-hero h1 span {
  color: var(--policy-red);
}

.privacy-hero h1.legal-title-long {
  max-width: 980px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.02;
}

.privacy-hero h1.legal-title-long span {
  white-space: nowrap;
}

.privacy-company {
  margin-top: 19px;
  color: #333333;
  font-size: 17px;
  font-weight: 800;
}

.privacy-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-meta span {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--policy-line);
  border-radius: 6px;
  color: #4c4c4c;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.privacy-meta i {
  color: var(--policy-red);
}

.privacy-summary {
  max-width: 760px;
  margin-top: 22px;
  color: #595959;
  font-size: 16px;
  line-height: 1.65;
}

/* Policy index and long-form article layout. */
.privacy-content {
  padding: 52px 0 82px;
  background: #fafafa;
}

.policy-index {
  margin-bottom: 32px;
  padding: 27px 29px 30px;
  border: 1px solid var(--policy-line);
  border-top: 3px solid var(--policy-red);
  border-radius: 10px;
  background: #ffffff;
}

.policy-index > header {
  margin-bottom: 20px;
}

.policy-index > header p {
  margin-bottom: 5px;
  color: var(--policy-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-index > header h2 {
  color: var(--policy-dark);
  font-size: 25px;
  font-weight: 950;
}

.policy-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}

.policy-index-grid a {
  min-height: 42px;
  padding: 8px 6px;
  border-bottom: 1px solid #e9e9e9;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

.policy-index-grid a:hover,
.policy-index-grid a:focus-visible {
  border-color: var(--policy-red);
  color: var(--policy-red);
  outline: none;
}

.policy-index-grid a span {
  color: var(--policy-red);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
}

/* Directly linkable legal sections and content typography. */
.policy-accordion {
  display: grid;
  gap: 24px;
}

.policy-section {
  scroll-margin-top: 20px;
  border: 1px solid var(--policy-line);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.policy-section-header {
  min-height: 70px;
  padding: 17px 28px;
  border-bottom: 1px solid var(--policy-line);
  border-left: 4px solid var(--policy-red);
  display: flex;
  align-items: center;
  gap: 18px;
}

.policy-section-number {
  color: var(--policy-red);
  flex: 0 0 36px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
}

.policy-section-header h2 {
  color: var(--policy-dark);
  font-size: 21px;
  font-weight: 950;
}

.policy-section-inner {
  max-width: 940px;
  padding: 30px 38px 35px 86px;
}

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

.policy-subheading {
  margin: 30px 0 13px;
  padding-left: 13px;
  border-left: 3px solid var(--policy-red);
  color: #181818;
  font-size: 17px;
  font-weight: 950;
  scroll-margin-top: 20px;
}

.policy-subheading:first-child {
  margin-top: 0;
}

.policy-callout {
  margin: 16px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(225, 25, 25, 0.25);
  border-left: 4px solid var(--policy-red);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(225, 25, 25, 0.055), rgba(255, 255, 255, 0.94));
  color: #111;
  font-size: 14px;
  line-height: 1.68;
}

.policy-callout strong {
  margin-bottom: 6px;
  display: block;
  font-weight: 950;
}

.policy-list {
  margin: 4px 0 20px 19px;
  padding-left: 16px;
}

.policy-list li {
  margin-bottom: 9px;
  padding-left: 3px;
  color: var(--policy-text);
  font-size: 14px;
  line-height: 1.58;
}

.policy-list li::marker {
  color: var(--policy-red);
}

/* Wide legal tables scroll on screen and flatten for print. */
.policy-table-wrap {
  width: 100%;
  margin: 24px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--policy-line);
  border-radius: 8px;
}

.policy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.policy-table th,
.policy-table td {
  padding: 13px 14px;
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.policy-table thead th {
  background: #151515;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-table tr:nth-child(even) td {
  background: #fafafa;
}

.policy-table tbody th {
  width: 32%;
  background: #ffffff;
  color: var(--policy-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.policy-table tbody tr:nth-child(even) th {
  background: #fafafa;
}

.policy-table a {
  color: var(--brand-red-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.policy-back-link {
  margin-top: 20px;
  color: var(--policy-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

/* Fixed native anchor keeps long-policy navigation simple and reusable. */
.privacy-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  font-size: 18px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.privacy-back-to-top:hover,
.privacy-back-to-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 19px 38px rgba(225, 25, 25, 0.32);
  outline: 3px solid rgba(225, 25, 25, 0.2);
  outline-offset: 3px;
}

/* Mobile legal layout. */
@media (max-width: 760px) {
  .privacy-shell {
    width: min(100% - 30px, 1120px);
  }

  .privacy-hero {
    padding: 118px 0 40px;
  }

  .privacy-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .privacy-hero h1.legal-title-long {
    font-size: clamp(29px, 8.5vw, 36px);
  }

  .privacy-company {
    font-size: 15px;
    line-height: 1.45;
  }

  .privacy-summary {
    font-size: 15px;
  }

  .privacy-content {
    padding: 34px 0 58px;
  }

  .policy-index {
    padding: 23px 20px;
  }

  .policy-index-grid {
    grid-template-columns: 1fr;
  }

  .policy-section-header {
    padding: 16px 18px;
  }

  .policy-section-header h2 {
    font-size: 18px;
  }

  .policy-section-inner {
    max-width: none;
    padding: 24px 20px 29px;
  }

  .policy-section-inner p,
  .policy-list li {
    font-size: 15px;
  }

  .privacy-back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* Print removes navigation and preserves readable legal records. */
@media print {
  @page {
    size: letter;
    margin: 0.65in;
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }

  .site-header,
  .site-footer,
  .privacy-back-to-top,
  .policy-back-link {
    display: none !important;
  }

  .privacy-shell {
    width: 100%;
    max-width: none;
  }

  .privacy-hero {
    padding: 0 0 20pt;
    border-bottom: 1pt solid #777777;
    background: #ffffff !important;
  }

  .privacy-eyebrow {
    margin-bottom: 8pt;
    color: #333333;
    font-size: 9pt;
  }

  .privacy-eyebrow span,
  .privacy-meta i {
    display: none;
  }

  .privacy-hero h1,
  .privacy-hero h1 span {
    color: #000000;
  }

  .privacy-hero h1 {
    font-size: 30pt;
  }

  .privacy-company {
    margin-top: 9pt;
    font-size: 11pt;
  }

  .privacy-meta {
    margin-top: 10pt;
  }

  .privacy-meta span {
    min-height: 0;
    padding: 0;
    border: 0;
    color: #000000;
    font-size: 9pt;
  }

  .privacy-summary {
    margin-top: 10pt;
    color: #222222;
    font-size: 10pt;
    line-height: 1.45;
  }

  .privacy-content {
    padding: 18pt 0 0;
    background: #ffffff !important;
  }

  .policy-index {
    margin-bottom: 18pt;
    padding: 14pt;
    border: 1pt solid #777777;
    break-inside: avoid;
  }

  .policy-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-index-grid a {
    min-height: 0;
    padding: 3pt 0;
    border: 0;
    color: #000000;
    font-size: 8.5pt;
  }

  .policy-accordion {
    display: block;
  }

  .policy-section {
    margin-bottom: 18pt;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .policy-section-header {
    min-height: 0;
    padding: 8pt 0 5pt;
    border: 0;
    border-bottom: 1pt solid #555555;
    break-after: avoid;
  }

  .policy-section-number {
    color: #000000;
    font-size: 11pt;
  }

  .policy-section-header h2 {
    color: #000000;
    font-size: 15pt;
  }

  .policy-section-inner {
    max-width: none;
    padding: 9pt 0 0;
  }

  .policy-section-inner p,
  .policy-list li {
    color: #000000;
    font-size: 9.5pt;
    line-height: 1.42;
  }

  .policy-section-inner p {
    margin-bottom: 7pt;
  }

  .policy-subheading {
    margin: 13pt 0 6pt;
    padding-left: 0;
    border-left: 0;
    color: #000000;
    font-size: 11.5pt;
    break-after: avoid;
  }

  .policy-list {
    margin-bottom: 9pt;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }

  .policy-table-wrap {
    overflow: visible;
    border: 0;
  }

  .policy-table {
    min-width: 0;
    table-layout: fixed;
  }

  .policy-table th,
  .policy-table td {
    padding: 5pt;
    border: 0.5pt solid #777777;
    color: #000000;
    font-size: 7.5pt;
    line-height: 1.25;
  }

  .policy-table th {
    background: #eeeeee !important;
    color: #000000;
  }
}
