:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f7f7f8;
  color: #1f1f1f;
  padding: 24px;
}

.message-card {
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 32px;
  text-align: center;
}

.message-card-hello {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.message-card-text {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: #4a4a4a;
}

.message-card-thanks {
  font-size: 14px;
  margin: 0;
  color: #6b6b6b;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #f0f0f0;
  }
  .message-card {
    background: #1e1e1e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  .message-card-text {
    color: #c8c8c8;
  }
  .message-card-thanks {
    color: #9b9b9b;
  }
}
/* CMS-10: the public legal document pages (/terminos-y-condiciones, /politica-de-privacidad).
   EXHA's brand band (the mailer's #1c1428 and its light logo) over a plain, readable card, fluid
   up to 960px. */
.legal-document {
  align-self: flex-start;
  max-width: 960px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.legal-document-brand {
  background: #1c1428;
  padding: 24px;
}

.legal-document-logo {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.legal-document-body {
  padding: 32px;
}

.legal-document-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}

.legal-document-content {
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
  overflow-wrap: anywhere;
}

.legal-document-content h1 {
  font-size: 18px;
  line-height: 1.4;
  margin: 24px 0 8px;
  color: #1f1f1f;
}

.legal-document-content ul,
.legal-document-content ol {
  padding-left: 24px;
}

/* Lexxy wraps a nested list in an item of its own, which carries no marker. */
.legal-document-content li.lexxy-nested-listitem {
  list-style: none;
}

.legal-document-content a {
  color: #5b3fa0;
}

.legal-document-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.legal-document-content img {
  max-width: 100%;
  height: auto;
}

/* A table wider than the card scrolls sideways inside itself, so the page never does. Its cells keep
   their words whole: the card's `overflow-wrap: anywhere` would squeeze every column to one letter. */
.legal-document-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-document-content th,
.legal-document-content td {
  border: 1px solid #d9d9de;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}

.legal-document-content th {
  background: #f4f2f8;
  color: #1f1f1f;
  font-weight: 600;
}

/* Lexxy writes each cell's text as a paragraph; only the space between blocks inside a cell is kept. */
.legal-document-content th > :first-child,
.legal-document-content td > :first-child {
  margin-top: 0;
}

.legal-document-content th > :last-child,
.legal-document-content td > :last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .legal-document-body {
    padding: 24px 16px;
  }
  .legal-document-title {
    font-size: 20px;
  }
}
@media (prefers-color-scheme: dark) {
  .legal-document {
    background: #1e1e1e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  .legal-document-content {
    color: #c8c8c8;
  }
  .legal-document-content h1 {
    color: #f0f0f0;
  }
  .legal-document-content a {
    color: #b9a3ef;
  }
  .legal-document-content th,
  .legal-document-content td {
    border-color: #3a3a40;
  }
  .legal-document-content th {
    background: #2a2533;
    color: #f0f0f0;
  }
}
