:root {
  color-scheme: light;
  --indigo: #483089;
  --ink: #1a1b29;
  --muted: #5d5968;
  --ivory: #f1f1de;
  --lavender: #ede6f5;
  --yellow: #ffe900;
  --turquoise: #2cd5c4;
  --line: rgba(72, 48, 137, 0.18);
  --surface: #fffdf4;
  font-family: Epilogue, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 233, 0, 0.28), rgba(241, 241, 222, 0.74) 36%, #ffffff 72%),
    var(--ivory);
  color: var(--ink);
}

a { color: var(--indigo); font-weight: 760; text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  top: clamp(72px, 12vw, 150px);
  right: max(-170px, -12vw);
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  background: url("./emptor-rombos.svg") center / contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 52% 52%, #000 0 42%, transparent 76%);
  mask-image: radial-gradient(circle at 52% 52%, #000 0 42%, transparent 76%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img { width: 132px; height: auto; display: block; }

.uber-context {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 22px 0 52px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--indigo);
  font-family: MuseoModerno, Epilogue, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.35rem, 5.8vw, 5.4rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.support-note {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--indigo);
  border-radius: 8px;
  background: var(--indigo);
  color: #ffffff;
  font-weight: 820;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.button:is(:hover,:focus) {
  box-shadow: 1px 1px 4px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.button:active {
  box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(1px) scale(0.99);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--indigo);
}

.qr-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(18px, 3vw, 28px);
}

.qr-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

.qr-box {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.qr-box img {
  width: min(100%, 290px);
  height: auto;
  display: block;
}

.qr-copy {
  margin: 16px 0 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.4;
}

.details {
  padding-bottom: 54px;
}
.details .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.panel.accent { background: var(--lavender); }

.guia {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.guia a {
  padding-left: 36px;
  padding-right: 36px;
}

h2 {
  margin: 0 0 12px;
  color: var(--indigo);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

p { margin: 0; }
.panel p, li { color: var(--muted); line-height: 1.52; }

ol, ul {
  margin: 0;
  padding-left: 20px;
}

li + li { margin-top: 8px; }

.certificate-list {
  display: grid;
  gap: 10px;
}

.certificate {
  padding: 12px;
  border: 1px solid rgba(72, 48, 137, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.certificate strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.document-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: start;
  min-height: auto;
  padding: 46px 0 36px;
}

.document-hero h1 {
  max-width: 820px;
  font-size: 4rem;
  line-height: 1;
}

.document-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 18px 18px;
}

.document-meta dl {
  display: block;
  margin: 0;
  padding: 0;
}

.document-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
  margin: 18px 0 0;
  padding: 0;
}

.document-meta dd {
  margin: 4px 0 0;
  padding: 0;
  color: var(--ink);
  font-weight: 760;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 58px;
}

.legal-toc {
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.legal-toc h2 {
  margin: 0;
  color: var(--indigo);
  font-size: 1rem;
}

.legal-toc ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.legal-toc li {
  margin: 0;
  padding: 0;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.34;
}

.legal-toc a:hover {
  color: var(--indigo);
}

.legal-toc a span {
  color: var(--indigo);
  font-weight: 820;
}

.legal-document {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 32px;
}

.document-section {
  scroll-margin-top: 24px;
}

.document-section + .document-section {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  color: var(--indigo);
  font-family: MuseoModerno, Epilogue, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.72rem;
  font-weight: 650;
  line-height: 1.16;
}

.legal-document h2 span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--indigo);
  font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1;
}

.legal-document h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 820;
  line-height: 1.3;
}

.legal-document p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.legal-document .legal-emphasis {
  color: var(--ink);
  font-weight: 760;
}

.legal-list,
.legal-callout ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document li,
.legal-callout li {
  color: var(--muted);
  line-height: 1.6;
}

.legal-callout {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(72, 48, 137, 0.18);
  border-radius: 8px;
  background: rgba(237, 230, 245, 0.72);
}

.legal-document > .legal-callout:first-child {
  margin-top: 0;
}

.legal-callout h3 {
  margin: 0 0 8px;
  color: var(--indigo);
}

.legal-callout p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.58;
}

.legal-callout ul {
  display: grid;
  gap: 6px;
}

.legal-callout ol {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-callout:is(.info, .ok, .alert, .warn, .tip, .muted) {
  border-left-width: 4px;
}

.legal-callout.info { border-left-color: #8a5cb8; }

.legal-callout.ok {
  border-color: rgba(31, 122, 70, 0.3);
  border-left-color: #1f7a46;
  background: rgba(228, 244, 234, 0.8);
}
.legal-callout.ok h3 { color: #1f7a46; }

.legal-callout.alert {
  border-color: rgba(176, 20, 20, 0.28);
  border-left-color: #b01414;
  background: rgba(251, 231, 231, 0.8);
}
.legal-callout.alert h3 { color: #b01414; }

.legal-callout.warn {
  border-color: rgba(138, 90, 0, 0.3);
  border-left-color: #8a5a00;
  background: rgba(252, 243, 223, 0.85);
}
.legal-callout.warn h3 { color: #8a5a00; }

.legal-callout.tip {
  border-color: rgba(15, 139, 126, 0.3);
  border-left-color: #0f8b7e;
  background: rgba(231, 251, 248, 0.85);
}
.legal-callout.tip h3 { color: #0f8b7e; }

.legal-callout.muted {
  border-color: var(--line);
  border-left-color: var(--muted);
  background: rgba(26, 27, 41, 0.04);
}
.legal-callout.muted p {
  color: var(--muted);
  font-style: italic;
}

.legal-table-wrap {
  width: 100%;
  margin: 16px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--lavender);
  color: var(--indigo);
  font-weight: 820;
  line-height: 1.35;
  text-align: left;
}

.legal-table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(72, 48, 137, 0.1);
  color: var(--muted);
  line-height: 1.52;
  vertical-align: top;
}

.legal-table tbody tr:first-child td {
  border-top: 0;
}

.legal-table td:first-child {
  color: var(--ink);
  font-weight: 760;
}

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

footer .legal {
  display: flex;
  margin: 40px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  align-items: center;
}
footer .legal a {
  color: var(--muted);
}
footer .legal ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
}
footer .legal ul li {
  display: block;
  margin: 0;
  padding: 0;
}

@media (max-width: 880px) {
  header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .document-hero { padding-top: 28px; }
  .page::before {
    top: 84px;
    right: -210px;
    width: 430px;
    height: 430px;
    opacity: 0.035;
  }
  .qr-panel { max-width: 420px; }
  .details { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1120px); }
  .page::before { display: none; }
  h1 { font-size: 2.45rem; }
  .document-hero h1 { font-size: 2.55rem; }
  .actions { display: grid; }
  .button { width: 100%; }
  .legal-document { padding: 18px 14px; }
  .legal-document h2 {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    font-size: 1.36rem;
  }
  .legal-table { min-width: 560px; }
  footer .legal {
    display: grid;
    gap: 14px;
  }
  footer .legal ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }
}
