/* CCK Studio - shared "Neo-Brutalist" site theme
   Reused across the studio landing page and every app's legal docs. */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #14151a;
  --surface: #1e2029;
  --text: #f5f5f2;
  --muted: #a3a8b5;
  --border: #f5f5f2;
  --shadow: #ff5c8a;
  --yellow: #f7d046;
  --pink: #ff5c8a;
  --green: #45d19a;
  --cyan: #55c2ff;
  --radius: 18px;
  --border-w: 3px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  text-decoration: none;
}

/* ---- Neo-brutalist card ---- */
.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 26px 28px;
  margin-bottom: 24px;
}

.card + .card {
  margin-top: 28px;
}

/* ---- Badge / pill ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: #14151a;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Buttons / links-as-buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #14151a;
  border: var(--border-w) solid var(--border);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.btn.pink {
  background: var(--pink);
  color: #14151a;
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
}

/* ---- App list on the landing page ---- */
.app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.app-row + .app-row {
  border-top: 2px dashed color-mix(in srgb, var(--border) 30%, transparent);
}

.app-row .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.app-row .meta {
  flex: 1;
  min-width: 0;
}

.app-row .meta h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.app-row .meta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.app-row .links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.app-row .links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Legal doc pages ---- */
.doc-header h1 {
  font-size: 26px;
  margin: 10px 0 4px;
}

.doc-header .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.lang-toggle {
  display: inline-flex;
  border: var(--border-w) solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--shadow);
}

.lang-toggle button {
  border: none;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  cursor: pointer;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--yellow);
}

.doc h2 {
  font-size: 18px;
  margin: 30px 0 8px;
  padding-top: 6px;
  border-top: 2px dashed color-mix(in srgb, var(--border) 30%, transparent);
}

.doc h2:first-of-type {
  border-top: none;
  margin-top: 6px;
}

.doc p,
.doc li {
  font-size: 15px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  font-weight: 700;
}

.doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.lang-block[hidden] {
  display: none;
}

/* ---- Footer ---- */
footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 2px dashed color-mix(in srgb, var(--border) 30%, transparent);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 520px) {
  .app-row {
    flex-wrap: wrap;
  }
  .app-row .links {
    width: 100%;
  }
}
