/* Privacy is the first legal detail layout; other documents stay unchanged. */
/* Reserve the same geometry before and after custom control initialization. */
.legal-privacy-page > .legal-document-tools [data-policy-language],
.legal-privacy-page > .legal-document-tools .legal-language-control {box-sizing:border-box;width:180px;min-width:180px;max-width:180px;flex:0 0 180px;height:42px;}
body.legal-body[data-public-ui] .legal-document-tools [data-policy-language] {font-size:13px!important;min-height:42px;padding:10px 18px;}
.legal-privacy-page > .legal-document-tools .legal-language-trigger,
.legal-privacy-page > .legal-document-tools .legal-language-trigger:is(:hover,:active,:focus-visible) {box-sizing:border-box;height:42px;min-height:42px;transform:none;line-height:20px;white-space:nowrap;}
.legal-privacy-page .legal-language-option:is(:hover,:active,:focus-visible) {transform:none;}
body.legal-body:has(.legal-privacy-page)[data-public-ui] {background:radial-gradient(ellipse 70% 600px at 50% 80px,rgba(28,66,94,.13),transparent 100%),var(--public-canvas);}
body.legal-body[data-public-ui] main.legal-privacy-page {background:transparent;}
.legal-privacy-page .legal-language-menu {isolation:isolate;}
.legal-privacy-page .legal-language-menu::before {content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(160px 100px at var(--tool-x,50%) var(--tool-y,50%),rgba(229,242,252,.075),transparent);opacity:var(--tool-light,0);z-index:-1;}
.legal-document-tools {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:0 0 36px;}
.legal-document-tools button,.legal-document-tools select {min-height:42px;border:1px solid rgba(205,219,231,.25);border-radius:999px;background:#080f16;color:#f1f4f4;padding:10px 18px;font:inherit;font-size:13px;cursor:pointer;transition:border-color 180ms,box-shadow 180ms;}
.legal-document-tools button {display:inline-flex;align-items:center;gap:8px;}
.legal-document-tools svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.legal-document-tools label {display:flex;align-items:center;gap:10px;font-size:12px;color:#aab6bf;}
.legal-document-tools select[hidden] {display:none;}
.legal-language-control {position:relative;background:#080f16;border-radius:22px;min-width:138px;isolation:isolate;}
.legal-document-tools .legal-language-trigger {width:100%;padding-right:36px;position:relative;z-index:1;text-align:left;}
.legal-language-trigger::after {content:'';position:absolute;right:16px;top:16px;width:7px;height:7px;border-right:1.5px solid #b8c6cf;border-bottom:1.5px solid #b8c6cf;transform:rotate(45deg);transition:transform 180ms;}
.legal-language-control.is-open {border-radius:14px 14px 0 0;z-index:25;}
.legal-document-tools .is-open .legal-language-trigger {border-radius:14px 14px 0 0;border-color:rgba(205,219,231,.28);border-bottom-color:transparent;}
.is-open .legal-language-trigger::after {transform:rotate(225deg);}
.legal-language-menu {position:absolute;top:calc(100% - 1px);left:0;right:0;padding:7px 6px;background:#080f16;border:1px solid rgba(205,219,231,.28);border-top:0;border-radius:0 0 14px 14px;box-shadow:0 18px 30px #0005;z-index:2;}
.legal-language-menu[hidden] {display:none;}
.legal-document-tools .legal-language-option {display:block;width:100%;border:0;border-radius:7px;min-height:38px;padding:10px 12px;background:transparent;text-align:left;color:#bdcad3;font-weight:400;}
.legal-document-tools .legal-language-option[aria-selected=true] {background:rgba(50,197,255,.06);color:#cceefc;}
.legal-document-tools .legal-language-option:is(:hover,:focus-visible) {background:rgba(218,235,247,.07);color:#fff;box-shadow:none;outline:none;}
.legal-document-tools .legal-language-option {isolation:isolate;transition:color 160ms ease,background-color 160ms ease;}
.legal-document-tools .legal-language-option::before {content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(120px 65px at var(--tool-x,50%) var(--tool-y,50%),rgba(229,242,252,.1),transparent);opacity:var(--tool-light,0);pointer-events:none;z-index:-1;}
.legal-language-menu {will-change:opacity,transform;}
.legal-language-control,.legal-document-tools .legal-language-trigger {transition:border-radius 200ms ease,border-color 180ms ease;}
/* One continuous selector surface, above the document's entrance layer. */
body.legal-body[data-public-ui] .legal-privacy-page > .legal-document-tools {z-index:40;}
.legal-privacy-page > .legal-document-tools .legal-language-control {border-radius:14px;background:#080f16;}
.legal-privacy-page > .legal-document-tools .legal-language-trigger {border-radius:14px;background:transparent;}
.legal-privacy-page > .legal-document-tools .legal-language-control.is-open {border-radius:14px 14px 0 0;box-shadow:none;}
.legal-privacy-page > .legal-document-tools .is-open .legal-language-trigger {border-radius:14px 14px 0 0;border-bottom-color:transparent;box-shadow:none;}
.legal-privacy-page .legal-language-menu {top:calc(100% - 2px);border-top:0;background:#080f16;transform-origin:top center;}
.legal-privacy-page .legal-language-control.is-open > .legal-tool-rim {mask-image:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);border-bottom-width:0;border-radius:14px 14px 0 0;}
.legal-privacy-page > .legal-document-tools .legal-language-control,
.legal-privacy-page > .legal-document-tools .legal-language-trigger,
.legal-privacy-page > .legal-document-tools .legal-language-menu {background:#080f16;box-shadow:none;}
.legal-privacy-page > .legal-document-tools .legal-language-control::before {display:none;}
.legal-privacy-page .legal-language-control > .legal-tool-rim {display:none;}
.legal-language-outline {position:absolute;top:-1px;left:-1px;right:-1px;height:calc(var(--language-surface-height,42px) + 2px);box-sizing:border-box;border:1px solid transparent;border-radius:14px;pointer-events:none;z-index:4;background:radial-gradient(110px 75px at var(--tool-x,50%) var(--tool-y,50%),#eff8ff,rgba(216,236,250,.6) 35%,transparent) border-box;mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:var(--tool-light,0);}
.legal-tool-reflective {position:relative;isolation:isolate;}
.legal-tool-rim {position:absolute;inset:-1px;border:1px solid transparent;border-radius:inherit;background:radial-gradient(105px 70px at var(--tool-x,50%) var(--tool-y,50%),#eff8ff,rgba(216,236,250,.55) 35%,transparent 100%) border-box;mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:var(--tool-light,0);pointer-events:none;z-index:3;}
.legal-document-tools {flex-direction:column;gap:12px;margin-bottom:42px;}
.legal-document-tools label {flex-direction:column;gap:9px;}
.legal-document-tools .legal-language-control {width:min(300px,calc(100vw - 64px));min-width:190px;}
.legal-document-actions {display:flex;justify-content:center;gap:8px;}
.legal-document-tools .legal-document-actions button {min-height:34px;padding:7px 11px;font-size:12px;color:#b8c5ce;background:transparent;border-color:rgba(205,219,231,.1);}
.legal-document-tools .legal-document-actions button:hover {color:#f1f4f4;border-color:rgba(205,219,231,.25);}
.legal-document-actions svg {width:15px;height:15px;}
.legal-privacy-page .legal-document-tools {flex-direction:row;gap:12px 20px;margin:0 auto 32px;}
.legal-privacy-page .legal-document-tools label {flex-direction:row;gap:10px;}
.legal-privacy-page .legal-document-tools .legal-language-control {width:155px;min-width:155px;}
.legal-privacy-page .legal-document-tools .legal-document-actions {gap:8px;}
.legal-privacy-page .legal-document-tools .legal-document-actions button {min-height:40px;}
.legal-privacy-page .legal-document-tools [data-language-label] {font-size:12px;color:#aab6bf;}
@media(max-width:600px){.legal-privacy-page .legal-document-tools{gap:10px;margin-bottom:28px;}.legal-privacy-page .legal-document-tools label{width:100%;justify-content:center;}}
/* A document utility strip below the site header, separate from the title. */
body.legal-body[data-public-ui] .legal-privacy-page > .legal-document-tools {position:relative;width:min(calc(100% - var(--public-gutter)*2),var(--public-width-reading));box-sizing:border-box;margin:24px auto 0;padding:16px 0;justify-content:space-between;gap:16px;background:linear-gradient(90deg,transparent,rgba(205,219,231,.025),transparent);}
.legal-privacy-page > .legal-document-tools::after {content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(205,219,231,.18) 15%,rgba(205,219,231,.18) 85%,transparent);pointer-events:none;}
.legal-privacy-page > .legal-document-tools {isolation:isolate;}
.legal-privacy-page > .legal-document-tools::before {content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(280px 125px at var(--tool-x,50%) var(--tool-y,50%),rgba(229,242,252,.075),rgba(205,226,242,.025) 55%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);opacity:var(--tool-light,0);}
.legal-privacy-page > .legal-document-tools::after {background:radial-gradient(125px 75px at var(--tool-x,50%) calc(var(--tool-y,0px) - var(--strip-height,74px)),rgba(239,248,255,var(--tool-light,0)),transparent),linear-gradient(90deg,transparent,rgba(205,219,231,.18) 15%,rgba(205,219,231,.18) 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);}
.legal-privacy-page > .legal-document-tools label {flex-direction:row;width:auto;gap:16px;}
.legal-privacy-page > .legal-document-tools .legal-document-actions {gap:20px;}
.legal-privacy-page > .legal-document-tools .legal-document-actions button {border-color:transparent;border-radius:10px;padding:9px 12px;min-height:40px;}
.legal-privacy-page > .legal-document-tools .legal-document-actions button:hover {border-color:rgba(205,219,231,.16);}
.legal-privacy-page > .legal-document-tools .legal-language-control {width:180px;background:linear-gradient(135deg,#111c26,#080f16);box-shadow:inset 0 1px 0 rgba(239,248,255,.04);}
.legal-privacy-page > .legal-document-tools .legal-language-trigger {border-color:rgba(205,219,231,.34);font-weight:500;background:transparent;}
.legal-privacy-page > .legal-document-tools .legal-language-trigger:hover {border-color:rgba(239,248,255,.55);}
.legal-privacy-page > .legal-document-tools .legal-tool-reflective::before {content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(150px 90px at var(--tool-x,50%) var(--tool-y,50%),rgba(229,242,252,.09),rgba(205,226,242,.025) 55%,transparent);opacity:var(--tool-light,0);pointer-events:none;z-index:-1;}
.legal-privacy-page > .legal-document-tools .legal-document-actions button {transition:color 180ms,border-color 180ms,box-shadow 180ms;}
.legal-privacy-page > .legal-document-tools .legal-document-actions button:is(:hover,:focus-visible) {color:#f5f9fc;box-shadow:inset 0 1px 0 rgba(239,248,255,.025);}
.legal-privacy-page > .legal-document-tools :is(button,label) > span {margin:0;line-height:1.4;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-hero {padding-top:56px;}
@media(max-width:600px){body.legal-body[data-public-ui] .legal-privacy-page > .legal-document-tools{justify-content:center;margin-top:12px;gap:10px;}.legal-privacy-page > .legal-document-tools label{width:100%;justify-content:center;}.legal-privacy-page > .legal-document-tools .legal-document-actions{gap:16px;}}
.legal-document-tools :is(button,select):hover {border-color:#eef8ff;box-shadow:inset 0 0 12px rgba(239,248,255,.04);}
.legal-document-tools :is(button,select):focus-visible {outline:1px solid #32c5ff;outline-offset:3px;}
.legal-document-related {width:min(calc(100% - var(--public-gutter)*2),var(--public-width-reading));margin:0 auto;padding-bottom:40px;}
@media print {
 body.legal-body {background:#fff!important;color:#111!important;}
 body.legal-body .public-header-positioner,body.legal-body .public-footer,.legal-document-tools,.legal-topic-grid,.legal-document-related {display:none!important;}
 body.legal-body[data-public-ui] .legal-privacy-page,body.legal-body[data-public-ui] .legal-privacy-page .legal-hero {background:#fff!important;}
 body.legal-body[data-public-ui] .legal-privacy-page :is(h1,h2,p,span,a) {color:#111!important;text-shadow:none!important;animation:none!important;}
 body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card {break-inside:avoid;padding:18px 0;}
 body.legal-body[data-public-ui] .legal-privacy-page .legal-hero {padding-top:0;}
}
.legal-related-links {display:flex;flex-wrap:wrap;justify-content:center;gap:14px 24px;margin:0 0 40px;font-size:13px;}
body.legal-body[data-public-ui] .legal-privacy-page :is(.legal-related-links a,.legal-content-card a) {color:#32c5ff;text-decoration:none;text-underline-offset:4px;}
body.legal-body[data-public-ui] .legal-privacy-page :is(.legal-related-links a,.legal-content-card a):is(:hover,:focus-visible) {text-decoration:underline;}
body.legal-body[data-public-ui] .legal-privacy-page {background:radial-gradient(ellipse 70% 480px at 50% 0,rgba(28,66,94,.13),transparent 100%),var(--public-canvas);}
body.legal-body[data-public-ui] .legal-privacy-page .legal-hero {padding-top:clamp(64px,7vw,96px);padding-bottom:32px;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-hero p {max-width:620px;margin-top:22px;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-hero-inner > span {display:block;margin-top:18px;font-size:12px;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-topic-grid {margin-bottom:64px;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-stack {width:100%;max-width:none;margin-inline:auto;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card {position:relative;padding:40px 0;border:0;scroll-margin-top:110px;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card::before {content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(205,219,231,.2) 15%,rgba(205,219,231,.2) 85%,transparent);}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card h2 {color:#f1f4f4;font-size:clamp(21px,2vw,25px);letter-spacing:-.025em;margin-bottom:16px;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card p {font-size:16px;line-height:1.9;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card {text-align:center;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card:first-child::before {display:none;}
body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card:not(:first-child)::after {content:'';position:absolute;top:0;left:0;right:0;height:1px;pointer-events:none;background:radial-gradient(110px 65px at var(--section-light-x,50%) var(--section-light-y,0px),#eff8ff,rgba(216,236,250,.6) 35%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);opacity:var(--section-light,0);}
@media(max-width:700px){body.legal-body[data-public-ui] .legal-privacy-page .legal-topic-grid{margin-bottom:40px;}body.legal-body[data-public-ui] .legal-privacy-page .legal-content-card{padding:30px 0;}}

/* Keep document controls immediately below the pill header. */
body.legal-body[data-public-ui] .legal-privacy-page > .legal-document-tools {margin-top:0;}


/* Give tablet document controls comfortable touch targets. */
@media (min-width:601px) and (max-width:1180px) and (pointer:coarse) {
  .legal-privacy-page > .legal-document-tools .legal-language-control,
  .legal-privacy-page > .legal-document-tools .legal-language-trigger {
    height:44px; min-height:44px;
  }
  .legal-privacy-page > .legal-document-tools .legal-language-option,
  .legal-privacy-page > .legal-document-tools .legal-document-actions button {
    min-height:44px;
  }
}
