:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #152018;
  --muted: #5c6b60;
  --line: #d8e0d9;
  --accent: #1f6b4a;
  --accent-soft: #e8f3ec;
  --max: 44rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(21, 32, 24, 0.06), 0 8px 24px rgba(21, 32, 24, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #dff0e6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e7eee8 0%, transparent 50%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: #15553a;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a8a5f, #1f6b4a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.brand span {
  font-size: 1rem;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #b7cbbd;
  color: inherit;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.doc {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.doc-card h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.doc-card .updated {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-card h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.doc-card p,
.doc-card li {
  color: #243028;
}

.doc-card ul {
  padding-left: 1.2rem;
}

.doc-card li + li {
  margin-top: 0.35rem;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.policy-list li {
  margin: 0 0 0.65rem;
}

.policy-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fbfcfb;
}

.policy-list a:hover {
  border-color: #b7cbbd;
  background: var(--accent-soft);
}

.policy-list strong {
  font-size: 0.98rem;
}

.policy-list span {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.empty {
  color: var(--muted);
  padding: 1rem 0 3rem;
}

.support-card {
  margin-top: 1.5rem;
}

.support-label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-card h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.support-lead {
  font-size: 1.12rem;
  color: var(--ink);
}

.support-thanks {
  margin-top: 1.4rem;
  font-weight: 600;
}

.support-links {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.support-page {
  --bg: #0f1216;
  --surface: #171b21;
  --ink: #eef3f8;
  --muted: #9aa8b5;
  --line: #2a323c;
  --accent: #2ea8ff;
  --accent-soft: rgba(46, 168, 255, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 168, 255, 0.18) 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
}

.support-page a {
  color: var(--accent);
}

.support-page a:hover {
  color: #7bc8ff;
}

.support-page .brand {
  color: var(--ink);
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lang-switch select {
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 55%,
    calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.lang-switch select:focus {
  outline: 2px solid rgba(46, 168, 255, 0.45);
  outline-offset: 2px;
}

.support-main {
  padding-top: 0.75rem;
}

.support-page .support-card {
  text-align: center;
  background: linear-gradient(180deg, #1a2028 0%, #14181e 100%);
  border-color: #2c3540;
}

.support-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 20px;
}

.support-page .support-label {
  color: var(--accent);
}

.support-page .support-lead,
.support-page .doc-card p {
  color: #d5dee7;
}

.support-page .support-links {
  border-top-color: #2c3540;
}

.support-page .site-footer {
  border-top-color: #2a323c;
  text-align: center;
}

.support-cta {
  margin: 1.15rem 0 0;
}

.bmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: #ffdd00;
  color: #0f1216 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(255, 221, 0, 0.18);
}

.bmc-btn:hover {
  background: #ffe94d;
  color: #0f1216 !important;
}

.soft-support {
  max-width: 40rem;
  margin: 0.25rem auto 2.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.doc-card .soft-support {
  margin: 1.5rem 0 0;
  text-align: start;
}

[dir="rtl"] .lang-switch select {
  padding: 0.45rem 0.85rem 0.45rem 2rem;
  background-position:
    14px 55%,
    9px 55%;
}

/* Formal, reusable legal-document pages (any TaluLabs app) */
.policy-page {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --ink: #1b1d21;
  --muted: #5c6168;
  --line: #ddd9d1;
  --accent: #1a466c;
  --accent-soft: #eef3f7;
  --max: 42rem;
  --shadow: none;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.policy-page a {
  color: var(--accent);
}

.policy-page a:hover {
  color: #12324d;
}

.policy-header {
  border-bottom: 1px solid var(--line);
  background: #fafaf8;
}

.policy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.policy-header.wrap {
  width: min(100% - 2rem, 72rem);
}

.policy-page .brand {
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.policy-page .brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 3px;
  background: #1a466c;
  font-size: 0.72rem;
}

.policy-page .lang-switch select {
  border-radius: 4px;
  border-color: var(--line);
  background-color: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.4rem 1.85rem 0.4rem 0.7rem;
}

.policy-main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 3.25rem;
}

.policy-page .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.policy-page .crumb-sep {
  color: #a8adb4;
}

.policy-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.75;
}

.policy-doc-head {
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.25rem, 3.5vw, 2.15rem) 1.15rem;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}

.policy-kicker {
  margin: 0 0 0.65rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.policy-doc h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--ink);
}

.policy-doc .updated {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-style: normal;
}

.policy-doc .updated em {
  font-style: normal;
}

.policy-section {
  padding: 1.35rem clamp(1.25rem, 3.5vw, 2.15rem);
  border-bottom: 1px solid var(--line);
}

.policy-section-last {
  border-bottom: 0;
}

.policy-doc h2 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
}

.policy-doc p {
  margin: 0 0 0.85rem;
  color: #2a2e34;
}

.policy-doc p:last-child {
  margin-bottom: 0;
}

.policy-doc li {
  color: #2a2e34;
}

.policy-bullets {
  margin: 0.35rem 0 0.95rem;
  padding: 0;
  list-style: none;
}

.policy-bullets li {
  position: relative;
  margin: 0;
  padding: 0.45rem 0 0.45rem 1.15rem;
  border-top: 1px solid #eeebe6;
  line-height: 1.65;
}

.policy-bullets li:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.policy-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #8a9098;
}

[dir="rtl"] .policy-bullets li {
  padding: 0.45rem 1.15rem 0.45rem 0;
}

[dir="rtl"] .policy-bullets li::before {
  left: auto;
  right: 0;
}

.policy-page .site-footer {
  border-top-color: var(--line);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.policy-page .soft-support {
  background: #f7f7f5;
  border-color: var(--line);
  border-radius: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.policy-page .policy-list {
  margin-top: 1rem;
}

.policy-page .policy-list a {
  border-radius: 0;
  background: #fafaf8;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.policy-page .policy-list a:hover {
  border-color: #b7c4d1;
  background: var(--accent-soft);
}

@media (max-width: 560px) {
  .policy-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .policy-doc {
    font-size: 1rem;
  }

  .policy-section,
  .policy-doc-head {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: #7bc8ff;
}

.contact-dialog {
  width: min(100% - 2rem, 28rem);
  border: 1px solid #2c3540;
  border-radius: 16px;
  padding: 0;
  background: #171b21;
  color: #eef3f8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.contact-dialog::backdrop {
  background: rgba(4, 8, 12, 0.72);
}

.contact-form {
  padding: 1.15rem 1.2rem 1.25rem;
  text-align: start;
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.contact-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.contact-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9aa8b5;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.contact-close:hover {
  color: #fff;
}

.contact-hint {
  margin: 0 0 1rem;
  color: #9aa8b5;
  font-size: 0.9rem;
}

.contact-form label {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.contact-form label span:first-child {
  font-weight: 600;
}

.optional,
.required {
  margin-inline-start: 0.25rem;
  font-weight: 400;
  color: #9aa8b5;
  font-size: 0.82rem;
}

.required {
  color: #7bc8ff;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #2c3540;
  border-radius: 10px;
  background: #10141a;
  color: #eef3f8;
  padding: 0.7rem 0.8rem;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(46, 168, 255, 0.45);
  outline-offset: 1px;
  border-color: #3a8fd0;
}

.honey {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn-primary,
.btn-secondary {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #2ea8ff;
  color: #061018;
}

.btn-primary:hover {
  background: #57baff;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-secondary {
  background: transparent;
  border-color: #2c3540;
  color: #d5dee7;
}

.btn-secondary:hover {
  border-color: #4a5664;
}

.contact-status {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.contact-status.success {
  background: rgba(46, 168, 255, 0.14);
  color: #b9e3ff;
}

.contact-status.error {
  background: rgba(255, 90, 90, 0.14);
  color: #ffb4b4;
}

.contact-status.pending {
  background: rgba(255, 255, 255, 0.06);
  color: #c5d0da;
}

.contact-page .contact-back-wrap {
  width: min(100%, 28rem);
  margin: 0 auto 0.75rem;
  text-align: start;
}

.contact-back {
  font-size: 0.92rem;
  text-decoration: none;
}

.contact-back:hover {
  text-decoration: underline;
}

.contact-panel {
  width: min(100%, 28rem);
  margin: 0 auto 2rem;
  background: #171b21;
  border: 1px solid #2c3540;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.contact-form-page {
  padding: 1.35rem 1.3rem 1.4rem;
}

.contact-form-page h1 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-align: start;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
