/* =========================================================
   B2BGEMI PUBLIC v2 — LEGAL CENTER
   High readability, high contrast, mobile-first.
   ========================================================= */

html,body{margin:0!important;padding:0!important}
body.legal-v2-page{
  background:#f3f7fa;
  color:#102033;
  font-size:17px;
  line-height:1.76;
}
.legal-v2-page main{
  width:100%;
  overflow:hidden;
  background:#f3f7fa;
}
.legal-v2-container,
.legal-v2-page .wrap,
.legal-v2-page .container{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}
.legal-v2-progress{
  position:fixed;
  top:76px;
  left:0;
  right:0;
  z-index:9998;
  height:3px;
  pointer-events:none;
  background:rgba(255,255,255,.08);
}
.legal-v2-progress span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#16dfbd,#72f3dc);
  box-shadow:0 0 12px rgba(22,223,189,.5);
}

/* Hero */
.legal-v2-page .hero{
  position:relative;
  width:100%;
  margin:0;
  padding:clamp(58px,7vw,98px) 0 clamp(48px,6vw,78px);
  overflow:hidden;
  text-align:center;
  color:#f5f9ff;
  background:
    radial-gradient(circle at 18% 12%,rgba(22,223,189,.15),transparent 34%),
    radial-gradient(circle at 86% 8%,rgba(73,116,255,.08),transparent 30%),
    linear-gradient(145deg,#06101d,#091a2c);
  border-bottom:1px solid rgba(153,190,220,.12);
}
.legal-v2-page .hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(22,223,189,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(22,223,189,.025) 1px,transparent 1px);
  background-size:48px 48px;
  pointer-events:none;
}
.legal-v2-page .hero-inner,
.legal-v2-page .hero>.wrap{
  position:relative;
  z-index:1;
  max-width:980px;
}
.legal-v2-page .eyebrow,
.legal-v2-page .kicker{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 13px;
  border:1px solid rgba(22,223,189,.28);
  border-radius:999px;
  color:#82f3dd;
  background:rgba(22,223,189,.075);
  font-size:.76rem;
  font-weight:900;
  line-height:1.35;
  letter-spacing:.08em;
}
.legal-v2-page .hero h1{
  max-width:980px;
  margin:20px auto 0;
  color:#f7fbff;
  font-family:var(--b2b-display,"Space Grotesk",Inter,sans-serif);
  font-size:clamp(2.7rem,5.6vw,4.9rem);
  line-height:1;
  letter-spacing:-.06em;
  text-wrap:balance;
}
.legal-v2-page .lede,
.legal-v2-page .lead{
  max-width:850px;
  margin:18px auto 0;
  color:#c7d8e6;
  font-size:clamp(1.08rem,1.02rem + .3vw,1.36rem);
  line-height:1.66;
}
.legal-v2-page .updated{
  margin-top:14px;
  color:#a9bed0;
  font-size:.92rem;
}

/* Main legal content */
.legal-v2-page .legal-wrap,
.legal-v2-page .legal-v2-content{
  width:min(1020px,calc(100% - 40px));
  max-width:none;
  margin:0 auto;
  padding:clamp(34px,5vw,62px) 0 clamp(70px,8vw,110px);
}
.legal-v2-page .legal-v2-content>h2,
.legal-v2-page .legal-v2-content>.notice,
.legal-v2-page .legal-v2-content>p,
.legal-v2-page .legal-v2-content>ul,
.legal-v2-page .legal-v2-content>form{
  margin-left:auto;
  margin-right:auto;
}
.legal-v2-page .notice{
  margin-bottom:18px;
  padding:20px 22px;
  border:1px solid #c5e7dd;
  border-radius:16px;
  color:#345e55;
  background:#eefbf7;
  box-shadow:0 12px 35px rgba(24,84,70,.06);
  font-size:1rem;
  line-height:1.68;
}
.legal-v2-page .notice strong{color:#174d42}
.legal-v2-page .legal-section{
  margin-bottom:15px;
  padding:clamp(24px,4vw,38px);
  border:1px solid #d9e4eb;
  border-radius:19px;
  color:#102033;
  background:#fff;
  box-shadow:0 16px 46px rgba(17,39,61,.065);
}
.legal-v2-page .legal-section h2,
.legal-v2-page .legal-v2-content>h2{
  margin:0 0 14px;
  color:#102033;
  font-family:var(--b2b-display,"Space Grotesk",Inter,sans-serif);
  font-size:clamp(1.45rem,2.5vw,2.05rem);
  line-height:1.2;
  letter-spacing:-.035em;
  scroll-margin-top:108px;
}
.legal-v2-page .legal-section h3,
.legal-v2-page .legal-v2-content h3{
  margin:20px 0 8px;
  color:#1b3449;
  font-size:1.15rem;
  line-height:1.35;
}
.legal-v2-page .legal-section p,
.legal-v2-page .legal-section li,
.legal-v2-page .legal-v2-content>p,
.legal-v2-page .legal-v2-content>ul li{
  color:#50687b;
  font-size:1.04rem;
  line-height:1.78;
}
.legal-v2-page .legal-section p+p{margin-top:12px}
.legal-v2-page .legal-section ul,
.legal-v2-page .legal-v2-content>ul{
  display:grid;
  gap:9px;
  margin:10px 0 24px;
  padding-left:24px;
}
.legal-v2-page .legal-section strong{color:#193348}
.legal-v2-page .legal-section a,
.legal-v2-page .legal-v2-content a{
  color:#087e6a;
  font-weight:800;
  text-decoration:underline;
  text-decoration-thickness:1px;
}
.legal-v2-page .faq{
  padding:18px 0;
  border-bottom:1px solid #e1e9ef;
}
.legal-v2-page .faq:last-child{border-bottom:0}

/* GDPR-specific content */
.legal-v2-page .compliance-grid,
.legal-v2-page .legal-grid,
.legal-v2-page .principle-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.legal-v2-page .compliance-card,
.legal-v2-page .legal-card,
.legal-v2-page .principle-card{
  padding:20px;
  border:1px solid #dbe5ec;
  border-radius:16px;
  background:#f8fafc;
}
.legal-v2-page .compliance-card b,
.legal-v2-page .legal-card b,
.legal-v2-page .principle-card b{
  display:block;
  color:#173348;
  font-size:1rem;
}
.legal-v2-page .compliance-card span,
.legal-v2-page .legal-card span,
.legal-v2-page .principle-card span{
  display:block;
  margin-top:7px;
  color:#587084;
  font-size:.96rem;
  line-height:1.62;
}

/* On-page contents generated by JS */
.legal-v2-toc{
  width:min(1020px,calc(100% - 40px));
  margin:28px auto 0;
  border:1px solid #d8e4eb;
  border-radius:16px;
  background:#fff;
  box-shadow:0 13px 36px rgba(17,39,61,.055);
}
.legal-v2-toc summary{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  color:#173348;
  font-size:1rem;
  font-weight:900;
  cursor:pointer;
  list-style:none;
}
.legal-v2-toc summary::-webkit-details-marker{display:none}
.legal-v2-toc summary::after{content:"+";font-size:1.35rem;color:#087e6a}
.legal-v2-toc[open] summary::after{content:"−"}
.legal-v2-toc ol{
  display:grid;
  gap:5px;
  margin:0;
  padding:0 18px 18px 38px;
}
.legal-v2-toc a{
  color:#526b7e;
  font-size:.95rem;
  line-height:1.55;
}
.legal-v2-toc a:hover{color:#087e6a}

/* Form */
.legal-v2-page form.card{
  padding:clamp(24px,4vw,38px);
  border:1px solid #d8e4eb;
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 52px rgba(17,39,61,.08);
}
.legal-v2-page form .grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.legal-v2-page form label{
  display:block;
  margin:16px 0 7px;
  color:#29455a;
  font-size:.96rem;
  font-weight:800;
}
.legal-v2-page form input,
.legal-v2-page form select,
.legal-v2-page form textarea{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid #cbd9e2;
  border-radius:11px;
  color:#102033;
  background:#fff;
  font-size:1rem;
}
.legal-v2-page form textarea{min-height:170px;resize:vertical}
.legal-v2-page form input:focus,
.legal-v2-page form select:focus,
.legal-v2-page form textarea:focus{
  border-color:#0c9f86;
  outline:0;
  box-shadow:0 0 0 4px rgba(12,159,134,.12);
}
.legal-v2-page form .check{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:10px;
  align-items:start;
  margin-top:16px;
  color:#526a7d;
  font-size:.96rem;
}
.legal-v2-page form .check input{
  width:20px;
  min-height:20px;
  height:20px;
  margin-top:3px;
}
.legal-v2-page form .btn{
  min-height:50px;
  margin-top:20px;
  padding:0 20px;
  border:0;
  border-radius:11px;
  color:#032820;
  background:linear-gradient(135deg,#16dfbd,#75f3dc);
  font-size:1rem;
  font-weight:900;
  cursor:pointer;
}

/* Legal hub */
.legal-v2-hub{
  width:100%;
  padding:clamp(68px,8vw,108px) 0;
  color:#f4f8ff;
  background:
    radial-gradient(circle at 86% 10%,rgba(22,223,189,.1),transparent 32%),
    #06111d;
  border-top:1px solid rgba(153,190,220,.12);
}
.legal-v2-hub__head{
  max-width:880px;
  margin:0 auto 38px;
  text-align:center;
}
.legal-v2-hub__head>span{
  color:#65ead0;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.09em;
}
.legal-v2-hub__head h2{
  margin:10px 0 0;
  color:#f5f9ff;
  font-family:var(--b2b-display,"Space Grotesk",Inter,sans-serif);
  font-size:clamp(2rem,4.2vw,3.7rem);
  line-height:1.06;
  letter-spacing:-.05em;
}
.legal-v2-hub__head p{
  max-width:72ch;
  margin:13px auto 0;
  color:#a9c0d2;
  font-size:1.05rem;
}
.legal-v2-hub__head>a{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  margin-top:16px;
  color:#65ead0;
  font-weight:900;
}
.legal-v2-hub__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}
.legal-v2-hub__card{
  min-height:112px;
  display:grid;
  grid-template-columns:42px 1fr;
  gap:13px;
  align-items:start;
  padding:18px;
  border:1px solid rgba(157,191,219,.16);
  border-radius:15px;
  color:#f4f8ff;
  background:linear-gradient(155deg,#0b1b2d,#081522);
  text-decoration:none;
}
.legal-v2-hub__card:hover,
.legal-v2-hub__card.is-active{
  border-color:rgba(22,223,189,.35);
  background:linear-gradient(155deg,#0d2437,#091a29);
}
.legal-v2-hub__card i{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:10px;
  color:#57e7ca;
  background:rgba(22,223,189,.09);
  font-style:normal;
  font-weight:900;
}
.legal-v2-hub__card b{
  display:block;
  color:#f2f7fb;
  font-size:1rem;
  line-height:1.35;
}
.legal-v2-hub__card small{
  display:block;
  margin-top:5px;
  color:#9fb6c8;
  font-size:.88rem;
  line-height:1.55;
}

/* Dedicated legal index */
.legal-v2-index{
  width:100%;
  padding:clamp(68px,8vw,108px) 0;
  color:#102033;
  background:#f3f7fa;
}
.legal-v2-index__intro{
  max-width:850px;
  margin:0 auto 38px;
  text-align:center;
}
.legal-v2-index__intro h2{
  margin:0;
  color:#102033;
  font-family:var(--b2b-display,"Space Grotesk",Inter,sans-serif);
  font-size:clamp(2rem,4.3vw,3.7rem);
  line-height:1.06;
  letter-spacing:-.05em;
}
.legal-v2-index__intro p{
  margin:13px auto 0;
  color:#566e81;
  font-size:1.08rem;
}
.legal-v2-index__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}
.legal-v2-index__card{
  min-height:210px;
  display:flex;
  flex-direction:column;
  padding:26px;
  border:1px solid #d9e4eb;
  border-radius:19px;
  color:#102033;
  background:#fff;
  box-shadow:0 16px 46px rgba(17,39,61,.065);
  text-decoration:none;
}
.legal-v2-index__card i{
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:11px;
  color:#087e6a;
  background:#e9faf5;
  font-style:normal;
  font-weight:900;
}
.legal-v2-index__card h3{
  margin:17px 0 0;
  color:#102033;
  font-family:var(--b2b-display,"Space Grotesk",Inter,sans-serif);
  font-size:1.3rem;
}
.legal-v2-index__card p{
  flex:1;
  margin:9px 0 0;
  color:#566e81;
  font-size:1rem;
  line-height:1.68;
}
.legal-v2-index__card span{
  margin-top:17px;
  color:#087e6a;
  font-weight:900;
}

/* Print */
@media print{
  .legal-v2-progress,
  .legal-v2-toc,
  .legal-v2-hub,
  .b2b-shell-header,
  .b2b-shell-footer{display:none!important}
  body.legal-v2-page,
  .legal-v2-page main{background:#fff!important;color:#000!important}
  .legal-v2-page .hero{padding:20px 0;background:#fff!important;color:#000!important}
  .legal-v2-page .hero h1,
  .legal-v2-page .lede,
  .legal-v2-page .lead{color:#000!important}
  .legal-v2-page .legal-section{break-inside:avoid;box-shadow:none}
}

@media(max-width:900px){
  .legal-v2-progress{top:68px}
  .legal-v2-hub__grid,
  .legal-v2-index__grid,
  .legal-v2-page .compliance-grid,
  .legal-v2-page .legal-grid,
  .legal-v2-page .principle-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  body.legal-v2-page{font-size:16.5px}
  .legal-v2-container,
  .legal-v2-page .wrap,
  .legal-v2-page .container,
  .legal-v2-page .legal-wrap,
  .legal-v2-page .legal-v2-content,
  .legal-v2-toc{
    width:min(100% - 24px,1180px);
  }
  .legal-v2-page .hero{padding:46px 0 52px}
  .legal-v2-page .hero h1{font-size:clamp(2.3rem,11vw,3.25rem)}
  .legal-v2-page .legal-wrap,
  .legal-v2-page .legal-v2-content{padding:34px 0 62px}
  .legal-v2-page .legal-section{padding:22px}
  .legal-v2-page form .grid{grid-template-columns:1fr}
  .legal-v2-page form .btn{width:100%}
  .legal-v2-hub__grid,
  .legal-v2-index__grid,
  .legal-v2-page .compliance-grid,
  .legal-v2-page .legal-grid,
  .legal-v2-page .principle-grid{grid-template-columns:1fr}
}
