
/* =========================================================
   DEBTIER — LEGAL PAGES
   Shared header/footer live in debtier-site/header/responsive CSS.
   Legal wording is sourced from the supplied legal documents.
   ========================================================= */

.legal-page-body{
  background:
    radial-gradient(circle at 8% 0%,rgba(115,221,255,.08),transparent 25%),
    linear-gradient(180deg,#fbfdff 0%,#f5f8fb 100%);
}

.debtier-legal-page{
  position:relative;
  padding:28px 0 76px;
  color:var(--ink);
}

.legal-container{
  width:min(100% - 36px,980px);
  margin:0 auto;
}

/* top title block */
.legal-header{
  position:relative;
  margin:0 0 24px;
  padding:34px 38px 31px;
  overflow:hidden;
  text-align:center;
  border:1px solid rgba(225,232,239,.92);
  border-radius:28px;
  background:
    radial-gradient(circle at 88% -20%,rgba(115,221,255,.19),transparent 33%),
    rgba(255,255,255,.91);
  box-shadow:0 18px 52px rgba(18,29,39,.055);
}

.legal-header::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:70px;
  height:4px;
  transform:translateX(-50%);
  border-radius:0 0 99px 99px;
  background:var(--blue);
}

.legal-header > span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:9px;
  color:var(--blue-dark);
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.legal-header > span::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--blue);
  box-shadow:0 0 12px rgba(115,221,255,.45);
}

.legal-header h1{
  margin:0;
  color:var(--ink);
  font-size:clamp(31px,3.5vw,44px);
  line-height:1.04;
  letter-spacing:-.05em;
  font-weight:900;
}

.legal-header small{
  display:inline-flex;
  margin-top:12px;
  padding:6px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f7f9fc;
  color:var(--muted);
  font-size:10.5px;
  font-weight:750;
}

/* intro / notices */
.legal-intro{
  margin:0 0 18px;
  padding:23px 27px;
  border:1px solid rgba(221,229,236,.9);
  border-left:4px solid var(--blue);
  border-radius:20px;
  background:rgba(255,255,255,.93);
  box-shadow:0 12px 36px rgba(18,29,39,.045);
}

.legal-intro p{
  margin:0;
  color:#3f4b59;
  font-size:14px;
  line-height:1.72;
}

.legal-intro p + p{
  margin-top:10px;
}

.legal-divider{
  height:1px;
  margin:0 0 18px;
  background:linear-gradient(90deg,transparent,var(--line) 10%,var(--line) 90%,transparent);
}

/* legal content cards */
.legal-card{
  position:relative;
  margin:0 0 12px;
  padding:25px 28px;
  border:1px solid rgba(225,232,239,.96);
  border-radius:20px;
  background:rgba(255,255,255,.94);
  box-shadow:0 9px 30px rgba(18,29,39,.035);
  transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}

.legal-card:hover{
  border-color:rgba(115,221,255,.32);
  box-shadow:0 15px 42px rgba(18,29,39,.055);
  transform:translateY(-1px);
}

.legal-card h2{
  margin:0 0 13px;
  color:var(--ink);
  font-size:18px;
  line-height:1.27;
  letter-spacing:-.025em;
  font-weight:850;
}

.legal-card h2[style]{
  margin-top:22px!important;
}

.legal-card h3{
  margin:20px 0 9px;
  color:var(--blue-dark);
  font-size:14.5px;
  line-height:1.3;
  font-weight:800;
}

.legal-card p{
  margin:0;
  color:#4a5768;
  font-size:13.8px;
  line-height:1.72;
}

.legal-card p + p{
  margin-top:10px;
}

.legal-card strong{
  color:#1a2028;
  font-weight:760;
}

.legal-card em{
  color:#596675;
}

.legal-box{
  margin:14px 0;
  padding:16px 18px;
  border-left:3px solid var(--blue);
  border-radius:13px;
  background:#f3f7fa;
}

.legal-box p{
  color:#303b48;
  font-size:13.4px;
  line-height:1.64;
}

.legal-box p + p{
  margin-top:6px;
}

/* links */
.legal-card a,
.legal-intro a{
  color:#236c7c;
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  overflow-wrap:anywhere;
}

.legal-card a:hover,
.legal-intro a:hover{
  color:#151a20;
}

/* lists */
.legal-card ul,
.legal-card ol{
  margin:13px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:7px;
}

.legal-card li{
  position:relative;
  padding-left:23px;
  color:#4a5768;
  font-size:13.8px;
  line-height:1.62;
}

.legal-card li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--blue-dark);
  font-weight:900;
  font-size:13px;
}

.legal-card ul ul,
.legal-card ol ol,
.legal-card ul ol,
.legal-card ol ul{
  margin:6px 0 0 12px;
  gap:4px;
}

.legal-card ul ul li,
.legal-card ol ol li,
.legal-card ul ol li,
.legal-card ol ul li{
  font-size:13.2px;
  padding-left:18px;
}

.legal-card ul ul li::before,
.legal-card ol ol li::before,
.legal-card ul ol li::before,
.legal-card ol ul li::before{
  content:"—";
  color:#8a949f;
  font-weight:500;
}

/* responsive tables */
.table-responsive{
  width:100%;
  margin:14px 0 20px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#b8c4ce transparent;
}

.legal-table{
  width:100%;
  min-width:640px;
  border-collapse:collapse;
  text-align:left;
  font-size:12.5px;
}

.legal-table th,
.legal-table td{
  padding:12px 13px;
  vertical-align:top;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:#4a5768;
  line-height:1.48;
}

.legal-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f4f7fa;
  color:#222a33;
  font-weight:800;
}

.legal-table th:last-child,
.legal-table td:last-child{
  border-right:0;
}

.legal-table tr:last-child td{
  border-bottom:0;
}

.text-center{
  text-align:center;
}

/* small local legal end-cap */
.legal-page-end{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:20px;
  padding:18px 2px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11.5px;
}

.legal-page-end strong{
  color:#3c4651;
}

/* desktop */
@media(min-width:901px){
  .debtier-legal-page{
    padding-top:22px;
  }
}

/* tablet */
@media(max-width:900px){
  .debtier-legal-page{
    padding:22px 0 64px;
  }

  .legal-container{
    width:min(100% - 30px,760px);
  }

  .legal-header{
    padding:29px 28px 27px;
    border-radius:24px;
  }

  .legal-card{
    padding:23px 24px;
  }
}

/* mobile */
@media(max-width:640px){
  .debtier-legal-page{
    padding:18px 0 54px;
  }

  .legal-container{
    width:calc(100% - 28px);
  }

  .legal-header{
    margin-bottom:16px;
    padding:25px 19px 23px;
    border-radius:21px;
    text-align:left;
  }

  .legal-header::before{
    left:19px;
    width:48px;
    transform:none;
  }

  .legal-header h1{
    font-size:29px;
  }

  .legal-header small{
    margin-top:10px;
  }

  .legal-intro{
    padding:19px 18px;
    border-radius:17px;
  }

  .legal-intro p{
    font-size:13.2px;
    line-height:1.65;
  }

  .legal-card{
    margin-bottom:10px;
    padding:20px 18px;
    border-radius:17px;
    transform:none!important;
  }

  .legal-card h2{
    font-size:16.5px;
  }

  .legal-card h3{
    margin-top:17px;
    font-size:14px;
  }

  .legal-card p,
  .legal-card li{
    font-size:13px;
    line-height:1.62;
  }

  .legal-box{
    padding:14px 15px;
  }

  .legal-box p{
    font-size:12.7px;
  }

  .table-responsive{
    margin-left:0;
    margin-right:0;
    border-radius:12px;
  }

  .legal-table{
    min-width:620px;
    font-size:11.8px;
  }

  .legal-table th,
  .legal-table td{
    padding:10px 11px;
  }

  .legal-page-end{
    display:grid;
    gap:3px;
  }
}

@media(max-width:390px){
  .legal-container{
    width:calc(100% - 22px);
  }

  .legal-header h1{
    font-size:26px;
  }

  .legal-card{
    padding:18px 15px;
  }
}

@media(prefers-reduced-motion:reduce){
  .legal-card{
    transition:none!important;
  }
}
