/* Maxtech International — privacy policy (a reading page: compact colourful title block, then the policy on a white card
   with a frosted contents card beside it; on phones the contents live in a bottom sheet behind a floating pill) */

/* ----- hero: compact, colourful ----- */
.pp-hero { position: relative; overflow: hidden; overflow: clip; padding: calc(var(--hd-h) + clamp(44px, 6vw, 84px)) 0 clamp(44px, 5.4vw, 80px);
  background: radial-gradient(60% 110% at 90% 0%, #C4D2E1 0%, rgba(196, 210, 225, 0) 64%), radial-gradient(46% 90% at 58% 110%, #D0DAE6 0%, rgba(208, 218, 230, 0) 62%), radial-gradient(44% 80% at 0% 100%, #E2E9F1 0%, rgba(226, 233, 241, 0) 70%), linear-gradient(180deg, rgba(238, 242, 247, .8) 0%, rgba(251, 250, 248, 0) 100%); }
.pp-glow-a { width: 46vw; height: 46vw; right: -10vw; top: -22vw; opacity: .5; animation: ppDrift 16s ease-in-out infinite alternate; }
.pp-glow-b { width: 36vw; height: 36vw; left: 34vw; bottom: -24vw; opacity: .7; animation: ppDrift 20s ease-in-out infinite alternate-reverse; }
@keyframes ppDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6vw, 4vw, 0) scale(1.15); } }
.pp-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 80px); }
.pp-title { margin-top: 24px; font-size: clamp(46px, 6.2vw, 96px); }
html[lang="ru"] .pp-title { font-size: clamp(38px, 4.9vw, 76px); }
.pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: clamp(24px, 2.8vw, 38px); }
.pp-meta p { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 15px; border-radius: 999px; font: 500 15px/1.25 var(--f-body); }
.pp-meta svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-date { color: var(--ink); background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line-2), var(--sh-1); }
.pp-date svg { color: var(--crimson); }
.pp-tag { color: #fff; background: var(--grad); box-shadow: var(--sh-red), 0 1px 0 rgba(255, 255, 255, .35) inset; }

/* three line-icon tiles floating beside the title (decoration only) */
.pp-art { position: relative; width: clamp(250px, 26vw, 360px); aspect-ratio: 1 / .86; }
.pp-tile { position: absolute; display: grid; place-items: center; border-radius: 30%; color: var(--crimson); background: linear-gradient(145deg, rgba(255, 255, 255, .96) 0%, rgba(226, 233, 241, .9) 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(229, 28, 62, .1), 0 30px 60px -24px rgba(229, 28, 62, .5); animation: ppFloat 7s ease-in-out infinite alternate; }
.pp-tile svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pp-tile-a { left: 16%; top: 12%; width: 56%; aspect-ratio: 1; --r: -7deg; z-index: 2; color: #fff; background: var(--grad); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 34px 60px -22px rgba(229, 28, 62, .7); }
.pp-tile-b { right: 0; top: 0; width: 34%; aspect-ratio: 1; --r: 9deg; animation-duration: 9s; animation-delay: -3s; }
.pp-tile-c { right: 6%; bottom: 0; width: 38%; aspect-ratio: 1; --r: 6deg; z-index: 3; animation-duration: 8s; animation-delay: -5s; }
@keyframes ppFloat { from { transform: translate3d(0, 6px, 0) rotate(var(--r, 0deg)); } to { transform: translate3d(0, -10px, 0) rotate(calc(var(--r, 0deg) + 3deg)); } }
.pp-hero[data-sc] .pp-art { translate: 0 calc(var(--s, 0) * -34px); }

/* ----- reading section ----- */
.pp-read { position: relative; padding: clamp(28px, 3.6vw, 56px) 0 clamp(72px, 8vw, 128px); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* contents */
.pp-toc { position: relative; padding: 20px 14px 14px; border-radius: var(--r); }
.pp-toc-h { margin: 0 0 12px 6px; box-shadow: none; background: none; padding: 0; }
.pp-toc-list li + li { margin-top: 2px; }
.pp-toc-list a { position: relative; display: block; padding: 9px 12px 9px 22px; border-radius: 12px; font: 500 14.5px/1.35 var(--f-body); text-decoration: none; color: var(--ink-2); transition: color .25s, background-color .25s; }
.pp-toc-list a::before { content: ""; position: absolute; left: 8px; top: 50%; width: 4px; height: 18px; margin-top: -9px; border-radius: 999px; background: var(--grad); transform: scaleY(0); transition: transform .45s var(--ease); }
.pp-toc-list a:hover { color: var(--ink); background: rgba(29, 27, 32, .045); }
.pp-toc-list a.is-on { color: var(--crimson-ink); background: var(--blush); font-weight: 600; }
.pp-toc-list a.is-on::before { transform: none; }

/* the policy card */
.pp-doc { position: relative; min-width: 0; border-radius: var(--r-lg); padding: clamp(8px, 1.4vw, 20px) clamp(30px, 4.4vw, 64px) clamp(26px, 3vw, 40px); font-size: 17.5px; line-height: 1.75; box-shadow: 0 0 0 1px var(--line-2), var(--sh-2); }
.pp-sec { padding: clamp(32px, 3.4vw, 46px) 0; border-top: 1px solid var(--line-2); scroll-margin-top: -8px; }
.pp-sec:first-of-type { border-top: 0; }
.pp-sec h2 { margin-bottom: clamp(14px, 1.5vw, 20px); font: 600 clamp(25px, 2.2vw, 32px)/1.14 var(--f-display); letter-spacing: -.028em; color: var(--ink); text-wrap: balance; }
.pp-sec h2:focus { outline: none; }
.pp-sec p, .pp-sec ul, .pp-defs, .pp-officer { max-width: 68ch; }
.pp-sec p + p, .pp-sec ul + p, .pp-sec p + ul, .pp-defs + p, .pp-officer + p { margin-top: 1.05em; }
.pp-list li { position: relative; padding-left: 26px; }
.pp-list li + li { margin-top: .7em; }
.pp-list li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 4px rgba(229, 28, 62, .1); }
.pp-list li, .pp-sec p { color: var(--ink-2); }
.pp-doc strong { color: var(--ink); }
.pp-doc p a { color: var(--crimson-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; transition: color .2s; }
.pp-doc p a strong { color: inherit; }
.pp-doc p a:hover { color: var(--ink); }

/* sections fade and rise gently as they are reached; the section box itself stays put so jumps land exactly */
html.js .pp-sec[data-rv] { opacity: 1; transform: none; transition: none; }
html.js .pp-sec[data-rv] > * { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .pp-sec[data-rv] > :nth-child(2) { transition-delay: .07s; }
html.js .pp-sec[data-rv] > :nth-child(n+3) { transition-delay: .14s; }
html.js .pp-sec[data-rv].in > * { opacity: 1; transform: none; }

/* 3. a./b./c. — three soft cards */
.pp-defs { display: grid; gap: 10px; margin-top: 1.2em; }
.pp-def { padding: 20px 22px 22px; border-radius: var(--r-sm); background: var(--bg-2); }
.pp-def h3 { margin-bottom: 6px; font: 600 19px/1.25 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.pp-def p { font-size: .95em; line-height: 1.65; }

/* 11. Grievance Officer — a soft blush card, the email as a large clear button */
.pp-officer { position: relative; margin-top: 1.5em; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r); background: linear-gradient(150deg, #FFF6F4 0%, var(--blush) 55%, #FFE4E2 100%); box-shadow: 0 0 0 1px rgba(229, 28, 62, .1), 0 24px 50px -28px rgba(229, 28, 62, .45); }
.pp-officer .ico { margin-bottom: 18px; }
.pp-officer .pp-officer-who { font: 600 clamp(20px, 1.7vw, 24px)/1.22 var(--f-display); letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.pp-officer .pp-officer-who strong { font-weight: 600; }
.pp-officer .pp-officer-mail { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; font: 500 12.5px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pp-officer .pp-officer-mail a { display: inline-flex; align-items: center; min-height: 58px; max-width: 100%; padding: 8px 28px; border-radius: 999px; font: 600 clamp(18px, 1.7vw, 22px)/1.2 var(--f-display); letter-spacing: -.015em; text-transform: none; text-decoration: none; color: #fff; background: var(--grad); background-size: 140% 140%; box-shadow: var(--sh-red), 0 1px 0 rgba(255, 255, 255, .35) inset; overflow-wrap: anywhere; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease); }
.pp-officer .pp-officer-mail a strong { color: inherit; font-weight: 600; }
.pp-officer .pp-officer-mail a:hover { color: #fff; transform: translateY(-2px); background-position: 100% 100%; box-shadow: 0 20px 36px -12px rgba(229, 28, 62, .65), 0 1px 0 rgba(255, 255, 255, .35) inset; }

/* end of the card */
.pp-end { padding-top: 14px; border-top: 1px solid var(--line-2); }
.pp-end .link { min-height: 44px; }

/* phone / tablet: the Contents pill (built by js/privacy.js) */
.pp-chip { display: none; }

/* ==========================================================================
   desktop (>=1100px): frosted contents card stays beside the policy
   ========================================================================== */
@media (min-width: 1100px) {
  .pp-grid { grid-template-columns: minmax(250px, 300px) minmax(0, 860px); justify-content: center; gap: clamp(28px, 3.4vw, 56px); align-items: start; }
  .pp-side { position: sticky; top: calc(var(--hd-h) + 28px); }
  .pp-toc { max-height: calc(100vh - var(--hd-h) - 56px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .pp-toc::-webkit-scrollbar { display: none; }
  @media (max-height: 760px) { .pp-toc-list a { padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; } .pp-toc { padding-top: 14px; } }
}

/* ==========================================================================
   phone / tablet shell (<=1099px): contents live in a bottom sheet behind a floating pill
   ========================================================================== */
@media (max-width: 1099px) {
  .pp-art { width: clamp(190px, 26vw, 250px); }
  /* with JS the list moves into the sheet; without JS it stays here as a card above the policy */
  html.js .pp-side { display: none; }
  html:not(.js) .pp-toc-list a { padding-top: 12px; padding-bottom: 12px; }

  /* the pill floats just above the dock. While the reader scrolls down it folds to its icon so it stays off the text;
     it opens again on the way up (the same moment the header returns). */
  html.js .pp-chip { position: fixed; z-index: 65; right: max(14px, calc(50% - 220px)); bottom: calc(var(--bar-h) + 4px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; height: 48px; padding: 0 14px; border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line), 0 14px 34px -12px rgba(29, 27, 32, .4); font: 600 14.5px/1 var(--f-body); white-space: nowrap; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .45s var(--ease), background-color .15s; }
  .pp-chip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .pp-chip svg .s { stroke: var(--crimson); stroke-width: 2.6; }
  .pp-chip span { display: block; max-width: 180px; padding: 0 4px 0 10px; overflow: hidden; transition: max-width .45s var(--ease), padding .45s var(--ease), opacity .3s; }
  html.js .pp-chip.on { opacity: 1; transform: none; pointer-events: auto; }
  .pp-chip.is-fold span { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
  .pp-chip:active { background: var(--blush); }

  /* the list inside the sheet */
  #mx-toc .sheet-head { position: sticky; top: 0; z-index: 2; margin: 0 -20px; padding: 8px 20px 12px; background: var(--bg); }
  .sheet .pp-toc-list { padding-bottom: 4px; }
  .sheet .pp-toc-list li + li { margin-top: 4px; }
  .sheet .pp-toc-list a { display: flex; align-items: center; min-height: 52px; padding: 9px 16px 9px 26px; border-radius: 16px; font: 500 16px/1.3 var(--f-body); color: var(--ink); }
  .sheet .pp-toc-list a::before { left: 10px; height: 22px; margin-top: -11px; }
  .sheet .pp-toc-list a:active { background: var(--blush); }
  @media (prefers-reduced-motion: reduce) { .pp-chip, .pp-chip span { transition: none !important; } }
}

/* ==========================================================================
   phone (<=760px)
   ========================================================================== */
@media (max-width: 760px) {
  .pp-hero { padding: calc(var(--hd-h) + 30px) 0 34px; }
  .pp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-art { display: none; }
  .pp-glow-a { width: 90vw; height: 90vw; right: -40vw; top: -40vw; }
  .pp-hero .eyebrow { font-size: 11.5px; letter-spacing: .04em; }
  .pp-title { margin-top: 20px; font-size: clamp(44px, 13vw, 58px); }
  html[lang="ru"] .pp-title { font-size: clamp(31px, 9.2vw, 44px); }
  .pp-meta { margin-top: 22px; }
  .pp-meta p { min-height: 44px; font-size: 14.5px; }

  .pp-read { padding: 14px 0 56px; }
  .pp-read > .wrap { padding-left: 10px; padding-right: 10px; }
  .pp-doc { border-radius: var(--r); padding: 2px 20px 22px; font-size: 16.5px; line-height: 1.7; }
  .pp-sec { padding: 30px 0; }
  .pp-sec h2 { font-size: 24px; margin-bottom: 14px; }
  html[lang="ru"] .pp-sec h2 { font-size: 22.5px; }
  .pp-list li { padding-left: 24px; }
  .pp-list li::before { left: 4px; }
  .pp-def { padding: 18px 18px 20px; }
  .pp-def p { font-size: 1em; line-height: inherit; }
  .pp-officer { margin-left: -8px; margin-right: -8px; padding: 22px 20px 24px; }
  .pp-officer .pp-officer-who { font-size: 20px; }
  .pp-officer .pp-officer-mail a { width: 100%; justify-content: center; min-height: 60px; padding: 8px 16px; font-size: clamp(17px, 5vw, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .pp-hero .glow, .pp-tile { animation: none; }
  .pp-hero[data-sc] .pp-art { translate: none; }
  html.js .pp-sec[data-rv] > * { opacity: 1; transform: none; transition: none; }
  .pp-toc-list a::before { transition: none; }
}
