/* Usage policies page and the one-time rules popup (2026-11-26).
   Self-contained: works under the public layout and the customer layout. */

.pol-page, .pol-gate {
  --pol-red: #e8404e;
  --pol-red-2: #c8121f;
  --pol-red-3: #8a0a16;
  --pol-ink: #eef2fa;
  --pol-ink-2: #b9bfcc;
  --pol-ink-3: #848b99;
  --pol-card: rgb(22 15 18 / .78);
  --pol-line: rgb(255 255 255 / .08);
  --pol-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------- page */

.pol-page { color: var(--pol-ink); overflow-x: clip; }

.pol-hero { position: relative; padding-block: clamp(28px, 6vw, 64px) clamp(20px, 4vw, 40px); text-align: center; isolation: isolate; }
.pol-hero .crumbs { justify-content: center; text-align: center; margin-block-end: 20px; }
.pol-hero__glow {
  position: absolute; inset: -20% 0 auto; block-size: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 60% at 50% 40%, rgb(200 18 31 / .35), transparent 70%),
    radial-gradient(30% 40% at 20% 10%, rgb(232 64 78 / .14), transparent 70%),
    radial-gradient(30% 40% at 80% 20%, rgb(138 10 22 / .2), transparent 70%);
  filter: blur(6px);
}

.pol-hero__badge, .pol-gate__badge {
  position: relative; display: inline-grid; place-items: center;
  inline-size: 76px; block-size: 76px; border-radius: 24px; margin-block-end: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--pol-red), var(--pol-red-3));
  box-shadow: 0 18px 40px -12px rgb(200 18 31 / .7), inset 0 1px 0 rgb(255 255 255 / .25);
}
.pol-hero__badge .pol-ico, .pol-gate__badge .pol-ico { inline-size: 36px; block-size: 36px; stroke-width: 1.8; }
.pol-hero__ring {
  position: absolute; inset: -8px; border-radius: 30px; border: 1px solid rgb(232 64 78 / .55);
  animation: pol-ring 2.6s var(--pol-ease) infinite;
}

.pol-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--pol-red); background: rgb(232 64 78 / .1); border: 1px solid rgb(232 64 78 / .3);
}
.pol-h1 {
  margin: 12px 0 10px; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.15;
  background: linear-gradient(180deg, #fff 30%, #f3b3b9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pol-lede { max-inline-size: 36rem; margin: 0 auto; font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.8; color: var(--pol-ink-2); }
.pol-updated { margin: 12px 0 0; font-size: .8rem; color: var(--pol-ink-3); }

.pol-sec { padding-block: 14px 26px; }
.pol-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.15rem; font-weight: 700; }
.pol-h2::before { content: ""; inline-size: 18px; block-size: 3px; border-radius: 3px; background: var(--pol-red); }

.pol-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pol-card {
  position: relative; overflow: hidden; padding: 20px 18px 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / .04), transparent 60%), var(--pol-card);
  border: 1px solid var(--pol-line);
  backdrop-filter: blur(6px);
  transition: transform .25s var(--pol-ease), border-color .25s, box-shadow .25s;
  animation: pol-rise .6s var(--pol-ease) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.pol-card::after {
  content: ""; position: absolute; inset: 0 0 auto; block-size: 2px;
  background: linear-gradient(90deg, transparent, var(--pol-red), transparent); opacity: 0; transition: opacity .25s;
}
.pol-card:hover { transform: translateY(-3px); border-color: rgb(232 64 78 / .35); box-shadow: 0 16px 34px -18px rgb(200 18 31 / .6); }
.pol-card:hover::after { opacity: 1; }
.pol-card__n { position: absolute; inset-block-start: 12px; inset-inline-end: 16px; font-size: 2.2rem; font-weight: 800; line-height: 1; color: rgb(255 255 255 / .05); font-variant-numeric: tabular-nums; }
.pol-card__ico {
  display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 14px;
  color: var(--pol-red); background: rgb(232 64 78 / .1); border: 1px solid rgb(232 64 78 / .25);
}
.pol-card__ico .pol-ico { inline-size: 22px; block-size: 22px; }
.pol-card h3 { margin: 14px 0 6px; font-size: 1.02rem; font-weight: 700; }
.pol-card p { margin: 0; font-size: .9rem; line-height: 1.75; color: var(--pol-ink-2); }

.pol-breach {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px;
  background: linear-gradient(135deg, rgb(200 18 31 / .22), rgb(138 10 22 / .08));
  border: 1px solid rgb(232 64 78 / .45);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 20px 40px -26px rgb(200 18 31 / .8);
}
.pol-breach__ico { flex: none; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 14px; color: #fff; background: var(--pol-red-2); }
.pol-breach h2 { margin: 0 0 4px; font-size: 1.05rem; }
.pol-breach p { margin: 0; line-height: 1.75; color: #ffd9dd; }

.pol-check { display: grid; gap: 4px; margin-block-start: 12px; padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--pol-line); color: var(--pol-ink-2); font-size: .92rem; }
.pol-check b { color: var(--pol-ink); }

.pol-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.pol-links a {
  display: flex; align-items: center; justify-content: space-between; min-block-size: 52px; padding: 0 16px; border-radius: 14px;
  color: var(--pol-ink); text-decoration: none; font-weight: 600;
  background: var(--pol-card); border: 1px solid var(--pol-line); transition: border-color .2s, transform .2s;
}
.pol-links a::after { content: "←"; color: var(--pol-red); transition: transform .2s; }
[dir="ltr"] .pol-links a::after { content: "→"; }
.pol-links a:hover { border-color: rgb(232 64 78 / .4); }
.pol-links a:hover::after { transform: translateX(-3px); }
[dir="ltr"] .pol-links a:hover::after { transform: translateX(3px); }
.pol-doubt { margin: 16px 0 0; color: var(--pol-ink-3); font-size: .9rem; }
.pol-doubt a { color: var(--pol-red); font-weight: 600; }

/* ------------------------------------------------------------ popup */

html.pol-locked { overflow: hidden; }

.pol-gate {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px;
  background: rgb(6 4 5 / .72); backdrop-filter: blur(10px) saturate(120%);
  animation: pol-fade .3s ease both;
  overflow-y: auto;
}
.pol-gate.is-leaving { animation: pol-fade-out .3s ease both; }
.pol-gate__card {
  position: relative; inline-size: min(100%, 520px); margin-block: auto; padding: 26px 22px 20px; border-radius: 26px; text-align: center; color: var(--pol-ink);
  background: linear-gradient(180deg, rgb(40 14 20 / .95), rgb(14 10 12 / .98) 45%);
  border: 1px solid rgb(232 64 78 / .3);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .03) inset;
  overflow: hidden; isolation: isolate;
  animation: pol-pop .45s var(--pol-ease) both;
}
.pol-gate__glow { position: absolute; inset: -40% -20% auto; block-size: 300px; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgb(200 18 31 / .45), transparent 70%); pointer-events: none; }
.pol-gate__badge { inline-size: 64px; block-size: 64px; border-radius: 20px; margin-block-end: 12px; }
.pol-gate__badge .pol-ico { inline-size: 30px; block-size: 30px; }
.pol-gate__h { margin: 10px 0 4px; font-size: clamp(1.35rem, 5vw, 1.7rem); font-weight: 800; }
.pol-gate__lede { margin: 0 0 16px; color: var(--pol-ink-2); font-size: .95rem; }

.pol-gate__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: start; }
.pol-gate__list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: rgb(255 255 255 / .03); border: 1px solid var(--pol-line);
  animation: pol-rise .5s var(--pol-ease) both; animation-delay: calc(120ms + var(--i, 0) * 60ms);
}
.pol-gate__list .pol-card__ico { flex: none; inline-size: 38px; block-size: 38px; border-radius: 12px; }
.pol-gate__list b { display: block; font-size: .95rem; }
.pol-gate__list small { display: block; margin-block-start: 2px; font-size: .8rem; line-height: 1.55; color: var(--pol-ink-3); }

.pol-gate__breach {
  display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; text-align: start;
  font-size: .85rem; line-height: 1.6; color: #ffd9dd; background: rgb(200 18 31 / .14); border: 1px solid rgb(232 64 78 / .35);
}
.pol-gate__breach .pol-ico { flex: none; inline-size: 20px; block-size: 20px; color: var(--pol-red); margin-block-start: 1px; }

.pol-gate__form { display: grid; gap: 12px; margin-block-start: 16px; }
.pol-agree { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-block-size: 44px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.pol-agree input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.pol-agree__box {
  flex: none; inline-size: 22px; block-size: 22px; border-radius: 7px; border: 1.5px solid rgb(255 255 255 / .35);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.pol-agree__box::after { content: ""; inline-size: 10px; block-size: 6px; border: 2px solid #fff; border-block-start: 0; border-inline-end: 0; transform: rotate(-45deg) scale(0); transition: transform .2s var(--pol-ease); margin-block-start: -2px; }
.pol-agree input:checked + .pol-agree__box { background: var(--pol-red-2); border-color: var(--pol-red); }
.pol-agree input:checked + .pol-agree__box::after { transform: rotate(-45deg) scale(1); }
.pol-agree input:focus-visible + .pol-agree__box { outline: 2px solid var(--pol-red); outline-offset: 2px; }

.pol-go {
  min-block-size: 52px; border: 0; border-radius: 16px; font: inherit; font-size: 1rem; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, var(--pol-red-2), var(--pol-red-3));
  box-shadow: 0 14px 30px -12px rgb(200 18 31 / .8), inset 0 1px 0 rgb(255 255 255 / .2);
  transition: transform .15s, filter .2s, opacity .2s;
}
.pol-go:hover:not(:disabled) { filter: brightness(1.12); }
.pol-go:active:not(:disabled) { transform: scale(.98); }
.pol-go:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.pol-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pol-gate__full { justify-self: center; font-size: .85rem; color: var(--pol-ink-3); text-decoration: underline; text-underline-offset: 3px; }
.pol-gate__full:hover { color: var(--pol-ink); }

.pol-gate__card:focus { outline: none; }

@media (max-width: 480px) {
  .pol-gate { padding: 10px; }
  .pol-gate__card { padding: 20px 14px 16px; border-radius: 22px; }
  .pol-gate__badge { inline-size: 54px; block-size: 54px; border-radius: 17px; margin-block-end: 8px; }
  .pol-gate__lede { margin-block-end: 12px; }
  .pol-gate__list { gap: 6px; }
  .pol-gate__list li { padding: 8px 10px; gap: 10px; }
  .pol-gate__list .pol-card__ico { inline-size: 34px; block-size: 34px; }
  .pol-gate__list small { font-size: .76rem; }
}

/* -------------------------------------------------------- motion */

@keyframes pol-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes pol-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pol-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pol-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pol-fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pol-card, .pol-gate, .pol-gate__card, .pol-gate__list li, .pol-hero__ring { animation: none !important; }
  .pol-card, .pol-links a, .pol-go { transition: none; }
}
