/* Shared footer, cookie banner and the content pages (legal, creators). Tokens come from styles.css. */

/* Footer (every page) */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night-deep);
  color: var(--muted);
  font-size: 14px;
  padding: 56px var(--gutter) 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top > * {
  min-width: 0;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font: 700 20px/1.2 var(--serif);
  letter-spacing: 0.04em;
}
.footer-brand span {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.footer-about p {
  max-width: 32ch;
  margin: 12px 0 18px;
  line-height: 1.6;
}
.footer-heading {
  margin: 0 0 14px;
  color: var(--ink);
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.footer-col a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.footer-col a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  cursor: not-allowed;
}
.store-badge-small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* Cookie banner (created by script.js) */
.consent {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 560px;
  margin-left: auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.consent[hidden] {
  display: none;
}
.consent h2 {
  margin: 0 0 8px;
  font: 700 16px/1.3 var(--sans);
  letter-spacing: 0;
}
.consent p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.consent a {
  color: var(--gold);
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consent-actions button {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(244, 239, 228, 0.6);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.consent-actions .consent-accept {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--on-gold);
}

/* Content pages */
.doc-header {
  gap: 16px;
}
.doc-lang-switch {
  display: flex;
  gap: 6px;
}
.doc-lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.doc-lang-switch a:hover {
  background: rgba(244, 239, 228, 0.08);
}
.draft-banner {
  margin: 0;
  padding: 12px var(--gutter);
  border-bottom: 1px solid rgba(232, 165, 42, 0.45);
  background: rgba(232, 165, 42, 0.12);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.draft-banner strong {
  color: var(--gold);
}
.doc {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 96px;
}
.doc-head h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.04;
  overflow-wrap: break-word;
}
.doc-head h1 [lang="en"] {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.45em;
  letter-spacing: -0.01em;
}
.doc-version {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.doc-jump {
  font-size: 14px;
}
.doc article {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.doc h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 5vw, 40px);
  scroll-margin-top: 16px;
}
.doc h3 {
  margin: 36px 0 12px;
  color: var(--ink);
  font: 700 19px/1.35 var(--sans);
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}
.doc h4 {
  margin: 24px 0 8px;
  font: 700 16px/1.4 var(--sans);
}
.doc p,
.doc li,
.doc td,
.doc th,
.doc dd {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.doc strong {
  color: var(--ink);
}
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.doc li + li {
  margin-top: 6px;
}
.doc a:not(.doc-button) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.doc a:not(.doc-button):hover {
  color: var(--link-hover);
}
.legal-note {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(230, 107, 50, 0.16);
  color: #f6b48f;
  font-size: 0.9em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
p.legal-note,
.doc p.legal-note {
  display: block;
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 4px 4px 0;
  color: #f6b48f;
  font-size: 14px;
}
.table-wrap {
  max-width: 100%;
  margin: 16px 0 20px;
  overflow-x: auto;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
}
.doc th,
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}
.doc th {
  color: var(--ink);
  font-weight: 700;
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.doc-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.doc-card h4 {
  margin-top: 0;
}
.doc-card p {
  margin: 0;
  font-size: 15px;
}
.doc-card .price {
  display: block;
  margin: 4px 0 10px;
  color: var(--gold);
  font: 600 28px/1.1 var(--serif);
}
.doc-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 99px;
  background: var(--gold);
  font-size: 15px;
  font-weight: 700;
}
.doc .doc-button,
.doc .doc-button:hover {
  color: var(--on-gold);
  text-decoration: none;
}

.apply-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 18px 0;
}
.apply-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.apply-form input:not([type="checkbox"]),
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--night);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
.apply-form input:focus-visible,
.apply-form select:focus-visible,
.apply-form textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.apply-form .apply-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.apply-form .apply-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--gold);
}
.apply-form .apply-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.apply-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  color: var(--on-gold);
}
.apply-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.apply-form .apply-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft, var(--ink));
}
.apply-status:empty {
  display: none;
}
.apply-status {
  margin: 0;
  font-size: 15px;
}
.apply-status[data-state="error"] {
  color: #f6b48f;
}
.apply-status[data-state="ok"] {
  color: var(--link);
  font-weight: 700;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 40px 16px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .doc {
    padding-top: 40px;
  }
}
