/* =====================================================================
   Solar Harbour: Terms and conditions page (terms.php)
   Loaded by terms.php. Upload to: assets/css/sh-tc.css
   Colours: navy #18457b, gold #f8bc2d and white. Every class starts with
   "sh-tc" so nothing here clashes with the theme.
   The wording of the terms lives in terms.php and is unchanged; this file
   only controls how it looks on screen and on paper.
   ===================================================================== */
.sh-tc {
  --sh-tc-navy: #18457b;
  --sh-tc-gold: #f8bc2d;
  --sh-tc-navy-rgb: 24, 69, 123;
  --sh-tc-gold-rgb: 248, 188, 45;
  --sh-tc-ink-2: rgba(24, 69, 123, .82);
  --sh-tc-line: rgba(24, 69, 123, .13);
  --sh-tc-head: var(--font-primary, "Exo"), system-ui, sans-serif;
  display: block; margin: 0; padding: 0; overflow-x: clip;
  font-family: var(--font-secondary, "Albert Sans"), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; font-weight: 400; text-align: left; color: var(--sh-tc-navy);
}
.sh-tc *, .sh-tc *::before, .sh-tc *::after { box-sizing: border-box; }
/* keep the site's global p / ul / li / heading styles out (zero-specificity, so the rules below still win) */
:where(.sh-tc) p, :where(.sh-tc) h1, :where(.sh-tc) h2, :where(.sh-tc) h3 { margin: 0; color: inherit; }
:where(.sh-tc) ul, :where(.sh-tc) ol, :where(.sh-tc) ul li, :where(.sh-tc) ol li { margin: 0; padding: 0; list-style: none; font-size: inherit; line-height: inherit; color: inherit; }
:where(.sh-tc) a { text-decoration: none; }
:where(.sh-tc) button { font: inherit; }
.sh-tc a:focus-visible, .sh-tc button:focus-visible, .sh-tc select:focus-visible { outline: 3px solid var(--sh-tc-gold); outline-offset: 3px; }
.sh-tc__wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.sh-tc__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 8px; border: 2px solid transparent;
  font-family: var(--sh-tc-head); font-weight: 700; font-size: 16.5px; line-height: 1; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sh-tc__btn svg { width: 18px; height: 18px; flex: none; }
.sh-tc__btn--gold, .sh-tc__btn--gold:visited { background: var(--sh-tc-gold); color: var(--sh-tc-navy); }
.sh-tc__btn--gold:hover, .sh-tc__btn--gold:focus-visible { background: var(--sh-tc-gold); color: var(--sh-tc-navy); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(var(--sh-tc-gold-rgb), .9); }
.sh-tc__btn--ghost, .sh-tc__btn--ghost:visited { border-color: rgba(255, 255, 255, .7); color: #ffffff; background: transparent; }
.sh-tc__btn--ghost:hover, .sh-tc__btn--ghost:focus-visible { background: #ffffff; border-color: #ffffff; color: var(--sh-tc-navy); }

/* gold reading-progress line along the very top of the window */
.sh-tc__progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1999; height: 3px; pointer-events: none; }
.sh-tc__progress > span { display: block; height: 100%; background: var(--sh-tc-gold); transform: scaleX(0); transform-origin: 0 50%; }


/* ===================================================================
   1. Banner
   =================================================================== */
.sh-tc__banner { position: relative; isolation: isolate; overflow: hidden; color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 60%), var(--sh-tc-navy); }
.sh-tc__banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--sh-tc-gold) 0%, rgba(var(--sh-tc-gold-rgb), .6) 55%, rgba(var(--sh-tc-gold-rgb), 0) 100%); }
/* faint ruled lines, like the page of a contract */
.sh-tc__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 37px, rgba(255, 255, 255, .06) 37px 38px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 70%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 70%); }
.sh-tc__banner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.sh-tc__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.sh-tc__crumbs a, .sh-tc__crumbs a:visited { color: rgba(255, 255, 255, .88); }
.sh-tc__crumbs a:hover { color: var(--sh-tc-gold); }
.sh-tc__crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .45); }
.sh-tc__title { margin-top: 18px; font-family: var(--sh-tc-head); font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.025em; color: #ffffff; text-wrap: balance; }
.sh-tc__rule { display: block; width: 64px; height: 4px; margin-top: 22px; border-radius: 2px; background: var(--sh-tc-gold); }
.sh-tc__lead { margin-top: 20px; max-width: 52ch; font-size: 18.5px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.sh-tc__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* soft gold glow with thin rings radiating out */
.sh-tc__glow { position: absolute; z-index: -1; right: 4%; bottom: -330px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--sh-tc-gold-rgb), .45) 0%, rgba(var(--sh-tc-gold-rgb), .14) 38%, rgba(var(--sh-tc-gold-rgb), 0) 68%); animation: sh-tc-rise 1.6s cubic-bezier(.16, .8, .24, 1) .1s both; }
.sh-tc__glow > span { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(var(--sh-tc-gold-rgb), .5); opacity: 0; animation: sh-tc-radiate 9s linear infinite; }
.sh-tc__glow > span:nth-child(2) { animation-delay: 3s; }
.sh-tc__glow > span:nth-child(3) { animation-delay: 6s; }
@keyframes sh-tc-radiate { 0% { transform: scale(.7); opacity: 0; } 15% { opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes sh-tc-rise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the "your agreement includes" card */
.sh-tc__card {
  position: relative; padding: 0 24px 18px; border-radius: 22px; overflow: hidden; color: var(--sh-tc-navy);
  background: rgba(255, 255, 255, .95); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55);
  animation: sh-tc-card .9s cubic-bezier(.16, .8, .24, 1) .35s both;
}
@keyframes sh-tc-card { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-tc__card-art { margin: 0 -24px; padding: 14px 16px 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%), var(--sh-tc-navy); border-bottom: 3px solid var(--sh-tc-gold); }
.sh-tc__card-art svg { display: block; width: 100%; height: auto; }
.sh-tc__card-title { margin-top: 18px; font-family: var(--sh-tc-head); font-weight: 800; font-size: 19px; line-height: 1.25; }
.sh-tc__card-rows { display: grid; margin-top: 8px; }
.sh-tc__card-rows li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(var(--sh-tc-navy-rgb), .1); }
.sh-tc__card-rows li:first-child { border-top: 0; }
.sh-tc__card-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--sh-tc-gold-rgb), .24); }
.sh-tc__card-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--sh-tc-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-tc__card-rows small { display: block; font-size: 13px; line-height: 1.3; color: rgba(var(--sh-tc-navy-rgb), .66); }
.sh-tc__card-rows strong { display: block; font-family: var(--sh-tc-head); font-weight: 700; font-size: 16px; line-height: 1.3; }
/* card art: the lines fill in, the signature writes itself, the seal stamps; loop 7s */
.sh-tc__s-line { transform-box: fill-box; transform-origin: 0 50%; animation: sh-tc-line 7s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes sh-tc-line { 0%, 4% { transform: scaleX(0); } 14%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
.sh-tc__s-sign { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sh-tc-sign 7s ease-in-out infinite; }
@keyframes sh-tc-sign { 0%, 22% { stroke-dashoffset: 100; } 46%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 100; } }
.sh-tc__s-seal { transform-box: fill-box; transform-origin: 50% 50%; animation: sh-tc-seal 7s cubic-bezier(.3, 1.5, .5, 1) infinite; }
@keyframes sh-tc-seal { 0%, 48% { transform: scale(0); opacity: 0; } 56%, 88% { transform: scale(1); opacity: 1; } 96%, 100% { transform: scale(0); opacity: 0; } }
.sh-tc__s-doc { animation: sh-tc-doc 7s ease-in-out infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes sh-tc-doc { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.sh-tc__blink { animation: sh-tc-blink 1.4s ease-in-out infinite; }
@keyframes sh-tc-blink { 50% { opacity: .25; } }


/* ===================================================================
   2. The terms, with a contents panel
   =================================================================== */
.sh-tc__body { padding: 80px 0 104px; background: #ffffff; }
.sh-tc__layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 72px; align-items: start; }

/* contents panel: stays in view and marks the section being read */
.sh-tc__toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(var(--sh-tc-navy-rgb), .25) transparent; }
.sh-tc__toc-title { font-family: var(--sh-tc-head); font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--sh-tc-navy); }
.sh-tc__toc ol { margin-top: 14px; border-left: 2px solid var(--sh-tc-line); }
.sh-tc__toc li { margin: 0; }
.sh-tc__toc a, .sh-tc__toc a:visited { display: block; margin-left: -2px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.35; color: rgba(var(--sh-tc-navy-rgb), .72); transition: color .2s ease, border-color .2s ease; }
.sh-tc__toc a:hover { color: var(--sh-tc-navy); border-left-color: rgba(var(--sh-tc-gold-rgb), .6); }
.sh-tc__toc a[aria-current] { color: var(--sh-tc-navy); font-weight: 700; border-left-color: var(--sh-tc-gold); }

/* "jump to a section" (phones and tablets only) */
.sh-tc__jump { display: none; }
.sh-tc__jump label { display: block; margin-bottom: 6px; font-family: var(--sh-tc-head); font-size: 14px; font-weight: 700; color: var(--sh-tc-navy); }
#sh-tc-root #sh-tc-jump {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 44px 0 16px; border: 2px solid var(--sh-tc-navy); border-radius: 10px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 46px; color: var(--sh-tc-navy);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318457b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px;
}

/* the text of the terms */
.sh-tc__doc { max-width: 780px; }
.sh-tc__clause { padding: 40px 0; border-top: 1px solid var(--sh-tc-line); scroll-margin-top: 96px; }
.sh-tc__clause:first-child { padding-top: 0; border-top: 0; }
.sh-tc__clause:last-child { padding-bottom: 0; }
.sh-tc__clause h2 { position: relative; margin-bottom: 16px; font-family: var(--sh-tc-head); font-weight: 800; font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; color: var(--sh-tc-navy); text-wrap: balance; }
.sh-tc__anchor, .sh-tc__anchor:visited { position: absolute; left: -30px; top: 0; width: 24px; font-weight: 700; color: var(--sh-tc-gold); opacity: 0; transition: opacity .2s ease; }
.sh-tc__clause h2:hover .sh-tc__anchor, .sh-tc__anchor:focus-visible { opacity: 1; }
.sh-tc__clause:target h2::after { content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--sh-tc-gold); animation: sh-tc-flag 2.4s ease forwards; }
@keyframes sh-tc-flag { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.sh-tc__clause p { font-size: 17px; line-height: 1.75; color: var(--sh-tc-ink-2); }
.sh-tc__clause p + p { margin-top: 14px; }
.sh-tc__clause a, .sh-tc__clause a:visited { color: var(--sh-tc-navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sh-tc-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sh-tc__clause a:hover { background: rgba(var(--sh-tc-gold-rgb), .25); }
.sh-tc__clause .sh-tc__anchor { text-decoration: none; background: none; }
.sh-tc__clause .sh-tc__sub { margin-top: 24px; font-family: var(--sh-tc-head); font-size: 17.5px; font-weight: 800; line-height: 1.4; color: var(--sh-tc-navy); }
/* lists: gold dots, a ring for the second level */
.sh-tc__list { display: grid; gap: 9px; margin-top: 12px; }
.sh-tc__list li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.7; color: var(--sh-tc-ink-2); }
.sh-tc__list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-tc-gold); }
.sh-tc__list .sh-tc__list { margin-top: 9px; }
.sh-tc__list .sh-tc__list li::before { background: transparent; border: 2px solid var(--sh-tc-navy); opacity: .55; }

/* back to top */
.sh-tc__top, .sh-tc__top:visited { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--sh-tc-navy); color: #ffffff; box-shadow: 0 14px 30px -12px rgba(var(--sh-tc-navy-rgb), .8);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease, color .2s ease; }
.sh-tc__top.is-on { opacity: 1; visibility: visible; transform: none; }
.sh-tc__top:hover { background: var(--sh-tc-gold); color: var(--sh-tc-navy); }
.sh-tc__top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }


/* ===================================================================
   Responsive + reduced motion
   =================================================================== */
@media (max-width: 1100px) {
  .sh-tc__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 991px) {
  .sh-tc__banner-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sh-tc__card { max-width: 460px; }
  .sh-tc__glow { right: -120px; bottom: -280px; }
  .sh-tc__body { padding: 0 0 80px; }
  .sh-tc__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sh-tc__toc { display: none; }
  .sh-tc__jump { display: block; position: sticky; top: 64px; z-index: 5; margin: 0 -24px 36px; padding: 14px 24px; background: #ffffff; border-bottom: 1px solid var(--sh-tc-line); }
  .sh-tc__jump label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sh-tc__doc { max-width: none; }
  .sh-tc__clause { scroll-margin-top: 150px; }
  .sh-tc__anchor { display: none; }
}
@media (max-width: 767px) {
  .sh-tc__wrap { padding: 0 16px; }
  .sh-tc__banner-grid { padding-top: 40px; padding-bottom: 48px; }
  .sh-tc__lead { font-size: 17px; }
  .sh-tc__actions .sh-tc__btn { flex: 1 1 100%; }
  .sh-tc__glow { width: 320px; height: 320px; bottom: -200px; }
  .sh-tc__card { padding: 0 18px 14px; }
  .sh-tc__card-art { margin: 0 -18px; }
  .sh-tc__jump { margin: 0 -16px 28px; padding: 12px 16px; }
  .sh-tc__clause { padding: 32px 0; }
  .sh-tc__clause h2 { font-size: 21px; }
  .sh-tc__clause p, .sh-tc__list li { font-size: 16px; line-height: 1.7; }
  .sh-tc__top, .sh-tc__top:visited { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-tc *, .sh-tc *::before, .sh-tc *::after { animation: none !important; transition: none !important; }
  .sh-tc__s-sign { stroke-dashoffset: 0; }
  .sh-tc__glow > span { display: none; }
}

/* ---------- banner height: the same on every page (606px, as on the Incentives page) on laptops and desktops ---------- */
@media (min-width: 992px) {
  .sh-tc__banner { display: flex; align-items: center; height: 606px; }
  .sh-tc__banner > .sh-tc__banner-grid { width: 100%; padding-top: 0; padding-bottom: 12px; }
}


/* ===================================================================
   Print or save as PDF: just the terms, in black on white
   =================================================================== */
@media print {
  @page { margin: 18mm 16mm; }
  #sh-hd, .sh-hd, .sh-ff, footer, header,
  .sh-tc__progress, .sh-tc__toc, .sh-tc__jump, .sh-tc__actions, .sh-tc__card, .sh-tc__glow, .sh-tc__top, .sh-tc__anchor, .sh-tc__crumbs, .sh-tc__rule { display: none !important; }
  .sh-tc { color: #000000; font-size: 11pt; }
  .sh-tc *, .sh-tc *::before, .sh-tc *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  .sh-tc__banner { height: auto !important; display: block !important; background: none !important; color: #000000; }
  .sh-tc__banner::before, .sh-tc__banner::after { display: none; }
  .sh-tc__banner-grid { display: block; padding: 0 0 6mm !important; }
  .sh-tc__title { margin: 0; font-size: 24pt; color: #000000; }
  .sh-tc__lead { max-width: none; margin-top: 3mm; font-size: 10.5pt; color: #000000; }
  .sh-tc__wrap { max-width: none; padding: 0; }
  .sh-tc__body { padding: 0; }
  .sh-tc__layout { display: block; }
  .sh-tc__doc { max-width: none; }
  .sh-tc__clause { padding: 4mm 0; border-top: 0.5pt solid #999999; }
  .sh-tc__clause:first-child { padding-top: 4mm; border-top: 0.5pt solid #999999; }
  .sh-tc__clause h2 { margin-bottom: 2mm; font-size: 13pt; color: #000000; break-after: avoid; page-break-after: avoid; }
  .sh-tc__clause p, .sh-tc__list li { font-size: 10.5pt; line-height: 1.5; color: #000000; orphans: 3; widows: 3; }
  .sh-tc__clause .sh-tc__sub { font-size: 11pt; color: #000000; break-after: avoid; page-break-after: avoid; }
  .sh-tc__list li::before { background: #000000; width: 5px; height: 5px; top: .7em; }
  .sh-tc__list .sh-tc__list li::before { background: transparent; border: 1px solid #000000; opacity: 1; }
  .sh-tc__clause a, .sh-tc__clause a:visited { color: #000000; text-decoration: underline; }
}
