/* Legal fees — same layout/spacing/colors as legal-terms (AGB) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Soft locale switch: hide until scroll restore, then fade in; fade out on leave */
html.locale-fade-pending,
html.locale-fade-out {
  opacity: 0;
}

html.locale-fade-ready {
  opacity: 0;
  transition: opacity 0.22s ease;
}

html.locale-fade-ready.locale-fade-in {
  opacity: 1;
}

html.locale-fade-out {
  transition: opacity 0.22s ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.locale-fade-pending,
  html.locale-fade-out,
  html.locale-fade-ready,
  html.locale-fade-ready.locale-fade-in {
    opacity: 1;
    transition: none;
    pointer-events: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.page-legal-fees {
  margin: 0;
  color: #142c33;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.terms-page {
  padding: 48px 0 96px;
}

.terms-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  width: min(1290px, calc(100% - 80px));
  margin: 0 auto 48px;
}

.terms-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.terms-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(100, 205, 114, 0.1);
  color: #2b7534;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.terms-heading {
  margin: 0;
  max-width: 22ch;
  color: #142c33;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.15;
}

.terms-hero__media {
  min-height: 220px;
  border-radius: 20px;
  background:
    center / cover no-repeat url("./assets/terms-hero.jpg");
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: 80%;
  margin: 0 auto;
  padding: 0 20rem;
}

.terms-auto-note {
  margin: 0 0 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(20, 44, 51, 0.06);
  color: #142c33;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.terms-auto-note a {
  color: #ed7e40;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.terms-auto-note a:hover,
.terms-auto-note a:focus-visible {
  color: #d46b30;
}

.terms-body h2,
.terms-body h4 {
  margin: 0;
  padding: 16px 0 0;
  color: #142c33;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.terms-body h4 {
  font-size: 16px;
  padding: 8px 0 4px;
}

.terms-body .fees-body {
  margin: 0 0 32px;
}

.terms-body .fees-body:last-child {
  margin-bottom: 0;
}

.terms-body p {
  margin: 8px 0 32px;
  color: #142c33;
  font-size: 16px;
  line-height: 1.65;
}

.terms-body .fees-body > p {
  margin: 8px 0 16px;
}

.terms-body h2 + p,
.terms-body h2 + ul,
.terms-body h2 + ol,
.terms-body h4 + p,
.terms-body h4 + ul,
.terms-body h4 + ol {
  margin-top: 6px;
}

.terms-body > p:first-child {
  margin-top: 0;
}

.terms-body p:last-child {
  margin-bottom: 16px;
}

.terms-body .contact-details {
  margin: 0 0 24px;
}

.terms-body .contact-details p {
  margin: 0 0 4px;
}

.terms-body .contact-details p:last-child {
  margin-bottom: 0;
}

.terms-body a {
  color: #ed7e40;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.terms-body a:hover,
.terms-body a:focus-visible {
  color: #d46b30;
}

/* Green circular checkmarks (shared with legal-terms) */
.terms-body .data-list,
.terms-body .attribute-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 8px 0 32px;
  padding: 0 0 0 2.6rem;
  list-style: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.terms-body .data-list b,
.terms-body .attribute-list b {
  font-weight: 700;
}

.terms-body .data-list .data-hero-feature,
.terms-body .data-list > li,
.terms-body .attribute-list .data-hero-feature,
.terms-body .attribute-list > li {
  display: block;
  position: relative;
  margin: 0 0 1rem;
  padding: 0;
  color: #142c33;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.terms-body .data-list .data-hero-feature::before,
.terms-body .data-list > li::before,
.terms-body .attribute-list .data-hero-feature::before,
.terms-body .attribute-list > li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  position: absolute;
  left: -2.6rem;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
  background: center / contain no-repeat url("./assets/check-green.png");
}

.terms-body .data-list li > a,
.terms-body .attribute-list li > a {
  display: inline;
  margin-top: 0;
  color: #ed7e40;
}

.terms-body h4.browser-cookie-link {
  margin: 16px 0 8px;
  color: #142c33;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.terms-body h4.browser-cookie-link a {
  font-weight: 400;
  color: #ed7e40;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.terms-body h4.browser-cookie-link a:hover {
  color: #d96a2f;
}

.fees-upfront {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.fees-tiers-block {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid rgba(20, 44, 51, 0.12);
  border-radius: 16px;
}

.fees-tiers-head,
.fees-tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.fees-tiers-head {
  padding: 0 0 8px;
  color: rgba(20, 44, 51, 0.48);
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.fees-tiers-head__pct {
  flex-shrink: 0;
  text-align: right;
}

.fees-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fees-tier {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 44, 51, 0.08);
}

.fees-tier:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.fees-tier__range {
  min-width: 0;
  color: #142c33;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.fees-tier__pct {
  flex-shrink: 0;
  color: #142c33;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.fees-interest {
  padding: 14px 16px;
  border-radius: 16px;
}

.fees-includes {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(20, 44, 51, 0.035);
}

.fees-includes h4,
.fees-interest h4 {
  padding: 0 0 8px;
  font-size: 15px;
}

.fees-includes h4 {
  font-weight: 500;
}

.fees-includes .attribute-list {
  gap: 0.4rem;
  margin: 0;
  padding-left: 2rem;
}

.fees-includes .attribute-list > li {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.fees-includes .attribute-list > li::before {
  top: 0.12rem;
  left: -2rem;
  width: 1.25rem;
  height: 1.25rem;
}

.fees-interest {
  background: rgba(100, 205, 114, 0.14);
}

.terms-body .fees-interest p {
  margin: 0;
}

.fees-interest__rate {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.fees-interest__note {
  margin-top: 4px;
  color: rgba(20, 44, 51, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.terms-body .fees-body:has(.fees-extraordinary) {
  margin-top: 24px;
  padding-top: 48px;
  border-top: 1px solid rgba(20, 44, 51, 0.12);
}

.fees-extraordinary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.fees-extra-group {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: rgba(20, 44, 51, 0.035);
}

.fees-extra-group__title {
  margin: 0 0 4px;
  padding: 0 0 8px;
  color: #1bb155;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.fees-extra-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fees-extra-item {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 44, 51, 0.08);
}

.fees-extra-item:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.fees-extra-item__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.fees-extra-item__name {
  color: #142c33;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.fees-extra-item__value {
  color: #142c33;
  font-family: alaska, "Google Sans", Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.terms-body .fees-extra-item__desc {
  margin: 6px 0 0;
  color: rgba(20, 44, 51, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.terms-body ol {
  margin: 16px 0 32px 1.5em;
  padding: 0;
  list-style: none;
  counter-reset: alpha-counter;
}

.terms-body ol li {
  position: relative;
  margin: 16px 0;
  color: #142c33;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  counter-increment: alpha-counter;
}

.terms-body ol li::before {
  content: counter(alpha-counter, lower-alpha) ") ";
  position: absolute;
  left: -1.5em;
}

@media (max-width: 760px) {
  .fees-upfront {
    gap: 12px;
    margin-top: 24px;
  }

  .fees-tiers-block {
    padding: 10px 14px;
    border-radius: 14px;
  }

  .fees-tiers-head {
    padding-bottom: 6px;
    font-size: 11px;
  }

  .fees-tier {
    padding: 10px 0;
  }

  .fees-tier__range {
    font-size: 15px;
  }

  .fees-tier__pct {
    font-size: 17px;
  }

  .fees-includes {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .fees-interest {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .fees-includes h4,
  .fees-interest h4 {
    padding-bottom: 6px;
    font-size: 14px;
  }

  .fees-includes .attribute-list > li,
  .fees-interest__rate {
    font-size: 14px;
  }

  .fees-interest__note {
    font-size: 13px;
  }

  .terms-body .fees-body:has(.fees-extraordinary) {
    margin-top: 16px;
    padding-top: 36px;
  }

  .fees-extraordinary {
    gap: 16px;
    margin-top: 24px;
  }

  .fees-extra-group {
    padding: 12px 14px 10px;
    border-radius: 14px;
  }

  .fees-extra-group__title {
    font-size: 14px;
  }

  .fees-extra-item {
    padding: 12px 0;
  }

  .fees-extra-item__name {
    font-size: 14px;
  }

  .fees-extra-item__value {
    font-size: 17px;
  }

  .terms-body .fees-extra-item__desc {
    font-size: 13px;
  }
}

@media (max-width: 1120px) {
  .terms-content {
    padding: 0 5rem;
  }
}

@media (max-width: 900px) {
  .terms-page {
    padding: 32px 0 72px;
  }

  .terms-hero {
    grid-template-columns: 1fr;
    width: min(1290px, calc(100% - 40px));
    margin-bottom: 32px;
  }

  .terms-heading {
    max-width: none;
  }

  .terms-hero__media {
    min-height: 180px;
    order: -1;
  }

  .terms-content {
    width: calc(100% - 40px);
    padding: 0;
  }
}

@media (max-width: 560px) {
  .terms-hero__media {
    min-height: 140px;
  }

  .terms-body h2 {
    font-size: 18px;
  }

  .terms-body p,
  .terms-body .data-list li,
  .terms-body .attribute-list li,
  .terms-body ol li,
  .terms-auto-note {
    font-size: 16px;
  }

  .terms-body p,
  .terms-body ol li {
    line-height: 1.7;
  }
}

@media only screen and (max-width: 48em) {
  header.header .mobile-nav a.header-cta-kamuno.btn {
    font-size: 14px;
  }
}

@media (max-width: 374px) {
  header.header .mobile-nav a.header-cta-kamuno.btn {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 344px) {
  html[lang="fr"] header.header .mobile-nav a.header-cta-kamuno.btn,
  html[lang="it"] header.header .mobile-nav a.header-cta-kamuno.btn {
    font-size: 0;
  }

  html[lang="fr"] header.header .mobile-nav a.header-cta-kamuno.btn::after {
    content: "Demander";
    content: "Demander" / "";
    font-size: 14px;
  }

  html[lang="it"] header.header .mobile-nav a.header-cta-kamuno.btn::after {
    content: "Richiedere";
    content: "Richiedere" / "";
    font-size: 14px;
  }
}
