/* Componente juridice AIM: pagini publice, checkout și contul clientului. */
.rights-demo {
  margin: 0;
  color: #252525;
  background: #f6f6f6;
  font: .875rem/1.7 "Poppins", "Montserrat", sans-serif;
}

body:has(.rights-page) { background: #f6f6f6; }

.rights-page {
  --rights-gold: var(--aim-cyan-1, #e8c547);
  --rights-gold-deep: var(--aim-cyan-2, #d4a832);
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 68rem;
  margin: 30px auto 46px;
  padding: clamp(22px, 3vw, 34px);
  overflow-wrap: anywhere;
  color: #303030;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-top: 3px solid var(--rights-gold);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgb(0 0 0 / 4%);
  font: .875rem/1.72 "Poppins", "Montserrat", sans-serif;
}

.rights-page h1 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: #1a1a1a;
  border-bottom: 1px solid #ececec;
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.rights-page h1::after {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rights-gold), var(--rights-gold-deep));
  content: "";
}

.rights-page h2 {
  margin: 25px 0 10px;
  padding-left: 10px;
  color: #1d1d1d;
  border-left: 3px solid var(--rights-gold);
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.4;
}

.rights-page p { margin: 0 0 12px; }
.rights-page > h1 + p { color: #555; }
.rights-page strong { color: #1d1d1d; font-weight: 750; }
.rights-page a,
.rights-dialog a {
  color: #755a14;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgb(117 90 20 / 45%);
  text-underline-offset: .18em;
}
.rights-page a:hover,
.rights-dialog a:hover { color: #4f3d0d; text-decoration-color: currentColor; }
.rights-page ol,
.rights-page ul { margin: 11px 0 16px; padding-left: 1.35rem; }
.rights-page li { padding-left: .25rem; }
.rights-page li + li { margin-top: 9px; }
.rights-page li::marker { color: #9b781c; font-weight: 800; }
.rights-page blockquote {
  margin: 14px 0 18px;
  padding: 14px 16px;
  color: #4f4f4f;
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-left: 3px solid var(--rights-gold);
  border-radius: 0 9px 9px 0;
}
.rights-page blockquote p:last-child { margin-bottom: 0; }

.rights-notice,
.rights-order {
  box-sizing: border-box;
  margin: 18px 0 0;
  padding: 14px 16px;
  color: #303030;
  background: #fcfaf1;
  border: 1px solid #e7d797;
  border-left: 3px solid var(--aim-cyan-1, #e8c547);
  border-radius: 0 10px 10px 0;
  font: .84rem/1.65 "Poppins", "Montserrat", sans-serif;
}
.rights-notice > a { font-weight: 750; }
.rights-notice p { margin: 6px 0 0; }
.rights-notice a,
.rights-withdrawal a { color: #755a14; text-decoration: underline; text-underline-offset: .18em; }

.rights-dialog {
  box-sizing: border-box;
  width: min(39rem, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #2b2b2b;
  background: #fff;
  border: 1px solid #dedede;
  border-top: 3px solid var(--aim-cyan-1, #e8c547);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
  font: .875rem/1.65 "Poppins", "Montserrat", sans-serif;
}
.rights-dialog:not([open]) { display: none; }
.rights-dialog--notice { width: min(58rem, calc(100vw - 16px)); }
.rights-dialog::backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: blur(2px); }
.rights-dialog-heading {
  position: sticky;
  top: -20px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -2px 0 14px;
  padding: 4px 0 10px;
  background: #fff;
  border-bottom: 1px solid #ededed;
}
.rights-dialog-heading h2 {
  margin: 4px 0 0;
  color: #1a1a1a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}
.rights-close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  color: #292929;
  background: #fbf8ec;
  border: 1px solid #dfd4aa;
  border-radius: 9px;
  cursor: pointer;
  font: 400 1.35rem/1 sans-serif;
}
.rights-close:hover { background: #f4e8b8; }
.rights-dialog p { margin: 0 0 11px; }
.rights-dialog label {
  display: block;
  margin: 13px 0 6px;
  color: #272727;
  font-size: .78rem;
  font-weight: 750;
}
.rights-dialog input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: #252525;
  background: #f8f8f8;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font: inherit;
}
.rights-dialog input:focus { border-color: #b08a20; box-shadow: 0 0 0 3px rgb(232 197 71 / 16%); outline: 0; }
.rights-dialog .rights-button { margin-top: 14px; }
.rights-notice-viewport { overflow: auto; border-radius: 6px; }
.rights-official-notice { display: block; width: 100%; min-width: 48rem; max-width: none; height: auto; object-fit: contain; }

.rights-button {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 17px;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--aim-cyan-1, #e8c547), var(--aim-cyan-2, #d4a832));
  border: 1px solid #bd962b;
  border-radius: 9px;
  box-shadow: 0 5px 14px rgb(184 146 42 / 16%);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rights-button:hover { color: #1a1a1a; box-shadow: 0 7px 18px rgb(184 146 42 / 25%); transform: translateY(-1px); }
.rights-button:disabled { opacity: .65; cursor: wait; transform: none; }
.rights-page :focus-visible,
.rights-dialog :focus-visible { outline: 3px solid rgb(184 146 42 / 55%); outline-offset: 3px; }
.rights-error { color: #991b1b; font-weight: 650; }
.rights-result {
  padding: 13px 15px;
  overflow-wrap: anywhere;
  color: #4d411c;
  background: #fcf8e9;
  border-left: 3px solid var(--aim-cyan-1, #e8c547);
  border-radius: 0 8px 8px 0;
}
.rights-result:empty,
.rights-error:empty { display: none; }
.rights-sources {
  margin-top: 24px !important;
  padding: 13px 15px;
  color: #686868;
  background: #f7f7f7;
  border: 1px solid #e9e9e9;
  border-radius: 9px;
  font-size: .76rem;
}
html.rights-modal-open { overflow: hidden; }
.rights-withdrawal { margin: 17px 0; }
.rights-withdrawal [hidden] { display: none !important; }
.rights-withdrawal .rights-result { color: #4d411c; background: #fcf8e9; }
.rights-dialog.rights-dialog--inline {
  display: block;
  position: static;
  width: 100%;
  max-height: none;
  margin: 16px 0;
  box-shadow: 0 8px 26px rgb(0 0 0 / 5%);
}
.rights-dialog--inline .rights-dialog-heading { position: static; }

@media (max-width: 640px) {
  .rights-page {
    width: calc(100% - 24px);
    margin: 18px auto 34px;
    padding: 19px 17px 22px;
    border-radius: 12px;
    font-size: .84rem;
    line-height: 1.68;
  }
  .rights-page h1 { margin-bottom: 15px; padding-bottom: 11px; font-size: 1.48rem; }
  .rights-page h1::after { margin-top: 10px; }
  .rights-page h2 { margin-top: 22px; font-size: .98rem; }
  .rights-page ol, .rights-page ul { padding-left: 1.15rem; }
  .rights-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 15px; border-radius: 11px; }
  .rights-dialog-heading { top: -15px; margin-bottom: 12px; }
  .rights-dialog-heading h2 { font-size: 1.05rem; }
  .rights-button { width: 100%; }
  .rights-notice, .rights-order { padding: 12px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .rights-button { transition: none; }
}
