/* Policy documents — Meridian-inspired single-column layout, BD chrome */

html:has(body.policy-doc) {
  background: #f8faff;
}

body.policy-doc {
  margin: 0;
  min-height: 100vh;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: #1d1d1f;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(168, 196, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(91, 140, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 75%, rgba(53, 92, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 45%, #fafbff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body.policy-doc .bd-site-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(168, 196, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(91, 140, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 75%, rgba(53, 92, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 45%, #fafbff 100%);
  background-attachment: fixed;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.pd-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.pd-top__brand img {
  width: 20px;
  height: 20px;
}

.pd-top__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 18px;
}

.pd-top__links a {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.pd-top__links a:hover,
.pd-top__links a[aria-current="page"] {
  color: #1d1d1f;
}

.pd-doc {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.pd-doc > h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #1d1d1f;
}

.pd-updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: #6e6e73;
}

.pd-section {
  margin: 0 0 36px;
}

.pd-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1d1d1f;
}

.pd-section h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #1d1d1f;
}

.pd-section p {
  margin: 0 0 12px;
  color: #424245;
  max-width: none;
}

.pd-section ul {
  margin: 0 0 12px;
  padding: 0 0 0 1.25rem;
  color: #424245;
}

.pd-section li {
  margin: 0 0 8px;
}

.pd-section li:last-child {
  margin-bottom: 0;
}

.pd-link {
  color: #355cff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-link:hover {
  color: #1e40af;
}

.pd-table-wrap {
  margin: 14px 0 16px;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pd-table th,
.pd-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e6e73;
  background: rgba(0, 0, 0, 0.02);
}

.pd-table tr:last-child td {
  border-bottom: 0;
}

.pd-table code {
  font-size: 0.92em;
}

/* Footer — reveal from behind sheet (match main site) */
body.policy-doc .site-footer,
body.policy-doc .site-footer--reveal {
  position: sticky;
  bottom: 0;
  z-index: 0;
  margin-top: 0;
  flex: none;
  background: #0a0a0c;
  border-top: 0;
  padding: 64px clamp(24px, 5vw, 48px) 40px;
  color: rgba(255, 255, 255, 0.72);
}

body.policy-doc .site-footer__inner {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
}

body.policy-doc .site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: start;
  gap: 40px 56px;
  width: 100%;
}

body.policy-doc .site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: #fff;
  width: max-content;
  max-width: 100%;
  transition: color 0.2s ease;
}

body.policy-doc .site-footer__brand:hover {
  color: #cfe4ff;
}

body.policy-doc .site-footer__mark {
  width: clamp(104px, 11vw, 128px);
  height: clamp(104px, 11vw, 128px);
  display: block;
  flex-shrink: 0;
  filter: brightness(1.4) saturate(0.9);
  transition: filter 0.2s ease;
}

body.policy-doc .site-footer__brand:hover .site-footer__mark {
  filter: brightness(1.55) saturate(1.15);
}

body.policy-doc .site-footer__name {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}

body.policy-doc .site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(7.5rem, max-content));
  gap: 28px 48px;
  justify-self: end;
  padding-top: 6px;
}

body.policy-doc .site-footer__heading {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}

body.policy-doc .site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.policy-doc .site-footer__list a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.15s ease;
}

body.policy-doc .site-footer__list a:hover {
  color: #fff;
}

body.policy-doc .site-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 720px) {
  .pd-doc {
    width: min(100% - 28px, 720px);
    padding: 40px 0 72px;
  }

  .pd-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  body.policy-doc .site-footer {
    padding: 48px clamp(24px, 5vw, 48px) 32px;
  }

  body.policy-doc .site-footer__inner {
    gap: 40px;
  }

  body.policy-doc .site-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body.policy-doc .site-footer__name {
    font-size: clamp(28px, 8vw, 40px);
  }

  body.policy-doc .site-footer__mark {
    width: 88px;
    height: 88px;
  }

  body.policy-doc .site-footer__cols {
    width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
  }
}

@media (max-width: 560px) {
  body.policy-doc .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}
