/* =========================================================
   ABANSA ANDORRA - LEGAL PAGES
   Add once at the end of the site's custom CSS
   ========================================================= */

.andorra-legal-hero {
  background: #003A70;
  color: #fff;
  padding: clamp(42px, 6vw, 72px) 0;
}

.andorra-legal-hero > .l-section-h {
  max-width: 1180px;
  padding: 0 clamp(22px, 4vw, 52px);
}

.andorra-legal-hero .andorra-legal-kicker {
  margin-bottom: 12px;
  color: #FF7F41;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.andorra-legal-hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 700;
}

.andorra-legal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.andorra-legal-page {
  background: #F7F8FA;
  padding: clamp(36px, 5vw, 64px) 0 clamp(54px, 7vw, 84px);
}

.andorra-legal-page > .l-section-h {
  max-width: 1040px;
  padding: 0 22px;
}

.andorra-legal-card {
  margin: 0;
  padding: clamp(28px, 5vw, 58px);
  background: #fff;
  border: 1px solid rgba(0,58,112,.10);
  border-radius: 12px;
  box-shadow: 0 12px 42px rgba(0,58,112,.08);
}

.andorra-legal-meta {
  margin-bottom: 22px;
  color: #6B7682;
  font-size: 13px;
  line-height: 1.5;
}

.andorra-legal-draft-note,
.andorra-legal-warning {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: rgba(255,127,65,.10);
  border-left: 4px solid #FF7F41;
  color: #003A70;
  font-size: 14px;
  line-height: 1.55;
}

.andorra-legal-toc {
  margin: 28px 0 42px;
  padding: 22px 24px;
  background: rgba(241,230,178,.28);
  border-radius: 8px;
}

.andorra-legal-toc > strong {
  display: block;
  margin-bottom: 12px;
  color: #003A70;
  font-size: 16px;
}

.andorra-legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 20px;
}

.andorra-legal-toc li {
  padding-left: 3px;
  color: #FF7F41;
  font-size: 14px;
  line-height: 1.45;
}

.andorra-legal-toc a {
  color: #003A70;
  text-decoration: none;
}

.andorra-legal-toc a:hover {
  color: #FF7F41;
}

.andorra-legal-content,
.andorra-legal-content p,
.andorra-legal-content li {
  color: #2D3C4C;
}

.andorra-legal-section {
  scroll-margin-top: 120px;
}

.andorra-legal-content h2 {
  margin: 42px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #FF7F41;
  color: #003A70;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 700;
}

.andorra-legal-content section:first-child h2 {
  margin-top: 0;
}

.andorra-legal-content h3 {
  margin: 26px 0 10px;
  color: #003A70;
  font-size: 19px;
  line-height: 1.3;
}

.andorra-legal-content p,
.andorra-legal-content li {
  font-size: 16px;
  line-height: 1.72;
}

.andorra-legal-content p {
  margin: 0 0 16px;
}

.andorra-legal-content ul {
  margin: 4px 0 20px;
  padding-left: 24px;
}

.andorra-legal-content li {
  margin-bottom: 8px;
}

.andorra-legal-content li::marker {
  color: #FF7F41;
}

.andorra-legal-content a {
  color: #003A70;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.andorra-legal-content a:hover {
  color: #FF7F41;
}

.andorra-legal-address {
  margin: 8px 0 20px;
  padding: 16px 18px;
  background: #F7F8FA;
  border-radius: 6px;
  color: #2D3C4C;
  font-size: 15px;
  line-height: 1.65;
}

.andorra-legal-table-wrap {
  width: 100%;
  margin: 18px 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.andorra-legal-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.andorra-legal-table th,
.andorra-legal-table td {
  padding: 12px 10px;
  border: 1px solid rgba(0,58,112,.18);
  text-align: left;
  vertical-align: top;
}

.andorra-legal-table th {
  background: #003A70;
  color: #fff;
  font-weight: 700;
}

.andorra-legal-table td {
  color: #5B6875;
}

@media (max-width: 767px) {

  .andorra-legal-hero {
    padding: 36px 0 38px;
  }

  .andorra-legal-hero > .l-section-h,
  .andorra-legal-page > .l-section-h {
    padding-left: 18px;
    padding-right: 18px;
  }

  .andorra-legal-hero h1 {
    font-size: 36px;
  }

  .andorra-legal-card {
    padding: 26px 20px;
    border-radius: 8px;
  }

  .andorra-legal-toc {
    margin: 24px 0 34px;
    padding: 18px;
  }

  .andorra-legal-toc ol {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .andorra-legal-content h2 {
    margin-top: 34px;
    padding-left: 11px;
    font-size: 22px;
  }

  .andorra-legal-content p,
  .andorra-legal-content li {
    font-size: 15.5px;
    line-height: 1.68;
  }
}