/* App Store legal pages — same visual language as the main site */

.apps-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 0, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 255, 255, 0.03), transparent 50%),
    var(--bg);
}

.apps-page .topbar-name {
  color: inherit;
  opacity: 1;
}

.apps-page .topbar-nav a.on {
  opacity: 1;
  color: var(--accent);
}

.apps-page .lang-corner {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.apps-page .lang-corner a {
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}

.apps-page .lang-corner a:hover,
.apps-page .lang-corner a.on {
  opacity: 1;
  color: var(--accent);
}

.apps-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 8px;
}

.apps-hero-head .apps-kicker {
  margin-bottom: 12px;
}

.apps-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg-soft);
}

.apps-icon-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  background:
    linear-gradient(145deg, rgba(255, 77, 0, 0.14), transparent 55%),
    #1a1a1e;
}

.apps-shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.apps-shots-hero {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.apps-shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0;
}

.apps-shot img {
  display: block;
  height: min(420px, 58vh);
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 12px;
}

.apps-card-title:hover {
  color: var(--accent);
}

.apps-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.apps-card-icon-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  background:
    linear-gradient(145deg, rgba(255, 77, 0, 0.14), transparent 60%),
    #1a1a1e;
}

.apps-card-shots {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
}

.apps-card-shots img {
  height: 120px;
  width: auto;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.apps-fullname {
  color: var(--muted);
  font-size: 15px;
  margin: -8px 0 18px;
}

.apps-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.apps-cta a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.apps-cta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.apps-cta-primary {
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-bottom-color: var(--line) !important;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.apps-cta-primary:hover {
  border-color: var(--accent) !important;
}

.apps-links-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.apps-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
}

.apps-links a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #d4d4d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.apps-links a:hover,
.apps-links a:focus-visible {
  color: #fff;
  border-color: var(--accent);
}

.apps-links .apps-link-main {
  color: #fff;
  border-bottom-color: rgba(255, 77, 0, 0.55);
}

.apps-links .apps-link-main:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.apps-links-stack a {
  font-size: 16px;
}

.apps-crumb a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.apps-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 28px 0;
}

.apps-kicker,
.apps-crumb {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.apps-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.apps-crumb a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.apps-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
}

.apps-lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 42ch;
  line-height: 1.55;
}

.apps-hero {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.apps-hero-doc {
  margin-bottom: 48px;
}

.apps-meta {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.apps-meta div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.apps-meta dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.apps-meta dd {
  color: var(--text);
  margin: 0;
}

.apps-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.apps-doc-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.apps-doc-nav a:hover,
.apps-doc-nav a.on {
  color: var(--text);
  border-color: var(--accent);
}

.apps-doc-nav a.on {
  background: rgba(255, 77, 0, 0.08);
}

.apps-hub {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.apps-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.apps-card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
}

.apps-card-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: color 0.2s;
  flex: 1 1 auto;
  min-width: 0;
}

.apps-card-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.15;
}

.apps-card h2 .status {
  flex: 0 0 auto;
  margin-left: auto;
}

.apps-card p {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 20px;
  font-size: 15px;
}

.apps-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -8px 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.apps-store-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.apps-store-links a:hover {
  color: var(--accent);
}

.apps-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 6px;
  width: 100%;
}

.apps-title-row .apps-title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.15;
}

.apps-title-row .status {
  flex: 0 0 auto;
  margin-left: auto;
}

.apps-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.apps-block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  margin-bottom: 14px;
  line-height: 1.3;
}

.apps-block p,
.apps-block li {
  color: #c9c9cc;
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

.apps-block p + p,
.apps-block ul + p,
.apps-block p + ul {
  margin-top: 12px;
}

.apps-block ul {
  padding-left: 1.15em;
  max-width: 62ch;
}

.apps-block li + li {
  margin-top: 8px;
}

.apps-block a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 77, 0, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.apps-block a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.apps-mail {
  font-family: var(--mono);
  font-size: 14px !important;
  letter-spacing: 0.02em;
}

.apps-footer {
  max-width: 920px;
  padding-top: 72px;
}

@media (max-width: 820px) {
  .apps-main {
    padding: 108px 18px 0;
  }

  .apps-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .apps-card {
    padding: 28px 0;
  }
}
