@import url("./storm-iso27001.css");

body[data-page="iso27018"] .isms-hero {
  background:
    radial-gradient(circle at 82% 14%,rgba(99,163,255,.27),transparent 29%),
    radial-gradient(circle at 61% 88%,rgba(39,121,255,.31),transparent 34%),
    linear-gradient(135deg,#121827,#1a2a46 63%,#172640);
}

.pii-console {
  position: relative;
  min-height: 500px;
  padding: 24px;
  border: 1px solid rgba(206,222,249,.21);
  border-radius: 30px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 34px 74px rgba(0,0,0,.29);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.pii-console::before { position: absolute; inset: 62px 23px 23px; content: ""; border-radius: 22px; opacity: .46; background-image: linear-gradient(rgba(130,179,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(130,179,255,.1) 1px,transparent 1px); background-size: 30px 30px; }
.pii-console-head { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; color: #c9d7eb; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pii-console-head span:last-child { color: #8fbcff; }
.pii-stage { position: relative; min-height: 410px; margin-top: 17px; display: grid; place-items: center; }
.pii-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(105,162,255,.25); border-radius: 50%; animation: pii-turn 28s linear infinite; }
.pii-orbit::before { position: absolute; inset: 44px; content: ""; border: 1px dashed rgba(132,181,255,.35); border-radius: 50%; animation: pii-turn 19s linear infinite reverse; }
.pii-core { position: relative; z-index: 3; width: 146px; height: 146px; display: grid; place-items: center; border: 1px solid rgba(163,200,255,.46); border-radius: 50%; text-align: center; color: #fff; background: linear-gradient(145deg,#3787ff,#1555b8); box-shadow: 0 0 0 16px rgba(60,135,255,.07),0 22px 48px rgba(8,52,126,.42); }
.pii-core svg { width: 32px; height: 32px; margin-bottom: 7px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pii-core strong { display: block; font-size: 18px; letter-spacing: -.03em; }
.pii-core small { display: block; margin-top: 4px; color: #d5e5ff; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.pii-node { position: absolute; z-index: 4; min-width: 114px; padding: 13px 14px; border: 1px solid rgba(199,220,251,.21); border-radius: 15px; color: #fff; background: rgba(18,25,42,.93); box-shadow: 0 14px 30px rgba(0,0,0,.21); }
.pii-node strong { display: block; font-size: 12px; }
.pii-node small { display: block; margin-top: 4px; color: #9cacbf; font-size: 8px; line-height: 1.3; }
.pii-node--collect { top: 28px; left: 4%; }
.pii-node--store { top: 48px; right: 2%; }
.pii-node--process { top: 50%; right: 0; transform: translateY(-20%); }
.pii-node--transmit { right: 7%; bottom: 24px; }
.pii-node--delete { bottom: 16px; left: 7%; }
.pii-flow-note { position: absolute; right: 24px; bottom: 19px; left: 24px; z-index: 4; color: #7f93af; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-align: center; text-transform: uppercase; }

.privacy-boundary { padding: 0 0 110px; background: #fff; }
.privacy-boundary-panel { display: grid; grid-template-columns: .86fr 1.14fr; border: 1px solid #cbd9ec; border-radius: 26px; background: linear-gradient(145deg,#f8fbff,#edf4ff); box-shadow: 0 22px 54px rgba(21,40,78,.08); overflow: hidden; }
.privacy-boundary-intro { padding: 40px; border-right: 1px solid #cbd9ec; }
.privacy-boundary-intro span { color: #1769e5; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.privacy-boundary-intro h2 { margin: 20px 0 0; font-size: clamp(30px,3.7vw,48px); line-height: 1.02; letter-spacing: -.05em; }
.privacy-boundary-intro p { margin: 19px 0 0; color: #536078; font-size: 14px; line-height: 1.7; }
.privacy-boundary-columns { display: grid; grid-template-columns: 1fr 1fr; }
.privacy-boundary-card { padding: 40px 30px; }
.privacy-boundary-card + .privacy-boundary-card { border-left: 1px solid #cbd9ec; background: rgba(255,255,255,.58); }
.privacy-boundary-card h3 { margin: 0 0 20px; font-size: 17px; letter-spacing: -.025em; }
.privacy-boundary-list { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.privacy-boundary-list li { position: relative; padding-left: 21px; color: #4d596e; font-size: 12px; line-height: 1.5; }
.privacy-boundary-list li::before { position: absolute; top: 6px; left: 0; width: 8px; height: 8px; content: ""; border: 2px solid #2779ff; border-radius: 50%; }
.privacy-boundary-card--verify .privacy-boundary-list li::before { border-color: #8090a8; border-radius: 2px; }
body[data-page="iso27018"] .isms-theme-grid { grid-template-columns: repeat(4,1fr); }
body[data-page="iso27018"] .isms-theme { min-height: 290px; }
body[data-page="iso27018"] .isms-theme h3 { margin-top: 30px; }

@keyframes pii-turn { to { transform: rotate(360deg); } }

@media (max-width:1100px) {
  body[data-page="iso27018"] .isms-theme-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:980px) {
  .privacy-boundary-panel { grid-template-columns: 1fr; }
  .privacy-boundary-intro { border-right: 0; border-bottom: 1px solid #cbd9ec; }
}
@media (max-width:580px) {
  .pii-console { min-height: 470px; padding: 16px; }
  .pii-stage { min-height: 396px; transform: scale(.9); }
  .pii-orbit { width: 286px; height: 286px; }
  .pii-core { width: 126px; height: 126px; }
  .pii-node { min-width: 96px; padding: 10px; }
  .pii-node--collect { left: -2%; }
  .pii-node--store { right: -3%; }
  .pii-node--process { right: -4%; }
  .privacy-boundary { padding-bottom: 82px; }
  .privacy-boundary-intro { padding: 30px 24px; }
  .privacy-boundary-columns { grid-template-columns: 1fr; }
  .privacy-boundary-card { padding: 30px 24px; }
  .privacy-boundary-card + .privacy-boundary-card { border-top: 1px solid #cbd9ec; border-left: 0; }
  body[data-page="iso27018"] .isms-theme-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .pii-orbit,.pii-orbit::before { animation: none; }
}

/* ---------- PII lifecycle animation ----------
   12s lap, one stage every 2s. A PII token steps card to card (Collect → Store → Process →
   Transmit → Delete), the padlock clicks shut as it reaches Store, and the token fades out
   at Delete: the data is not retained. Card and footer stage light up together. */
body[data-page="iso27018"] .pii-orbit, body[data-page="iso27018"] .pii-orbit::before { animation: none; }
body[data-page="iso27018"] .pii-track { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; }
body[data-page="iso27018"] .pii-track circle { fill: none; }
body[data-page="iso27018"] .pii-token { transform-box: fill-box; transform-origin: center; animation: pii-anim-token 12s ease-in-out infinite; }
body[data-page="iso27018"] .pii-token-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pii-anim-token-life 12s linear infinite; }
body[data-page="iso27018"] .pii-token-dot .pii-token-halo { fill: rgba(79,145,255,.16); }
body[data-page="iso27018"] .pii-token-dot .pii-token-core { fill: #6fa6ff; filter: drop-shadow(0 0 5px rgba(79,145,255,.9)); }
body[data-page="iso27018"] .pii-shackle { animation: pii-anim-lock 12s ease-in-out infinite; }
body[data-page="iso27018"] .pii-core { animation: pii-anim-core 12s ease-in-out infinite; }
body[data-page="iso27018"] .pii-node { animation: pii-anim-node 12s ease-in-out infinite; }
body[data-page="iso27018"] .pii-flow-note span { animation: pii-anim-step 12s ease-in-out infinite; }
body[data-page="iso27018"] .pii-node--collect, body[data-page="iso27018"] .pii-flow-note span:nth-child(1) { animation-delay: .5s; }
body[data-page="iso27018"] .pii-node--store, body[data-page="iso27018"] .pii-flow-note span:nth-child(2) { animation-delay: 2.5s; }
body[data-page="iso27018"] .pii-node--process, body[data-page="iso27018"] .pii-flow-note span:nth-child(3) { animation-delay: 4.5s; }
body[data-page="iso27018"] .pii-node--transmit, body[data-page="iso27018"] .pii-flow-note span:nth-child(4) { animation-delay: 6.5s; }
body[data-page="iso27018"] .pii-node--delete, body[data-page="iso27018"] .pii-flow-note span:nth-child(5) { animation-delay: 8.5s; }
/* Arrive at each card, pause, move on (angles match the card positions) */
@keyframes pii-anim-token {
  0% { transform: rotate(270deg); }
  6.67%, 11.67% { transform: rotate(305deg); }
  23.33%, 28.33% { transform: rotate(420deg); }
  40%, 45% { transform: rotate(455deg); }
  56.67%, 61.67% { transform: rotate(488deg); }
  73.33%, 100% { transform: rotate(590deg); }
}
@keyframes pii-anim-token-life {
  0% { opacity: 0; transform: scale(1); }
  4%, 76.67% { opacity: 1; transform: scale(1); }
  83.33%, 100% { opacity: 0; transform: scale(.3); }
}
@keyframes pii-anim-lock { 0%, 19% { transform: translateY(0); } 21.5% { transform: translateY(-2px); } 23.33%, 100% { transform: translateY(0); } }
@keyframes pii-anim-core {
  0%, 21%, 40%, 100% { box-shadow: 0 0 0 16px rgba(60,135,255,.07), 0 22px 48px rgba(8,52,126,.42), 0 0 0 rgba(79,145,255,0); }
  25% { box-shadow: 0 0 0 16px rgba(60,135,255,.2), 0 22px 48px rgba(8,52,126,.42), 0 0 60px rgba(79,145,255,.45); }
}
@keyframes pii-anim-node {
  0%, 12.5% { border-color: rgba(130,179,255,.75); box-shadow: 0 14px 30px rgba(0,0,0,.21), 0 0 24px rgba(79,145,255,.3); translate: 0 -3px; }
  16.5%, 100% { border-color: rgba(199,220,251,.21); box-shadow: 0 14px 30px rgba(0,0,0,.21); translate: 0 0; }
}
@keyframes pii-anim-step { 0%, 12.5% { color: #8fbcff; } 16.5%, 100% { color: #7f93af; } }
@media (prefers-reduced-motion: reduce) {
  body[data-page="iso27018"] .pii-track { display: none; }
  body[data-page="iso27018"] .pii-shackle, body[data-page="iso27018"] .pii-core, body[data-page="iso27018"] .pii-node, body[data-page="iso27018"] .pii-flow-note span { animation: none; }
}
