/* Secondary pages use the homepage's type, palette, navigation and footer. */
:root {
  color-scheme: light;
}
body {
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
.page-nav {
  position: relative;
  background: #fff;
}
.page-nav .brand,
.page-nav nav,
.page-nav .nav-actions {
  animation: none;
}
.page-nav .nav-join::after {
  transform: none;
}
.legal-shell {
  width: min(1280px, 84%);
  margin: 0 auto;
  padding-bottom: 96px;
}
.legal-hero {
  padding: 88px 0 72px;
}
.legal-shell > .legal-hero,
.channel-landing {
  position: relative;
  isolation: isolate;
}
.legal-shell > .legal-hero::before,
.channel-landing::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - 100vw) / 2);
  right: calc((100% - 100vw) / 2);
  z-index: -1;
  background: var(--paper);
}
.legal-hero h1 {
  max-width: 1040px;
  margin-bottom: 0;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 400;
  text-wrap: balance;
}
.legal-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.about-section {
  padding: clamp(56px, 7vw, 104px) 0;
  gap: clamp(40px, 7vw, 100px);
}
.legal-meta {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.legal-shell a:not(.telegram-connect):not(.contact-action) {
  text-decoration: underline;
  text-decoration-color: #929c82;
  text-underline-offset: 4px;
}
.legal-shell a:hover {
  text-decoration-color: currentColor;
}
.legal-content section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 7vw;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.legal-content:not(.channel-connect) > section:last-child {
  border-bottom: 0;
}
.legal-content h2 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-copy {
  min-width: 0;
}
.section-copy > :first-child {
  margin-top: 0;
}
.section-copy > :last-child {
  margin-bottom: 0;
}
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.legal-content p {
  margin: 0 0 18px;
}
.legal-content ul,
.legal-content ol {
  margin: 18px 0;
  padding-left: 22px;
}
.legal-content li {
  padding: 4px 0 4px 8px;
}
.legal-content li::marker {
  color: #65695f;
}
.legal-content a,
.legal-content strong {
  color: var(--ink);
}
.callout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 7vw;
  margin: 0 0 48px;
  padding: 32px 40px;
  border: 1px solid var(--line);
  border-left: 3px solid #929c82;
  background: #e9e9df;
}
.legal-hero + .callout {
  margin-top: clamp(32px, 4vw, 48px);
}
.callout strong {
  display: block;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.contact-action,
.telegram-connect,
.whatsapp-form button,
.queue-input-row button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 16px 22px;
  border: 1px solid #25302d;
  border-radius: 3px;
  background: #25302d;
  color: #fffaf2;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-action:hover,
.telegram-connect:hover,
.whatsapp-form button:hover,
.queue-input-row button:hover {
  background: #3b4941;
}
.contact-action::after,
.telegram-connect::after,
.whatsapp-form button::after,
.queue-input-row button::after {
  content: '';
  flex: none;
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: url('/brand/icon-arrow-up-right.svg') center / contain no-repeat;
  -webkit-mask: url('/brand/icon-arrow-up-right.svg') center / contain no-repeat;
}
.contact-action {
  margin-top: 24px;
}

.legal-content .contact-action,
.legal-content .telegram-connect {
  color: #fffaf2;
}
.channel-hero {
  padding: 64px 0 48px;
}
.channel-hero h1 {
  font-size: clamp(48px, 5.8vw, 84px);
}
.channel-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  padding: 64px 0 56px;
}
.channel-landing .channel-hero {
  padding: 24px 0 0;
}
.channel-landing h1 {
  font-size: clamp(48px, 4.4vw, 68px);
}
.channel-connect {
  border-top: 0;
}
.channel-connect .connection-section {
  display: block;
  padding: 32px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.channel-connect .connection-section h2 {
  margin-bottom: 28px;
  font-size: 28px;
}
.channel-connect #channel-language {
  max-width: none;
}
.channel-connect .telegram-connect {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.availability-notice {
  max-width: 720px;
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 3px solid #c85d3d;
  background: #eee4d5;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
.section-copy label,
.queue-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.section-copy input,
.section-copy select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #858c7d;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.section-copy select {
  appearance: none;
  padding-right: 48px;
  background-image: url('/brand/icon-chevron-down.svg');
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: right 16px center;
}
#channel-language {
  max-width: 300px;
  margin-bottom: 24px;
}
.section-copy input:focus-visible,
.section-copy select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.whatsapp-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.whatsapp-form input:not([type='hidden']) {
  margin-bottom: 20px;
}
.whatsapp-form p,
.connection-section p {
  font-size: 13px;
}
.whatsapp-form button {
  margin-bottom: 20px;
}
.whatsapp-form button:disabled,
.queue-input-row button:disabled {
  opacity: 0.65;
  cursor: wait;
}
#whatsapp-status:empty {
  display: none;
}
.channel-guide {
  margin-top: 32px;
  border-top: 1px solid #c9ccbf;
}
.channel-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
}
.channel-guide summary::-webkit-details-marker {
  display: none;
}
.channel-guide summary::after {
  content: '+';
  font-size: 24px;
}
.channel-guide[open] summary::after {
  content: '−';
}
.guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}
.guide figure {
  margin: 0;
}
.guide img {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 16px;
}
.guide figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.queue-form {
  margin-top: 24px;
}
.queue-input-row {
  display: flex;
  gap: 8px;
}
.queue-input-row input {
  flex: 1;
}
.queue-input-row button {
  flex: none;
}
.queue-form .queue-note {
  margin-top: 12px;
  font-size: 12px;
}
.queue-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.queue-success strong,
.queue-success span {
  display: block;
  margin-top: 12px;
}
.queue-success strong {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1px;
}
.queue-success span {
  color: var(--muted);
  line-height: 1.7;
}
.queue-form .queue-error {
  margin-top: 16px;
  color: #9a321d;
}
.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-left: auto;
  font-size: 13px;
}
.page-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page-footer a:hover {
  color: #f0c9ae;
}
.page-footer a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 900px) {
  .channel-landing {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .channel-landing .channel-hero {
    padding: 0;
  }
  .legal-shell {
    width: 86%;
    padding-bottom: 64px;
  }
  .legal-hero {
    padding: 64px 0 48px;
  }
  .legal-content section {
    gap: 5vw;
  }
  .legal-content .connection-section {
    padding: 28px;
  }
  .page-footer nav {
    width: 100%;
    margin-left: 0;
  }
  .queue-input-row {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .page-nav {
    grid-template-columns: 1fr auto;
  }
  .page-nav .brand {
    grid-column: 1;
    justify-self: start;
  }
  .page-nav .nav-actions {
    grid-column: 2;
  }
  .legal-hero {
    padding: 48px 0 40px;
  }
  .legal-hero h1,
  .channel-hero h1 {
    font-size: clamp(40px, 10.5vw, 60px);
  }
  .legal-lead {
    margin-top: 22px;
    font-size: 16px;
  }
  .legal-meta {
    font-size: 11px;
  }
  .callout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
  .legal-content section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .legal-content .connection-section {
    padding: 24px;
  }
  .channel-landing {
    padding: 40px 0;
    gap: 28px;
  }
  .channel-landing h1 {
    font-size: clamp(40px, 10.5vw, 60px);
  }
  .legal-content p,
  .legal-content li {
    font-size: 14px;
  }
  .connection-section p,
  .whatsapp-form p {
    font-size: 13px;
  }
  .telegram-connect,
  .contact-action {
    width: 100%;
  }
  .guide {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding-bottom: 40px;
  }
}

/* Keep the left blog link clear of the centred brand on phones. */
@media (max-width: 600px) {
  .page-nav {
    grid-template-columns: 1fr auto 1fr;
  }
  .page-nav .brand {
    grid-column: 2;
    justify-self: center;
  }
  .page-nav .nav-actions {
    grid-column: 3;
  }
  .page-nav .nav-join {
    display: none;
  }
}

/* One entry point, with WhatsApp availability explained before key entry. */
.messaging-hero {
  max-width: 850px;
  padding-bottom: 36px;
}
.messaging-language {
  max-width: 380px;
  margin-bottom: 24px;
}
.messaging-language label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}
.messaging-language select {
  width: 100%;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.messaging-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 55px;
}
.messaging-choices a {
  padding: 13px 22px;
  border: 1px solid #a4ada2;
  border-radius: 24px;
  font-size: 14px;
}
.messaging-choices a:first-child {
  background: #253a30;
  color: white;
  border-color: #253a30;
}
.messaging-choices span {
  margin-left: 22px;
}
.messaging-whatsapp {
  border-top: 1px solid var(--line);
  margin: 65px 0;
  padding-top: 40px;
}
.messaging-whatsapp > h2 {
  margin-bottom: 18px;
}
.messaging-status {
  display: inline-block;
  padding: 8px 13px;
  background: #e8e4d9;
  border-radius: 20px;
  font-size: 12px;
}
.messaging-whatsapp > p {
  max-width: 720px;
  line-height: 1.8;
}
.messaging-whatsapp .availability-notice {
  border-left: 3px solid #b9805f;
  padding-left: 20px;
  font-size: 17px;
  margin: 20px 0;
}
.messaging-agent-details {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.messaging-agent-details > summary {
  cursor: pointer;
  font-size: 16px;
}
.messaging-agent-details .channel-landing {
  margin-top: 24px;
  display: block;
  padding: 0;
}
.messaging-agent-details .channel-landing::before {
  content: none;
}
.messaging-agent-details .connection-section {
  display: block;
  border: 0;
  padding: 0;
}
.messaging-agent-details .connection-section h2 {
  margin-bottom: 28px;
}
.messaging-details {
  margin-top: 40px;
}
.messaging-details section {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Give the messaging introduction its own full-bleed surface. */
.messaging-intro {
  position: relative;
  isolation: isolate;
  padding: 56px 0 40px;
}
.messaging-intro::before {
  content: '';
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2);
  z-index: -1;
  background: var(--paper);
}
.messaging-intro .messaging-hero {
  padding: 0 0 28px;
}
.messaging-hero h1,
.about-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.12;
}
.messaging-language {
  margin-bottom: 20px;
}
.messaging-language #channel-language {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  max-width: none;
  margin-bottom: 0;
  padding: 12px 44px 12px 16px;
  border: 1px solid #a4ada2;
  border-radius: 8px;
  background: #fffaf2
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23253a30' stroke-width='1.5'/%3E%3C/svg%3E")
    right 14px center / 20px no-repeat;
  font-size: 16px;
  line-height: 1.4;
}
.messaging-language select:focus-visible,
.messaging-choices a:focus-visible {
  outline: 2px solid #253a30;
  outline-offset: 4px;
}
.messaging-choices {
  margin-bottom: 16px;
}
.legal-shell .messaging-choices a:not(.telegram-connect):not(.contact-action) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  text-decoration: none;
}
.messaging-choices span {
  margin-left: 0;
}
.messaging-intro > .messaging-status {
  margin: 0;
}
.messaging-intro + .channel-landing {
  padding-top: 56px;
}
.messaging-intro + .channel-landing::before {
  background: #fff;
}
.messaging-intro + .channel-landing .channel-hero {
  padding: 24px 0 0;
}
.messaging-intro + .channel-landing .channel-hero h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
@media (max-width: 600px) {
  .messaging-intro {
    padding: 36px 0 32px;
  }
  .messaging-hero .legal-lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
  }
  .messaging-language {
    max-width: none;
  }
  .messaging-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .legal-shell .messaging-choices a {
    padding: 12px 16px;
    gap: 8px;
  }
  .messaging-intro + .channel-landing {
    gap: 24px;
  }
  .messaging-intro + .channel-landing .channel-hero {
    padding: 12px 0 0;
  }
  .messaging-intro + .channel-landing .channel-hero h2 {
    font-size: 30px;
  }
}
