/* ==========================================================================
   Rounds — app page + legal document pages
   Scoped additions layered on top of style.css. Uses the site's existing
   custom properties so light/dark themes follow the rest of the site.
   ========================================================================== */

:root {
  --rounds-slate: #1f2937;
  --rounds-green: #22c55e;
}

/* ----------------------------------------------------------- legal pages */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal__inner {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-green);
  text-decoration: none;
}

.legal__back:hover {
  text-decoration: underline;
}

.legal__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.15;
}

.legal__meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

.legal__inner h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 40px 0 12px;
}

.legal__inner h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 26px 0 8px;
}

.legal__inner p,
.legal__inner li {
  font-size: 1rem;
  margin: 0 0 14px;
}

.legal__inner ul,
.legal__inner ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.legal__inner li {
  margin-bottom: 8px;
}

.legal__inner a {
  color: var(--color-green);
}

.legal__inner strong {
  color: var(--color-text);
}

.legal__callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 36px;
  font-size: 0.98rem;
}

.legal__callout--warn {
  border-left-color: #F59E0B;
}

.legal__steps li {
  margin-bottom: 12px;
}

.legal__footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-family: 'Inter', system-ui, sans-serif;
}

.legal__footer a {
  color: var(--color-green);
  text-decoration: none;
}

/* ------------------------------------------------------- Rounds app page */

.rounds-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 130px 24px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: 'Inter', system-ui, sans-serif;
}

.rounds-hero__icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  flex: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.rounds-hero__text {
  flex: 1;
  min-width: 280px;
}

.rounds-hero__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rounds-green);
  margin-bottom: 8px;
}

.rounds-hero__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 10px;
  line-height: 1.1;
}

.rounds-hero__tagline {
  font-size: 1.12rem;
  color: var(--color-text-secondary);
  margin: 0 0 22px;
  max-width: 52ch;
}

.rounds-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rounds-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rounds-btn:hover {
  transform: translateY(-2px);
}

.rounds-btn--primary {
  background: var(--gradient-primary);
  color: #fff;
}

.rounds-btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}

.rounds-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 24px;
  font-family: 'Inter', system-ui, sans-serif;
}

.rounds-section__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 20px;
}

.rounds-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.rounds-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
}

.rounds-feature h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 6px;
}

.rounds-feature p {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.rounds-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.rounds-shots img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: block;
}

.rounds-shots__placeholder {
  aspect-ratio: 9 / 19;
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.rounds-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ------------------------------------------- "Other apps" cards on index */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.app-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
}

.app-card__icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  flex: none;
}

.app-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
}

.app-card__desc {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
  line-height: 1.6;
}

.app-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-green);
}

@media (max-width: 640px) {
  .rounds-hero {
    padding-top: 110px;
    gap: 24px;
  }

  .legal {
    padding: 105px 20px 60px;
  }
}
