/* Legal and guide pages: privacy, terms, ios-automation. Load after base.css */

.legal-page-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page-wrap .toolbar {
  margin-bottom: 1.5rem;
}

.legal-links-current {
  opacity: 0.9;
}

.legal-content {
  padding: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.legal-content h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
}

.legal-back {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.guide-content .guide-figure {
  margin: 1.25rem 0;
  padding: 0;
}

.guide-content .guide-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.guide-content .guide-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.guide-content .guide-img-placeholder {
  min-height: 200px;
  background: var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.6;
  font-size: 0.875rem;
  margin: 1.25rem 0;
}

.guide-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.25rem 0;
}

.guide-two-columns .guide-column {
  min-width: 0;
}

.guide-content .guide-column h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.guide-content .guide-column h4:first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .guide-two-columns {
    grid-template-columns: 1fr;
  }
}

.guide-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0 0 2rem;
  padding: 0 0.5rem;
}

.guide-stepper__segment {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.guide-stepper__segment .guide-stepper__line {
  margin-left: 0.25rem;
}

.guide-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.guide-stepper__step:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 50%;
}

.guide-stepper__circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.guide-stepper__step--completed .guide-stepper__circle {
  background: #3697f2;
  color: #fff;
  border: 2px solid #3697f2;
}

.guide-stepper__step--current .guide-stepper__circle {
  background: transparent;
  color: #3697f2;
  border: 2px solid #3697f2;
}

.guide-stepper__step--pending .guide-stepper__circle {
  background: #ccc;
  color: #666;
  border: 2px solid #ccc;
}

.guide-stepper__label {
  font-size: 0.8125rem;
  max-width: 5rem;
  text-align: center;
  line-height: 1.2;
}

.guide-stepper__step--current .guide-stepper__label {
  font-weight: 600;
  color: var(--text);
}

.guide-stepper__step--pending .guide-stepper__label,
.guide-stepper__step--completed .guide-stepper__label {
  color: #808080;
}

.guide-stepper__line {
  width: 2.5rem;
  height: 2px;
  flex-shrink: 0;
  margin: 0 0.15rem;
  align-self: center;
  margin-bottom: 1.25rem;
}

.guide-stepper__segment--completed .guide-stepper__line {
  background: #3697f2;
}

.guide-stepper__segment--pending .guide-stepper__line {
  background: #ccc;
}

.guide-step-section {
  display: none;
}

.guide-step-section.guide-step-section--active {
  display: block;
}

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.guide-nav__back {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.guide-nav__back:hover {
  background: var(--header-bg);
}

.guide-nav__next-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-nav__next {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  background: #3697f2;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.guide-nav__next:hover {
  background: #2a7ad6;
}

.guide-nav__back-to-app {
  text-decoration: none;
  color: #fff;
}
