.legal-page {
  background: #fff;
}

.legal-main {
  padding-top: 72px;
  padding-bottom: 120px;
}

.legal-hero {
  max-width: 850px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 680;
}

.legal-hero h1 {
  margin: 36px 0 0;
  font-size: clamp(50px, 6vw, 72px);
  font-weight: 750;
  letter-spacing: -0.058em;
  line-height: 1;
}

.legal-hero > p {
  max-width: 760px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.78;
}

.legal-meta {
  margin-top: 27px;
  display: flex;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 12px;
}

.legal-meta strong {
  color: var(--ink);
}

.legal-layout {
  margin-top: 84px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 90px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
}

.legal-toc a {
  padding: 3px 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.45;
}

.legal-toc a:hover {
  color: var(--blue);
}

.legal-content section {
  scroll-margin-top: 34px;
  padding: 0 0 49px;
}

.legal-content section + section {
  padding-top: 45px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 19px;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: #454c56;
  font-size: 15px;
  line-height: 1.86;
}

.legal-content p {
  margin: 0;
}

.legal-content p + p {
  margin-top: 15px;
}

.support-email-link {
  color: var(--blue);
  font-weight: 650;
}

.support-email-link:hover {
  text-decoration: underline;
}

.legal-content ul {
  margin: 18px 0;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-footer .footer-bottom {
  border-top: 0;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.68s cubic-bezier(.22,.7,.22,1), transform 0.68s cubic-bezier(.22,.7,.22,1);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .app-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    height: 525px;
  }

  .app-inspector {
    display: none;
  }

  .photo-card {
    height: 155px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row,
  .showcase-row.reverse {
    gap: 52px;
  }

  .privacy-inner {
    gap: 65px;
  }

  .detail-card {
    gap: 48px;
  }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    position: relative;
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid #eff1f4;
    font-size: 15px;
    font-weight: 650;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(48px, 11vw, 72px);
  }

  .product-stage {
    margin-top: 58px;
    padding-inline: 0;
  }

  .app-window {
    border-radius: 14px;
  }

  .app-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    height: 455px;
  }

  .app-sidebar {
    padding-inline: 8px;
  }

  .app-browser {
    padding: 16px 13px;
  }

  .photo-card {
    height: 133px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    padding-bottom: 38px;
  }

  .trust-strip div {
    padding: 17px 20px;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .features {
    padding-top: 105px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .showcase {
    padding-top: 118px;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 78px 0;
  }

  .showcase-row.reverse .showcase-copy {
    order: 0;
  }

  .illustration-panel,
  .editor-demo,
  .metadata-demo {
    min-height: 460px;
  }

  .editor-photo {
    min-height: 460px;
  }

  .privacy-inner,
  .detail-card {
    grid-template-columns: 1fr;
  }

  .privacy-inner {
    gap: 60px;
  }

  .detail-card {
    padding: 50px 42px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 24px;
    padding: 22px;
    border-radius: 16px;
    background: var(--page-soft);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .brand-name strong {
    font-size: 26px;
  }

  .brand-name span {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(39px, 11vw, 54px);
    line-height: 1.03;
  }

  .hero-copy > p:not(.system-note) {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions,
  .privacy-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .text-link-light {
    width: 100%;
  }

  .text-link-light {
    justify-content: center;
    min-height: 42px;
  }

  .product-stage {
    width: calc(100% + 16px);
    margin-left: -8px;
  }

  .app-window {
    border-radius: 11px;
  }

  .window-bar {
    height: 40px;
  }

  .window-tools span {
    width: 21px;
    height: 21px;
  }

  .app-layout {
    grid-template-columns: 1fr;
    height: 430px;
  }

  .app-sidebar {
    display: none;
  }

  .app-browser {
    padding: 14px 11px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .photo-card {
    height: 154px;
  }

  .browser-actions i:nth-child(3) {
    display: none;
  }

  .trust-strip {
    margin-top: 0;
  }

  .section-heading h2,
  .showcase-copy h2,
  .privacy-copy h2,
  .detail-card h2 {
    font-size: 37px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .feature-card {
    padding: 27px 24px;
  }

  .showcase-row,
  .showcase-row.reverse {
    padding: 65px 0;
  }

  .illustration-panel,
  .editor-demo,
  .metadata-demo,
  .editor-photo {
    min-height: 380px;
  }

  .folder-panel > img {
    width: 77%;
  }

  .folder-orbit {
    width: 280px;
    height: 280px;
  }

  .floating-file {
    width: 76px;
  }

  .floating-file img {
    height: 50px;
  }

  .file-one { top: 31px; right: 20px; }
  .file-two { bottom: 32px; left: 20px; }

  .adjustment-panel {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .edit-toolbar {
    top: 14px;
  }

  .metadata-demo {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .metadata-photo {
    min-height: 210px;
  }

  .metadata-sheet {
    padding: 18px;
  }

  .privacy-band {
    margin-top: 70px;
  }

  .privacy-inner {
    padding-block: 74px;
  }

  .detail-card {
    padding: 36px 24px;
    border-radius: 22px;
  }

  .detail-list p {
    flex-direction: column;
    gap: 3px;
  }

  .detail-list strong {
    text-align: left;
  }

  .faq {
    padding-top: 105px;
    padding-bottom: 105px;
  }

  .faq summary {
    font-size: 16px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .legal-main {
    padding-top: 52px;
    padding-bottom: 80px;
  }

  .legal-hero h1 {
    margin-top: 28px;
    font-size: 50px;
  }

  .legal-hero > p {
    font-size: 16px;
  }

  .legal-layout {
    margin-top: 56px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

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

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
