/* WBS INFO: shared document layout, scoped to six subpages. */
[data-info-doc="about"] {--doc-tone:var(--info-accent)}
[data-info-doc="privacy"] {--doc-tone:#66e3b0}
[data-info-doc="terms"] {--doc-tone:#b29aff}
[data-info-doc="cookies"] {--doc-tone:#ffca76}
[data-info-doc="copyright"] {--doc-tone:#ff9eba}
[data-info-doc="contacts"] {--doc-tone:#77c9ff}
[data-info-doc="cooperation"] {--doc-tone:#9edb77}
html[data-theme="light"] [data-info-doc="privacy"] {--doc-tone:#157455}
html[data-theme="light"] [data-info-doc="terms"] {--doc-tone:#6343b0}
html[data-theme="light"] [data-info-doc="cookies"] {--doc-tone:#87530d}
html[data-theme="light"] [data-info-doc="copyright"] {--doc-tone:#a4315c}
html[data-theme="light"] [data-info-doc="contacts"] {--doc-tone:#1b639a}
html[data-theme="light"] [data-info-doc="cooperation"] {--doc-tone:#486f25}
.ih-doc-pages {display:grid;min-width:0;gap:clamp(14px,2vw,24px)}
.info-home .ih-doc-hero {min-height:0;grid-template-columns:minmax(0,1fr) clamp(124px,20vw,242px);gap:clamp(16px,3vw,36px);padding:clamp(20px,3.8vw,46px)}
.info-home .ih-doc-hero--coop {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);margin:0}
.ih-doc-title {display:flex;align-items:center;gap:clamp(8px,1.4vw,16px);min-width:0;overflow-wrap:anywhere}
.info-home .ih-doc-title {margin:0 0 12px;font-size:clamp(24px,3.6vw,46px);line-height:1.15}
.ih-doc-title .ih-doc-mark {width:clamp(23px,3vw,36px);height:clamp(23px,3vw,36px)}
.ih-doc-mark {flex:none;color:var(--doc-tone,var(--info-accent))}
.ih-doc-title b {font-weight:inherit;color:var(--info-accent)}
.ih-doc-emblem {justify-self:center;display:grid;place-items:center;inline-size:clamp(108px,15vw,184px);aspect-ratio:1;border:1px solid color-mix(in srgb,var(--doc-tone) 43%,transparent);border-radius:29%;background:radial-gradient(ellipse at 38% 24%,color-mix(in srgb,var(--doc-tone) 20%,transparent),transparent 80%),var(--ih-inner);box-shadow:inset 0 1px 0 var(--ih-inset),0 12px 30px var(--ih-shadow)}
.ih-doc-emblem svg {width:54%;height:54%;filter:drop-shadow(0 0 12px color-mix(in srgb,var(--doc-tone) 34%,transparent))}
.ih-doc-date,.ih-doc-number {display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border:1px solid var(--ih-edge);border-radius:10px;background:var(--ih-inner);box-shadow:inset 0 1px 0 var(--ih-inset);font-size:13px;line-height:1.4;color:var(--info-muted)}
.ih-doc-date {margin:4px 0 0;max-width:100%;flex-wrap:wrap}
.ih-doc-date svg {color:var(--doc-tone);flex:none}
.ih-doc-date time {white-space:nowrap}
.ih-doc-number {flex:none;justify-content:center;min-width:29px;padding:3px 5px;color:var(--doc-tone);font-variant-numeric:tabular-nums}
.ih-doc-pages .ih-doc-toc,.ih-doc-pages .ih-doc-section {min-width:0;padding:clamp(14px,2.4vw,30px);border:1px solid var(--ih-edge);border-radius:18px;background:linear-gradient(145deg,var(--ih-inner),transparent 76%),var(--ih-glass);box-shadow:inset 0 1px 0 var(--ih-inset),0 8px 26px var(--ih-shadow);backdrop-filter:blur(14px)}
.ih-doc-pages h2:not(.ih-hero h2) {margin:0 0 12px;font-size:clamp(17px,2vw,24px);line-height:1.35;color:var(--info-fg);overflow-wrap:anywhere}
.ih-doc-toc-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 12px;list-style:none;padding:0;margin:0}
.ih-doc-toc-grid li {min-width:0}
.ih-doc-toc-grid a {display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 9px;border-radius:10px;color:var(--info-fg);text-decoration:none;line-height:1.35;overflow-wrap:anywhere}
.ih-doc-toc-grid a:hover {background:var(--ih-inner)}
.ih-doc-pages a:focus-visible {outline:2px solid var(--info-accent);outline-offset:2px}
.ih-doc-pages .ih-doc-body {gap:clamp(12px,1.5vw,20px);margin:0}
.ih-doc-section,.ih-cooperation-page [id^="cooperation-"] {scroll-margin-top:12rem}
.ih-doc-section:target {outline:1px solid var(--doc-tone);outline-offset:-1px}
.ih-doc-section h2 {display:flex;align-items:baseline;gap:10px}
.ih-doc-content {max-width:90ch;color:var(--info-muted);line-height:1.7}
.ih-doc-content p {margin:0 0 10px}
.ih-doc-content p:last-child {margin-bottom:0}
.ih-doc-content a {color:var(--info-accent);text-underline-offset:.2em;overflow-wrap:anywhere}
.ih-doc-heading {display:flex;align-items:center;gap:10px}
.ih-cooperation-page .ih-doc-heading .ih-doc-mark {width:23px;height:23px}
.ih-doc-hero--coop .ih-cooperation-card-image {max-width:520px;justify-self:center}
@media (max-width:920px) {.ih-doc-toc-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px) {
 .info-home .ih-doc-hero,.info-home .ih-doc-hero--coop {grid-template-columns:minmax(0,1fr);gap:14px}
 .ih-doc-emblem {display:none}
 .ih-doc-toc-grid {grid-template-columns:minmax(0,1fr);gap:3px}
 .ih-doc-hero--coop .ih-cooperation-card-image {grid-row:auto}
 .ih-doc-section,.ih-cooperation-page [id^="cooperation-"] {scroll-margin-top:6rem}
}

.info-home .ih-doc-title > .ih-doc-coop-title-text {font:inherit;letter-spacing:inherit;margin:0;min-width:0}

/* Cookies: the approved About hero rhythm, with a warm accent. */
.info-v6 main .info-home .ih-hero:is(.ih-cookie-hero,.ih-terms-hero) {
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(14px,2.2vw,32px);
  padding:clamp(20px,2.4vw,36px) clamp(20px,3.2vw,46px);
  border-color:color-mix(in srgb,var(--doc-tone) 30%,var(--line));
  background:radial-gradient(ellipse at 79% 49%,color-mix(in srgb,var(--info-accent) 20%,transparent),transparent 53%),
    radial-gradient(ellipse at 86% 76%,color-mix(in srgb,var(--doc-tone) 11%,transparent),transparent 43%),
    linear-gradient(145deg,var(--wbs-head-sheen,var(--ih-inner)),transparent 62%),var(--surface);
}
.info-v6 main :is(.ih-cookie-hero,.ih-terms-hero) .ih-doc-title {
  color:var(--info-fg);gap:10px;margin:0;
  font-size:clamp(21px,2.25vw,32px);line-height:1.26;
}
.info-v6 main :is(.ih-cookie-hero,.ih-terms-hero) .ih-doc-mark {color:var(--doc-tone);width:1em;height:1em}
.info-v6 main :is(.ih-cookie-hero,.ih-terms-hero) :is(.ih-cookie-brand,.ih-terms-brand) {
  margin:4px 0 15px;color:var(--info-fg);font-weight:800;
  font-size:clamp(29px,4.7vw,62px);line-height:1.06;letter-spacing:-.034em;
}
:is(.ih-cookie-brand,.ih-terms-brand) strong {color:#b29aff}
html[data-theme="light"] :is(.ih-cookie-brand,.ih-terms-brand) strong {color:#7655c6}
.info-v6 main :is(.ih-cookie-hero,.ih-terms-hero) :is(.ih-lead,.ih-v6-guide) {margin:0;max-width:57ch;line-height:1.56}
.info-v6 main :is(.ih-cookie-hero,.ih-terms-hero) .ih-v6-guide {margin-top:8px;padding:0;border:0}
:is(.ih-cookie-art,.ih-terms-art) {display:grid;place-items:center;min-width:0}
:is(.ih-cookie-art,.ih-terms-art) img {display:block;width:min(100%,358px);height:auto;object-fit:contain}
@media (max-width:680px) {
  .info-v6 main .info-home .ih-hero:is(.ih-cookie-hero,.ih-terms-hero) {grid-template-columns:minmax(0,1fr);gap:10px;padding:18px}
  .info-v6 main :is(.ih-cookie-hero,.ih-terms-hero) :is(.ih-cookie-brand,.ih-terms-brand) {margin-bottom:10px}
  :is(.ih-cookie-art,.ih-terms-art) img {width:min(69%,220px)}
}

/* Cookie article accent is shared by the TOC link and its destination. */
[data-cookie-topic="consent"]{--about-tone:var(--info-accent)}
[data-cookie-topic="session"]{--about-tone:#5cddd4}
[data-cookie-topic="csrf"]{--about-tone:var(--ih-gold)}
[data-cookie-topic="language"]{--about-tone:#77c9ff}
[data-cookie-topic="theme"]{--about-tone:#f2a0d4}
[data-cookie-topic="local"]{--about-tone:#aabbff}
[data-cookie-topic="external"]{--about-tone:#86d99a}
[data-cookie-topic="payments"]{--about-tone:#ffae9f}
[data-cookie-topic="monitoring"]{--about-tone:#74dfb4}
[data-cookie-topic="analytics"]{--about-tone:#c5b5fe}
[data-cookie-topic="control"]{--about-tone:#b6d779}
html[data-theme="light"] [data-cookie-topic="session"]{--about-tone:#126e69}
html[data-theme="light"] [data-cookie-topic="language"]{--about-tone:#1b639a}
html[data-theme="light"] [data-cookie-topic="theme"]{--about-tone:#994473}
html[data-theme="light"] [data-cookie-topic="local"]{--about-tone:#48579d}
html[data-theme="light"] [data-cookie-topic="external"]{--about-tone:#237341}
html[data-theme="light"] [data-cookie-topic="payments"]{--about-tone:#9e4b40}
html[data-theme="light"] [data-cookie-topic="monitoring"]{--about-tone:#157455}
html[data-theme="light"] [data-cookie-topic="analytics"]{--about-tone:#7541a3}
html[data-theme="light"] [data-cookie-topic="control"]{--about-tone:#4d681d}

.info-v6 main .ih-cookie-document {margin-block:0;row-gap:16px}
:is(.ih-cookie-document,.ih-terms-panel) .ih-about-topic-copy {display:block;min-width:0;color:var(--info-fg)}
:is(.ih-cookie-document,.ih-terms-panel) .ih-about-topic-copy p + p {margin-block-start:.76em}
.ih-cookie-document .ih-about-promotion-title:first-child {margin-block-start:0;padding-block-start:0;border-block-start:0}
.ih-cookie-document .ih-about-card-actions {margin-block-start:16px;padding-block-start:14px;border-block-start:1px solid var(--line)}

/* Exterior section tint: the same accent as the heading icon, never a nested panel. */
.info-v6 main :is(.ih-cookie-document,.ih-terms-page) {--doc-glass-wash:23%}
html[data-theme="light"] .info-v6 main :is(.ih-cookie-document,.ih-terms-page) {--doc-glass-wash:19%}
.info-v6 main :is(.ih-cookie-document > .ih-about-topic,.ih-terms-panel.ih-about-topic) {
  border-color:color-mix(in srgb,var(--about-tone) 30%,var(--ih-edge));
  border-inline-start-color:color-mix(in srgb,var(--about-tone) 57%,var(--ih-edge));
  background:
    linear-gradient(112deg,color-mix(in srgb,var(--about-tone) var(--doc-glass-wash),transparent),color-mix(in srgb,var(--about-tone) 7%,transparent) 58%,transparent 92%),
    linear-gradient(145deg,var(--ih-inner),transparent 82%),
    var(--ih-glass);
}
.info-v6 main :is(.ih-cookie-document,.ih-terms-panel) h2 .ih-about-topic-icon {
  border-color:color-mix(in srgb,var(--about-tone) 48%,transparent);
  background:color-mix(in srgb,var(--about-tone) 17%,transparent);
}


/* Agreement uses the same article layout and one grid for every panel. */
.info-v6 main .info-home.ih-terms-page {gap:16px}
.info-v6 main .ih-terms-page > :is(header,nav,section,details) {margin-block:0;min-width:0}
.ih-terms-toc {--about-tone:var(--doc-tone)}
.ih-terms-page [style*="--terms-dark"] {--about-tone:var(--terms-dark)}
html[data-theme="light"] .ih-terms-page [style*="--terms-light"] {--about-tone:var(--terms-light)}
.ih-terms-page [data-rights-icon="minecraft"] {flex:none;width:22px;height:22px}
.info-v6 main .ih-terms-panel .ih-about-help-action {margin-block-start:13px}
.ih-terms-panel .ih-about-help-action a {max-width:100%;width:fit-content}

/* Keep the icon next to the first line at every width, with space for the full heading. */
.info-v6 main .info-home .ih-hero.ih-terms-hero {
  grid-template-columns:minmax(0,1fr) clamp(210px,26vw,340px);
  gap:clamp(16px,2.4vw,36px);
}
.info-v6 main .ih-terms-hero .ih-terms-brand {
  font-size:clamp(16px,1.8vw,22px);line-height:1.2;letter-spacing:0;margin:0 0 8px;
}
.info-v6 main .ih-terms-hero #info-doc-title {
  display:grid;grid-template-columns:1em minmax(0,1fr);align-items:start;
  font-size:clamp(21px,2.6vw,36px);line-height:1.18;gap:.32em;margin:0 0 13px;
}
.ih-terms-hero #info-doc-title svg {margin-block-start:.08em}
.info-v6 main .ih-terms-hero #info-doc-title > span {font:inherit;letter-spacing:inherit;overflow-wrap:normal;word-break:normal}
.ih-terms-page :is(.ih-contact-wordmark,.ih-about-short-wordmark) {color:var(--info-fg);font-weight:600;white-space:nowrap}
.ih-terms-page :is(.ih-contact-wordmark,.ih-about-short-wordmark) strong {color:#b29aff;font-weight:inherit}
html[data-theme="light"] .ih-terms-page :is(.ih-contact-wordmark,.ih-about-short-wordmark) strong {color:#7655c6}
@media (max-width:840px) {
  .info-v6 main .info-home .ih-hero.ih-terms-hero {grid-template-columns:minmax(0,1fr);gap:10px}
  .ih-terms-art img {width:min(65%,220px)}
}
@media (max-width:520px) {
  .info-v6 main .ih-terms-hero #info-doc-title {font-size:clamp(16px,4.85vw,23px)}
}
