:root {
  --background: #0b0b0b;
  --surface: #151515;
  --surface-hover: #1d1d1d;
  --text: #f7f7f7;
  --muted: #a8a8a8;
  --line: #303030;
  --orange: #ff6400;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 100, 0, 0.12), transparent 34rem),
    var(--background);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--orange);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.home {
  width: min(100% - 32px, 640px);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0 40px;
  display: grid;
  place-items: center;
}

.app-card {
  width: 100%;
  padding: clamp(28px, 7vw, 54px);
  text-align: center;
  background: rgba(21, 21, 21, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.app-icon {
  width: clamp(132px, 32vw, 184px);
  height: auto;
  display: block;
  margin: 0 auto 28px;
  border-radius: 22%;
}

.app-card h1 {
  margin: 0 0 34px;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-links a {
  min-height: 66px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--text);
  background: #050505;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.store-links a:hover {
  background: var(--surface-hover);
  border-color: var(--orange);
}

.store-links small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.store-symbol {
  width: 27px;
  color: var(--muted);
  font-size: 23px;
  text-align: center;
}

.apple-symbol {
  font-size: 29px;
}

.contact {
  margin: 36px 0 26px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin: 0 0 0px;
  line-height: 1;
  font-size: 15px;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact a,
.privacy-link {
  font-size: 14px;
}

.contact a {
  text-decoration: none;
}

.privacy-link {
  color: var(--muted);
}

.simple-footer {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #747474;
  font-size: 12px;
}

/* Privacy policy */
.policy-page {
  background: var(--background);
}

.policy-header {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.policy-brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.back-home {
  color: var(--muted);
  font-size: 14px;
}

.policy-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.policy-heading {
  margin-bottom: 48px;
}

.policy-heading h1 {
  max-width: 650px;
  margin: 0 0 12px;
  font-size: clamp(34px, 8vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.policy-date {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.policy-intro {
  margin: 0 0 42px;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  font-size: 17px;
}

.policy-toc {
  margin-top: 30px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.policy-toc strong {
  grid-column: 1 / -1;
  margin-bottom: 5px;
}

.policy-toc a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.policy-toc a:hover {
  color: var(--orange);
}

.policy-content {
  color: #cecece;
}

.policy-content section {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.policy-content h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.25;
}

.policy-content h3 {
  margin: 30px 0 8px;
  color: var(--text);
  font-size: 17px;
}

.policy-content p {
  margin: 0 0 17px;
}

.policy-content ul {
  padding-left: 22px;
}

.policy-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.policy-content li::marker {
  color: var(--orange);
}

.policy-content code {
  padding: 2px 5px;
  color: var(--text);
  background: var(--surface-hover);
  border-radius: 4px;
  font-size: 13px;
}

.contact-block {
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 10px;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .home {
    padding-top: 24px;
  }

  .app-card {
    border-radius: 18px;
  }

  .store-links,
  .policy-toc {
    grid-template-columns: 1fr;
  }

  .policy-toc strong {
    grid-column: auto;
  }

  .policy-header {
    padding: 18px 0;
  }

  .policy-brand span {
    display: none;
  }

  .policy-shell {
    padding: 45px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-links a {
    transition: none;
  }
}
