/* Public legal pages (Terms, Privacy, AML, Acceptable Use, Scam Awareness). Scoped to .pw-legal* */

.pw-legal-hero {
  padding-top: 170px;
  padding-bottom: 70px;
}

.pw-legal-hero .ctp-page-banner-content {
  max-width: 820px;
}

@media (min-width: 992px) {
  .pw-legal-hero .ctp-page-banner-content {
    max-width: 1150px;
    margin: 0 auto;
  }

  .pw-legal-hero .ctp-page-banner-content h1 {
    max-width: 820px;
  }
}

.pw-legal-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ee0979 0%, #ff6a00 100%);
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-legal-summary {
  max-width: 68ch;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

.pw-legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.pw-legal-meta i {
  margin-right: 6px;
  color: #ff6a00;
}

.pw-legal-print {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pw-legal-print:hover,
.pw-legal-print:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Layout */

.pw-legal {
  padding: 56px 0 90px;
  background: #f7f9fc;
}

.pw-legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 992px) {
  .pw-legal-grid {
    grid-template-columns: 290px minmax(0, 820px);
    justify-content: center;
    gap: 40px;
    align-items: start;
  }

  .pw-legal-aside {
    position: sticky;
    top: 100px;
  }

  .pw-legal-aside-inner {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }
}

/* Table of contents */

.pw-legal-toc,
.pw-legal-docs {
  background: #ffffff;
  border: 1px solid #e7ecf3;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.pw-legal-docs {
  margin-top: 16px;
}

.pw-legal-toc-title {
  margin: 0 0 10px;
  padding: 0 8px;
  color: #6b7a90;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-legal-toc-list,
.pw-legal-docs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-legal-toc-list li a,
.pw-legal-docs li a {
  display: block;
  padding: 7px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #44546a;
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pw-legal-toc-list li a:hover,
.pw-legal-docs li a:hover {
  color: #0e314c;
  background: #f3f6fa;
}

.pw-legal-toc-list li a.is-active,
.pw-legal-docs li a.is-current {
  color: #ee0979;
  font-weight: 600;
  border-left-color: #ee0979;
  background: #fff2f8;
}

.pw-legal-toc-toggle {
  display: none;
}

@media (max-width: 991.98px) {
  .pw-legal {
    padding-top: 28px;
  }

  .pw-legal-toc {
    padding: 0;
  }

  .pw-legal-toc > .pw-legal-toc-title {
    display: none;
  }

  .pw-legal-toc-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: #0e314c;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }

  .pw-legal-toc-toggle i:first-child {
    margin-right: 8px;
    color: #ee0979;
  }

  .pw-legal-toc-caret {
    transition: transform 0.2s ease;
  }

  .pw-legal-toc.is-open .pw-legal-toc-caret {
    transform: rotate(180deg);
  }

  .pw-legal-toc-list {
    padding: 0 10px 14px;
    max-height: 60vh;
    overflow-y: auto;
  }

  .pw-legal-toc.is-ready:not(.is-open) .pw-legal-toc-list {
    display: none;
  }

  .pw-legal-docs {
    display: none;
  }
}

/* Article typography */

.pw-legal-article {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e7ecf3;
  border-radius: 20px;
  padding: 44px 52px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
  color: #33445a;
  font-size: 16.5px;
  line-height: 1.75;
}

.pw-legal-article > * {
  max-width: 75ch;
}

.pw-legal-article h2 {
  margin: 48px 0 16px;
  padding-top: 28px;
  border-top: 1px solid #eef1f6;
  color: #0e314c;
  font-family: "Raleway", sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.pw-legal-article > h2:first-child,
.pw-legal-article > .pw-legal-intro + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.pw-legal-article h3 {
  margin: 28px 0 10px;
  color: #0e314c;
  font-family: "Raleway", sans-serif;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: 110px;
}

.pw-legal-article p,
.pw-legal-article li {
  color: #33445a;
  font-size: 16.5px;
  line-height: 1.75;
}

.pw-legal-article p {
  margin: 0 0 14px;
}

.pw-legal-article ul,
.pw-legal-article ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.pw-legal-article li {
  margin-bottom: 6px;
}

.pw-legal-article li::marker {
  color: #ee0979;
}

.pw-legal-article a {
  color: #d1066a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pw-legal-article a:hover {
  color: #ff6a00;
}

.pw-legal-article strong {
  color: #0e314c;
}

.pw-legal-article .pw-legal-caps {
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pw-legal-intro {
  padding: 20px 22px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #f3f6fa;
  border: 1px solid #e3e9f1;
}

.pw-legal-intro p:last-child {
  margin-bottom: 0;
}

/* Definitions */

.pw-legal-defs {
  margin: 0 0 18px;
  padding: 0;
}

.pw-legal-defs dt {
  margin-top: 12px;
  color: #0e314c;
  font-weight: 700;
}

.pw-legal-defs dd {
  margin: 2px 0 0;
  padding-left: 14px;
  border-left: 2px solid #eef1f6;
}

/* Callouts */

.pw-legal-callout {
  position: relative;
  margin: 22px 0;
  padding: 18px 20px 18px 58px;
  border-radius: 14px;
  border: 1px solid #dbe5f2;
  background: #f1f6fd;
}

.pw-legal-callout::before {
  content: "\f05a";
  position: absolute;
  left: 20px;
  top: 17px;
  color: #2563eb;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
}

.pw-legal-callout-title {
  display: block;
  margin-bottom: 4px;
  color: #0e314c;
  font-family: "Raleway", sans-serif;
  font-size: 16.5px;
  font-weight: 700;
}

.pw-legal-callout p:last-child,
.pw-legal-callout ul:last-child {
  margin-bottom: 0;
}

.pw-legal-callout--warn {
  border-color: #fde3b5;
  background: #fff8eb;
}

.pw-legal-callout--warn::before {
  content: "\f071";
  color: #e07b00;
}

.pw-legal-callout--danger {
  border-color: #fbc8d9;
  background: #fff1f6;
}

.pw-legal-callout--danger::before {
  content: "\f3ed";
  color: #e0115f;
}

.pw-legal-callout--ok {
  border-color: #c6ead6;
  background: #effaf3;
}

.pw-legal-callout--ok::before {
  content: "\f058";
  color: #15935a;
}

/* Tables */

.pw-legal-table-wrap {
  max-width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
}

.pw-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pw-legal-table th,
.pw-legal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.pw-legal-table th {
  background: #f3f6fa;
  color: #0e314c;
  font-weight: 700;
}

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

/* Scam cards */

.pw-legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 8px 0 22px;
}

.pw-legal-card {
  padding: 16px 18px;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  background: #fbfcfe;
}

.pw-legal-card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}

.pw-legal-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.pw-legal-end {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #eef1f6;
}

.pw-legal-end p {
  margin-bottom: 6px;
  font-size: 15px;
}

.pw-legal-end-date {
  color: #6b7a90 !important;
}

@media (max-width: 767.98px) {
  .pw-legal-hero {
    padding-top: 130px;
    padding-bottom: 44px;
  }

  .pw-legal-hero .ctp-page-banner-content h1 {
    font-size: 30px;
  }

  .pw-legal-summary {
    font-size: 15.5px;
  }

  .pw-legal-article {
    padding: 26px 20px;
    border-radius: 16px;
    font-size: 16px;
  }

  .pw-legal-article p,
  .pw-legal-article li {
    font-size: 16px;
    line-height: 1.7;
  }

  .pw-legal-article h2 {
    margin-top: 36px;
    padding-top: 22px;
    font-size: 21px;
  }

  .pw-legal-article h3 {
    font-size: 17px;
  }

  .pw-legal-callout {
    padding: 16px 16px 16px 48px;
  }

  .pw-legal-callout::before {
    left: 16px;
    top: 16px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.pw-legal) {
    scroll-behavior: smooth;
  }
}

/* Print */

@media print {
  .navbar-area,
  .preloader,
  .ctp-footer-area,
  .go-top,
  .pw-legal-aside,
  .pw-legal-print,
  .pw-legal-hero .list,
  .trustpilot-widget,
  #TrustedReviews-widget,
  iframe {
    display: none !important;
  }

  .pw-legal-hero {
    padding: 0 0 12px !important;
    background: none !important;
  }

  .pw-legal-hero::before {
    display: none !important;
  }

  .pw-legal-hero h1,
  .pw-legal-summary,
  .pw-legal-meta {
    color: #000000 !important;
  }

  .pw-legal-kicker {
    padding: 0;
    background: none;
    color: #000000;
  }

  .pw-legal {
    padding: 0;
    background: none;
  }

  .pw-legal-grid {
    display: block;
  }

  .pw-legal-article {
    padding: 0;
    border: 0;
    box-shadow: none;
    font-size: 11pt;
  }

  .pw-legal-article > * {
    max-width: none;
  }

  .pw-legal-article p,
  .pw-legal-article li {
    font-size: 11pt;
    line-height: 1.5;
    color: #000000;
  }

  .pw-legal-article h2 {
    break-after: avoid;
    font-size: 15pt;
  }

  .pw-legal-callout,
  .pw-legal-card {
    break-inside: avoid;
    background: none !important;
    border: 1px solid #999999 !important;
  }

  .pw-legal-article a {
    color: #000000;
  }
}
