/* Bot2Bot legal reading system: unboxed, responsive, and print-safe. */
.policy-page {
  margin: auto;
  width: min(1280px, calc(100% - 48px));
  padding: clamp(48px, 7vw, 88px) 0 0;
}

.policy-page .v9-label { margin-bottom: 28px; }

.policy-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0 0 clamp(36px, 6vw, 70px);
}
.policy-switcher a {
  border-bottom: 1px solid transparent;
  color: #8f8f9c;
  font-size: 12px;
  line-height: 1.7;
  padding: 0 0 9px;
  text-decoration: none;
}
.policy-switcher a:hover { color: #e9e9ef; }
.policy-switcher a[aria-current="page"] {
  border-bottom-color: #d8d8df;
  color: #f4f4f7;
}

.policy-header {
  max-width: 880px;
  padding-bottom: clamp(34px, 5vw, 58px);
}
.policy-page .policy-header h1 {
  color: #f5f5f8;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
}
.policy-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
}
.policy-page .policy-status,
.policy-page .policy-status strong {
  color: #a9a9b5;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  max-width: none;
}
.policy-status span {
  color: #73737f;
  font: 9px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.policy-rule {
  background: #ffffff24;
  height: 1px;
  margin: 0 0 clamp(36px, 5vw, 60px);
  width: 100%;
}
.policy-reading-grid {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 72ch);
  gap: clamp(42px, 7vw, 96px);
  justify-content: center;
}

.policy-contents {
  align-self: start;
  max-height: calc(100svh - 130px);
  overflow-y: auto;
  padding: 2px 12px 18px 0;
  position: sticky;
  scrollbar-color: #ffffff2b transparent;
  top: 104px;
}
.policy-contents-title {
  color: #cfcfd8;
  display: block;
  font: 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.policy-contents nav,
.policy-contents-mobile nav { display: grid; gap: 3px; }
.policy-contents-link {
  border-left: 1px solid #ffffff18;
  color: #898996;
  font-size: 11px;
  line-height: 1.5;
  padding: 7px 0 7px 14px;
  text-decoration: none;
}
.policy-contents-link:hover { color: #d7d7df; }
.policy-contents-link.is-current {
  border-left-color: #9ad9ff;
  color: #f2f2f5;
}
.policy-contents-mobile { display: none; }

.policy-document {
  background:transparent;
  border:0;
  box-shadow:none;
  max-width: 72ch;
  min-width: 0;
  padding: 0;
}
.policy-page .policy-document h2 {
  color: #f1f1f5;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 510;
  letter-spacing: -.035em;
  line-height: 1.22;
  margin: 58px 0 17px;
  scroll-margin-top: 112px;
}
.policy-page .policy-document h2:first-child { margin-top: 0; }
.policy-page .policy-document h3 {
  color: #dedee5;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -.01em;
  line-height: 1.45;
  margin: 34px 0 12px;
}
.policy-page .policy-document p,
.policy-page .policy-document li {
  color: #bcbcc7;
  font-size: 15px;
  line-height: 1.78;
}
.policy-page .policy-document p {
  margin: 0 0 19px;
  max-width: none;
}
.policy-document ul,
.policy-document ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.policy-document li + li { margin-top: 9px; }
.policy-document a,
.policy-related a,
.policy-inline-action {
  color: #b6dff7;
  text-decoration: underline;
  text-decoration-color: #b6dff780;
  text-underline-offset: 4px;
}
.policy-document a:hover,
.policy-related a:hover,
.policy-inline-action:hover { color: #e5f5ff; }

.policy-account-note {
  border-top: 1px solid #ffffff24;
  margin: clamp(64px, 9vw, 108px) auto 0;
  max-width: 72ch;
  padding: 34px 0 0;
}
.policy-page .policy-account-note h2 {
  color: #ededf2;
  font-size: 22px;
  font-weight: 520;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}
.policy-page .policy-account-note p {
  color: #aaaab6;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 14px;
  max-width: 68ch;
}
.policy-inline-action {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 0;
}

.policy-related {
  align-items: baseline;
  border-top: 1px solid #ffffff18;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: clamp(68px, 10vw, 120px) auto 0;
  max-width: 72ch;
  padding-top: 24px;
}
.policy-related span {
  color: #70707d;
  font: 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.policy-related a { font-size: 12px; }

.policy-page a:focus-visible,
.policy-page button:focus-visible,
.policy-page summary:focus-visible {
  outline: 2px solid #9ad9ff;
  outline-offset: 5px;
}

.policy-header h1:focus,
.policy-document h2:focus {
  outline: none;
}

.policy-document h2:focus-visible {
  box-shadow: inset 3px 0 0 #9ad9ff;
  margin-left: -14px;
  padding-left: 14px;
}

@media (max-width: 820px) {
  .policy-page { width: min(100% - 36px, 720px); }
  .policy-switcher { gap: 8px 26px; margin-bottom: 44px; }
  .policy-reading-grid { display: block; }
  .policy-contents { display: none; }
  .policy-contents-mobile {
    border-bottom: 1px solid #ffffff20;
    border-top: 1px solid #ffffff20;
    display: block;
    margin: 0 0 38px;
  }
  .policy-contents-mobile summary {
    align-items: center;
    color: #d9d9df;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    list-style: none;
    padding: 17px 0;
  }
  .policy-contents-mobile summary::-webkit-details-marker { display: none; }
  .policy-contents-mobile summary::after { color: #858592; content: '+'; font-size: 18px; }
  .policy-contents-mobile[open] summary::after { content: '−'; }
  .policy-contents-mobile nav { padding: 0 0 17px; }
  .policy-contents-mobile .policy-contents-link { font-size: 12px; padding-block: 9px; }
  .policy-page .policy-document h2 { margin-top: 48px; scroll-margin-top: 92px; }
}

@media (max-width: 520px) {
  .policy-page { padding-top: 38px; width: min(100% - 32px, 680px); }
  .policy-page .v9-label { margin-bottom: 22px; }
  .policy-switcher { gap: 8px 24px; margin-bottom: 36px; }
  .policy-switcher a { font-size: 11px; }
  .policy-page .policy-header h1 { font-size: clamp(38px, 12vw, 54px); }
  .policy-page .policy-document p,
  .policy-page .policy-document li { font-size: 14px; line-height: 1.75; }
  .policy-page .v9-page-foot { display: block; }
  .policy-page .v9-page-foot nav { margin: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .policy-page * { scroll-behavior: auto !important; }
}

@media print {
  .navigation,
  .policy-page .v9-label,
  .policy-switcher,
  .policy-contents,
  .policy-contents-mobile,
  .policy-account-note,
  .policy-related,
  .policy-page .v9-page-foot { display: none !important; }
  .v9-page { background: #fff !important; color: #111 !important; padding-top: 0 !important; }
  .policy-page { padding: 0; width: 100%; }
  .policy-header { border-bottom: 1px solid #bbb; max-width: none; }
  .policy-page .policy-header h1,
  .policy-page .policy-document h2,
  .policy-page .policy-document h3 { color: #111; }
  .policy-page .policy-status,
  .policy-page .policy-status strong,
  .policy-page .policy-document p,
  .policy-page .policy-document li { color: #222; }
  .policy-reading-grid { display: block; }
  .policy-document { max-width: none; }
  .policy-document a { color: #111; text-decoration: underline; }
  .policy-document a::after { content: ' (' attr(href) ')'; font-size: .85em; }
}

/* Owner mobile reading cleanup. Legal content and desktop rules above are exact. */
.policy-mobile-sections { display: none; }
.policy-section-dialog { color: #ededf2; background: #17171d; border: 1px solid #ffffff2b; border-radius: 14px; box-shadow: 0 24px 90px #0009; padding: 0; }
.policy-section-dialog::backdrop { background: #0009; }
.policy-section-menu-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #17171d; border-bottom: 1px solid #ffffff18; z-index: 1; }
.policy-section-menu-head h2 { font: 600 15px/1.5 system-ui, sans-serif; margin: 0; }
.policy-sections-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.policy-section-dialog nav { display: grid; gap: 3px; padding: 10px 14px max(14px, env(safe-area-inset-bottom, 0px)); }
.policy-section-dialog .policy-contents-link { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; font-size: 13px; padding: 10px 12px; }
.policy-section-dialog :is(a,button):focus-visible { outline: 2px solid #9ad9ff; outline-offset: -3px; }
@media (max-width: 650px) {
  .policy-page { padding-top: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); width: calc(100% - max(32px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))); }
  .policy-page .v9-label { margin-bottom: 12px; }
  .policy-page .v9-label::before { display: none; }
  .policy-page .policy-switcher { gap: 6px 24px; margin-bottom: 22px; }
  .policy-page .policy-switcher a { font-size: 12px; min-height: 38px; padding: 9px 0; box-sizing: border-box; }
  .policy-page .policy-header { padding-bottom: 8px; }
  .policy-page .policy-header h1 { font-size: clamp(34px, 10vw, 42px); margin-bottom: 14px; }
  .policy-page .policy-rule { display: none; }
  .policy-page.has-mobile-sections .policy-contents-mobile { display: none; }
  .policy-page.has-mobile-sections .policy-mobile-sections { display: flex; justify-content: flex-end; position: sticky; top: calc(var(--policy-header-offset, 56px) + 8px); z-index: 70; padding: 5px 0; margin: 6px 0 18px; background: #0b0b0cf5; }
  .policy-sections-button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border: 1px solid #ffffff32; border-radius: 24px; background: #1b1b22; color: #eeeef3; font: 500 12px/1.5 system-ui,sans-serif; cursor: pointer; box-shadow: 0 4px 18px #0005; }
  .policy-sections-button span { color: #b0b1bf; font-size: 11px; }
  .policy-page.has-mobile-sections .policy-document h2 { scroll-margin-top: var(--policy-section-offset, 76px); }
  .policy-section-dialog { position: fixed; inset: auto max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); width: auto; max-width: 560px; max-height: min(72svh, 560px); overflow-y: auto; margin: 0 auto; overscroll-behavior: contain; }
}
@media print { .policy-mobile-sections, .policy-section-dialog { display: none !important; } }
